/* 确保页面占满整个视口高度 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* 主容器样式 */
main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    will-change: transform;
}

.hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    margin: 0;
    padding: 0;
    will-change: transform;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    will-change: transform, filter;
    transition: filter 0.3s ease-out;
}

/* 内容区域样式 */
.content-section {
    position: relative;
    z-index: 1;
    padding: 100vh 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    will-change: transform;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform, opacity;
}

.content-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.green-card {
    background: linear-gradient(135deg, rgba(0, 200, 5, 0.1), rgba(0, 200, 5, 0.05));
    border-color: rgba(0, 200, 5, 0.2);
}

.orange-card {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 165, 0, 0.05));
    border-color: rgba(255, 165, 0, 0.2);
}

.content-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 渐变背景部分 */
.gradient-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    z-index: 0;
    margin-top: 0;
}

/* 确保内容在图片之上 */
main {
    position: relative;
    z-index: 1;
}

/* 移除之前的样式 */
.hero-section,
.features-grid,
.feature-card {
    display: none;
}

/* Footer样式 */
footer {
    position: relative;
    width: 100%;
    z-index: 2;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: auto;
}

/* 毛玻璃文字框样式 */
.hero-text {
    position: absolute;
    top: 38%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.01);
    transition: all 0.3s ease;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #f4f5f1;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(244, 245, 241, 0.9);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.hero-text:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(1.02);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .hero-text {
        top: 50%;
        left: 50%;
        padding: 1rem 2rem;
        max-width: 90%;
        border-radius: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-text {
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .hero-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* 第二张图片样式 */
.second-image {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.second-image .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    will-change: transform, filter;
    transition: filter 0.3s ease-out;
}

/* 第三张图片样式 */
.third-image {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.third-image .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    will-change: transform, filter;
    transition: filter 0.3s ease-out;
}

/* 交易按钮样式 */
.trade-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #f4f5f1;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.trade-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trade-button {
        padding: 0.7rem 2rem;
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trade-button {
        padding: 0.6rem 1.8rem;
        font-size: 0.9rem;
        margin-top: 1.2rem;
    }
}

/* 确保所有图片部分紧密相连 */
.hero-carousel,
.second-image,
.third-image {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 第二张图片文字框位置 */
.second-image .hero-text {
    top: 30%;
    left: 60%;
    transform: translate(-50%, -50%);
}

/* 第三张图片文字框位置 */
.third-image .hero-text {
    top: 30%;
    left: 26%;
    transform: translate(-50%, -50%);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .second-image .hero-text,
    .third-image .hero-text {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
    }
}

/* 第四张图片样式 */
.fourth-image {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
}

.fourth-image .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    will-change: transform, filter;
    transition: filter 0.3s ease-out;
}

