/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #357bf7 0%, #1e99e3 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.element:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 10%;
    top: 40%;
    animation-delay: -2s;
}

.element:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 70%;
    top: 70%;
    animation-delay: -4s;
}

.element:nth-child(4) {
    width: 40px;
    height: 40px;
    left: 20%;
    bottom: 20%;
    animation-delay: -1s;
}

.element:nth-child(5) {
    width: 100px;
    height: 100px;
    right: 30%;
    bottom: 30%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* 微信浏览器提示 */
.wechat-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
}

.wechat-mask.hidden {
    display: none;
}

.wechat-guide {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 280px;
    position: relative;
    animation: slideInDown 0.5s ease-out;
}

.guide-arrow {
    position: absolute;
    top: -40px;
    right: 20px;
    animation: bounce 1s infinite;
}

.guide-text h3 {
    color: #357bf7;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.guide-text p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 头部区域 */
.header {
    position: relative;
    min-height: 400px;
    background-image: url('https://vv.sofeet.cn/web_app/jdzbg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* 添加渐变遮罩以获得更好的文字可读性 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(53, 123, 247, 0.6) 0%, rgba(30, 153, 227, 0.6) 100%);
    z-index: 1;
}

/* 添加底部渐变过渡 */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, rgba(53, 123, 247, 0.8) 100%);
    z-index: 2;
}

.logo-section {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
}

.app-icon {
    animation: pulse 2s infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-info h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.app-info p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* K线图区域 */
.kline-section {
    padding: 0 20px 40px;
    margin-top: -30px;
    position: relative;
    z-index: 4;
}

.kline-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.kline-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.kline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

#klineChart {
    width: 100%;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.chart-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #357bf7;
    margin-right: 8px;
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.price-change.positive {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
}

/* APP介绍区域 */
.app-intro {
    padding: 0 20px 40px;
    text-align: center;
}

.app-intro h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.features-carousel {
    max-width: 400px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    margin-bottom: 20px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item.prev {
    transform: translateX(-100%);
}

.carousel-item.next {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

.carousel-item h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.carousel-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 下载按钮区域 */
.download-section {
    padding: 0 20px 60px;
    text-align: center;
}

.download-section h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: #357bf7;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: white;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:active {
    transform: translateY(0);
}

.btn-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #357bf7;
    color: white;
    border-radius: 8px;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.platform {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #357bf7;
}

.store {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.ios-btn .btn-icon {
    background: linear-gradient(135deg, #357bf7, #1e99e3);
}

.android-btn .btn-icon {
    background: linear-gradient(135deg, #059669, #10b981);
}

/* 二维码区域 */
.qr-section {
    margin-top: 40px;
}

.qr-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 16px;
}

.qr-code {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    animation: pulse 3s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        min-height: 300px;
        background-position: center top;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .app-info h1 {
        font-size: 26px;
    }
    
    .app-info p {
        font-size: 16px;
    }
    
    .features-carousel {
        max-width: 100%;
    }
    
    .download-buttons {
        max-width: 100%;
    }
    
    #klineChart {
        height: 150px;
    }
    
    .chart-overlay {
        position: static;
        margin-top: 16px;
        display: inline-block;
    }
    
    .kline-section {
        margin-top: -20px;
    }
}

@media (min-width: 769px) {
    .download-buttons {
        flex-direction: row;
        max-width: 600px;
    }
    
    .download-btn {
        flex: 1;
    }
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
