/* 首页样式 */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="1000" cy="100" r="200" fill="rgba(255,255,255,0.05)"/><circle cx="1100" cy="400" r="300" fill="rgba(255,255,255,0.05)"/></svg>') no-repeat center;
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* 立即开户按钮特殊样式 */
.btn-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4),
                0 0 0 0 rgba(255, 107, 53, 0.7);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: pulse-cta 2s infinite;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5),
                0 0 0 0 rgba(255, 107, 53, 0.7);
    animation: none;
}

.btn-cta:active {
    transform: translateY(-1px) scale(1.02);
}

/* 脉冲动画 */
@keyframes pulse-cta {
    0% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4),
                    0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4),
                    0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4),
                    0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 实时行情 */
.quote-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.quote-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.quote-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.quote-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.2);
}

.quote-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.quote-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.quote-info h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.quote-code {
    font-size: 14px;
    color: var(--text-gray);
    font-family: monospace;
}

.quote-prices {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.price-item {
    flex: 1;
}

.price-item .label {
    font-size: 12px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 8px;
}

.price-item .sell-price,
.price-item .buy-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-blue);
    font-family: monospace;
}

.quote-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.quote-change .label {
    font-size: 12px;
    color: var(--text-gray);
}

.spread {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.change {
    font-size: 16px;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 5px;
    background-color: rgba(40, 167, 69, 0.1);
}

.change.price-up {
    color: var(--success-green);
    background-color: rgba(40, 167, 69, 0.1);
}

.change.price-down {
    color: var(--danger-red);
    background-color: rgba(220, 53, 69, 0.1);
}

/* 价格变化动画 */
.price-up-animate {
    animation: priceUpFlash 0.5s ease;
    color: var(--success-green) !important;
}

.price-down-animate {
    animation: priceDownFlash 0.5s ease;
    color: var(--danger-red) !important;
}

@keyframes priceUpFlash {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(40, 167, 69, 0.4);
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes priceDownFlash {
    0% {
        background-color: rgba(220, 53, 69, 0.2);
        transform: scale(1);
    }
    50% {
        background-color: rgba(220, 53, 69, 0.4);
        transform: scale(1.05);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* 平台优势 */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 82, 204, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* 软件展示 */
.app-showcase {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-image {
    flex: 1;
}

.showcase-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.showcase-text h3 {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* 移动端立即开户按钮优化 */
@media (max-width: 768px) {
    .btn-cta {
        font-size: 16px !important;
        padding: 16px 40px !important;
        width: 100%;
        text-align: center;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content,
    .showcase-content {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 28px;
    }

    .showcase-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }
    
    .btn-cta {
        width: 100%;
        font-size: 16px !important;
        padding: 16px 30px !important;
    }

    .quote-board {
        grid-template-columns: 1fr;
    }

    .quote-prices {
        flex-direction: column;
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-text h2 {
        font-size: 28px;
    }

    .showcase-text h3 {
        font-size: 20px;
    }

    .feature-list li {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