/* 第四张图片的文字框位置 */
.fourth-image .hero-text.top-left {
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fourth-image .hero-text.bottom-right {
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .fourth-image .hero-text {
        max-width: 85%;
        padding: 1rem 1.5rem;
    }

    .fourth-image .hero-text h1 {
        font-size: 2rem;
    }

    .fourth-image .hero-text p {
        font-size: 1rem;
    }

    .fourth-image .hero-text.top-left {
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .fourth-image .hero-text.bottom-right {
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 480px) {
    .fourth-image .hero-text {
        max-width: 92%;
        padding: 0.8rem 1.2rem;
    }

    .fourth-image .hero-text h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .fourth-image .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .fourth-image .hero-text.top-left {
        top: 30%;
    }

    .fourth-image .hero-text.bottom-right {
        top: 70%;
    }
}

/* Caloogy AI Video Section */
.ai-video-section {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-video-section video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}
.ai-video-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

/* Caloogy AI Chat Section (OpenAI style, minimal) */
.ai-chat-section {
    background: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ai-chat-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ai-chat-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.ai-chat-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: #222;
    transition: color 0.2s;
}
@media (prefers-color-scheme: dark) {
    .ai-chat-section { background: #111; }
    .ai-chat-title { color: #fff; }
    .ai-chat-header p { color: #aaa; }
    .ai-message-content { background: #181818; }
}
.ai-chat-header p {
    font-size: 1.15rem;
    color: #666;
}
.ai-chat-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}
.ai-chat-input-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.55);
    border-radius: 2.5rem;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 0.5rem 1.5rem;
    margin: 3.5rem auto 0 auto;
    max-width: 1400px;
    min-height: 72px;
    transition: box-shadow 0.2s;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
@media (prefers-color-scheme: dark) {
    .ai-chat-input-row { background: rgba(24,24,24,0.55); box-shadow: 0 2px 16px rgba(0,0,0,0.18); }
}
.ai-chat-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.35rem;
    padding: 0.5rem 0;
    color: #222;
    border-radius: 2.5rem;
    height: 2.5rem;
}
@media (prefers-color-scheme: dark) {
    .ai-chat-input { color: #fff; }
}
.ai-chat-input::placeholder {
    color: #bbb;
    font-size: 1.2rem;
    opacity: 1;
}
.ai-chat-send {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.ai-chat-send:hover {
    background: #e5e7eb;
}
@media (prefers-color-scheme: dark) {
    .ai-chat-send { background: #232323; }
    .ai-chat-send:hover { background: #333; }
}
.ai-chat-send svg {
    width: 28px;
    height: 28px;
    stroke: #222;
    transition: stroke 0.2s;
}
@media (prefers-color-scheme: dark) {
    .ai-chat-send svg { stroke: #fff; }
}
.ai-message-content {
    width: 100%;
    min-height: 220px;
    background: rgba(255,255,255,0.55);
    border-radius: 1.5rem;
    box-shadow: 0 2px 24px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 2.5rem;
    padding: 0;
    max-width: 1400px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.ai-message-chat {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
/* 复用消息气泡样式 */
.message {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: 75%;
    margin-bottom: 0.75rem;
}
.message.sent {
    align-self: flex-end;
}
.message.received {
    align-self: flex-start;
}
.message .message-content {
    padding: 0.6rem 1rem;
    border-radius: 18px;
    font-size: 1rem;
    line-height: 1.4;
    background: none;
}
.message.sent .message-content {
    background-color: #007aff;
    color: white;
}
.message.received .message-content {
    background-color: #e5e5ea;
    color: #000;
}
@media (prefers-color-scheme: dark) {
    .message.sent .message-content { background-color: #007aff; color: #fff; }
    .message.received .message-content { background-color: #232323; color: #fff; }
}
.typing-indicator .message-content {
    padding: 0.6rem 1rem;
}
.typing-indicator .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b0b0b0;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}
@keyframes typing {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}
@media (max-width: 900px) {
    .ai-chat-container { max-width: 98vw; padding: 24px 0; }
    .ai-chat-input-row { max-width: 98vw; }
    .ai-message-content { max-width: 98vw; }
}
@media (max-width: 600px) {
    .ai-video-section, .ai-video-section video, .ai-video-overlay { height: 60vh !important; min-height: 320px; }
    .ai-video-overlay h1 {
        font-size: 2rem !important;
        max-width: 90vw;
        text-align: center;
        margin-bottom: 1rem;
    }
    .ai-video-overlay p {
        font-size: 1rem !important;
        max-width: 85vw;
        text-align: center;
        margin-top: 0.8rem !important;
    }
    .ai-chat-title { font-size: 2rem; }
    .ai-chat-container { padding: 16px 0; }
    .ai-message-content { min-height: 100px; max-width: 92vw; border-radius: 1rem; }
    .ai-chat-input-row { min-height: 48px; max-width: 92vw; border-radius: 1.2rem; padding: 0.25rem 0.5rem; }
    .ai-chat-input { font-size: 1.05rem; }
} 