<template>
    <div class="center">
        <div class="hero-copy">
            <p class="eyebrow">智能校园乐跑平台</p>
            <h1>RunForge</h1>
            <h2>轻松完成乐跑任务，成绩更省心</h2>
        </div>
        <div class="action-row">
            <button type="button" class="cta-button" @click="$router.push('/lepao')">
                立即体验
            </button>
        </div>
    </div>
</template>

<style lang="less" scoped>
@import '../theme.less';
@import '@/styles/store-theme.less';

.center {
    flex: 1;
    max-width: 600px;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: clamp(0.92rem, 2.4vw, 1.08rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: @store-accent;
}

.center h1 {
    margin: 0;
    font-size: clamp(3.2rem, 10vw, 6rem);
    line-height: 1.1;
    font-weight: 700;
    color: @home-primary;
    font-family: AlibabaSans, -apple-system, BlinkMacSystemFont, sans-serif;
}

.center h2 {
    margin: 16px 0 0;
    font-size: clamp(1.15rem, 3.2vw, 1.8rem);
    line-height: 1.7;
    font-weight: 400;
    color: @home-text-muted;
    font-family: Alimama ShuHeiTi, -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 24em;
}

.cta-button {
    margin-top: 28px;
    cursor: pointer;
    border: none;
    border-radius: @home-radius-btn;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, @home-primary 0%, @store-primary-light 100%);
    font-family: Alimama ShuHeiTi, -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 10px 24px fade(@home-primary, 24%);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;

    &:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px fade(@home-primary, 28%);
        filter: brightness(1.05);
    }
}

.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


@media (max-width: 992px) {
    .center {
        text-align: center;
        align-items: center;
        width: 100%;
        min-height: clamp(430px, 62dvh, 620px);
    }

    .hero-copy {
        margin-top: auto;
        margin-bottom: auto;
        transform: translateY(-4vh);
    }

    .center h2 {
        margin-left: auto;
        margin-right: auto;
        max-width: 18em;
    }

    .action-row {
        justify-content: center;
        width: 100%;
        margin-top: auto;
        padding-bottom: clamp(74px, 12vh, 112px);
    }

    .cta-button {
        margin-top: 0;
        min-width: min(150px, 84vw);
        padding: 13px 24px;
        font-size: 17px;
    }
}

</style>
