/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    max-width: 150px;
}
.logo-image{
    width: 100%;
}
.logo-image img{
    width: 100%;
    object-fit: cover;
}
.logo-icon {
    color: #ffffff;
    font-size: 24px;
    margin-right: 10px;
}

.logo-text {
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #cccccc;
}

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
html {
    scroll-behavior: smooth;
}
.hamburger-menu .line {
    width: 20px;
    height: 2px;
    background-color: #ccc;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu .line2 {
    width: 12px;
    margin-left: 7px;
}

/* 汉堡菜单激活状态 */
.hamburger-menu.active .line1 {
    transform: rotate(-45deg) translate(-1px, 8px);
}

.hamburger-menu.active .line2 {
    opacity: 0;
    width: 25px;
    margin-left: 0;
}

.hamburger-menu.active .line3 {
    transform: rotate(45deg) translate(0px, -8px);
}
/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* 初始位置在屏幕外 */
    width: 300px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.sidebar.active {
    right: 0; /* 激活时滑入屏幕 */
}

.sidebar-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar .nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #cccccc;
    padding-left: 10px;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
}

/* 背景动画 */
.background-animation {
    width: 100%;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.background-animation img{
    width: 80%;
    height: 100%;
    object-fit: cover;
}
.bg-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 5vw;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: #ffffff;
}

/* K线图容器 */
.chart-container {
    display: flex;
    justify-content: center;
    margin: 60px 0;
    height: 200px;
}

.candlestick-chart {
    display: flex;
    align-items: end;
    gap: 8px;
    position: relative;
    height: 150px;
}

.candle {
    width: 12px;
    position: relative;
    border-radius: 2px;
}

.candle.red {
    background-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.candle.green {
    background-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.candle::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: inherit;
    top: -10px;
}

.candle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: inherit;
    bottom: -10px;
}

/* 介绍文本 */
.intro-text {
    margin: 0px auto;
    font-size: 1.9vw;
    line-height: 1.3;
    color: #FFF;
    padding: 120px 5vw 60px;
}

.intro-text p {
    margin-bottom: 20px;
}

/* CTA按钮 */
.cta-button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 15px 40px;
    font-size: 1.3vw;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin: 40px 0;
    text-decoration: none;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* 底部区域 */
.bottom-section {
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 4.5vw;
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: 1px;
    color: #ffffff;
}

.description-text {
    margin: 0 auto 80px;
    font-size: 2.5vw;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 400;
}

.description-text p {
    margin-bottom: 15px;
}

/* 联系区域 */
.contact-section {
    margin-top: 80px;
}

.contact-button {
    background: transparent;
    color: #ffffff;
    border: 2px solid transparent;
    padding: 15px 40px;
    font-size: 2.3vw;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-bottom: 30px;
}
.contact-info {
    font-size: 1.2vw;
    color: #888888;
    line-height: 1.6;
}

.email {
    color: #ffffff !important;
    text-decoration: underline;
    margin-bottom:30px;
    /* font-weight: 500; */
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏桌面端导航菜单 */
    .desktop-menu {
        display: none;
    }
    .background-animation img{
        width: 70%;
        height: 100%;
        object-fit: cover;
    }
    
    /* 显示汉堡菜单按钮 */
    .hamburger-menu {
        display: flex;
    }
    
    /* 调整侧边栏宽度 */
    .sidebar {
        width: 280px;
        right: -280px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .candlestick-chart {
        gap: 6px;
    }
    
    .candle {
        width: 10px;
    }
    
    .intro-text,
    .description-text {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .hero-section,
    .bottom-section {
        padding: 60px 10px;
    }
}

@media (max-width: 480px) {
    .logo{
        max-width: 150px;
    }
    .logo-text {
        font-size: 14px;
    }
    
    /* 进一步调整侧边栏 */
    .sidebar {
        width: 250px;
        right: -250px;
    }
    
    .sidebar-content {
        padding: 30px 20px;
        gap: 25px;
    }
    
    .sidebar .nav-link {
        font-size: 16px;
        padding: 12px 0;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-button,
    .contact-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > * {
    animation: fadeInUp 0.8s ease-out forwards;
}

.bottom-section > * {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}
