/* ============================================================
   🥳 首页样式 - VitePress 风格
   ============================================================ */

/* 🔗 Hero 区域 - 全宽布局，内容左对齐 */
.vp-hero {
    padding: 6rem 0;
    background: transparent;
    overflow: hidden;
    position: relative;
}

/* ☀️ Hero 背景光晕效果 */
.vp-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(100, 108, 255, 0.1) 0%, transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* 🎯 Hero 容器 */
.vp-hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    position: relative;
    z-index: 1;
    padding-left: 30px;
    padding-right: 30px;
}

.vp-hero-content {
    flex: 0 0 auto;
    text-align: center;
}

/* 🎨 渐变标题 */
.vp-hero-title {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #646cff 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* 📝 副标题 - 带分割线 */
.vp-hero-subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--vp-c-text-1);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: inline-block;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--vp-c-border);
}

.vp-hero-description {
    font-size: 2rem;
    color: var(--vp-c-text-2);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* 🔘 按钮组 - 横向排列，超过3个换行 */
.vp-hero-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1.5rem;
    justify-content: center !important;
}

.vp-hero-button .wp-block-button__link {
    padding: 1rem 2.5rem;
    font-size: 1.75rem;
    font-weight: 500;
    border-radius: 40px;
    transition: all 0.25s ease;
}

.vp-hero-button-primary .wp-block-button__link {
    background: linear-gradient(135deg, #646cff 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
}

.vp-hero-button-primary .wp-block-button__link:hover {
    background: linear-gradient(135deg, #7c82ff 0%, #b46cf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 108, 255, 0.3);
}

.vp-hero-button-secondary .wp-block-button__link {
    background: transparent;
    color: var(--vp-c-text-1);
    border: 2px solid var(--vp-c-border);
}

.vp-hero-button-secondary .wp-block-button__link:hover {
    border-color: #646cff;
    color: #646cff;
}

/* 🖼️ Hero 视觉区域 - 3D Logo 效果 */
.vp-hero-visual {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ✨ Logo 背景光晕 */
.vp-hero-visual::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(236, 72, 153, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.vp-hero-logo {
    position: relative;
    z-index: 1;
    margin: 0;
}

.vp-hero-logo img {
    width: 560px;
    height: auto;
    border-radius: 40px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.vp-hero-logo img:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 60px 100px -20px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 255, 255, 0.15) inset;
}

/* 🎯 特性展示区域 - 4列网格 */
.vp-features {
    padding: 6rem 60px;
    background: transparent;
}

.vp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.vp-feature-item {
    text-align: left;
    padding: 3rem;
    border-radius: 24px;
    background: var(--vp-c-bg-soft);
    transition: all 0.25s ease;
}

.vp-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--vp-shadow-2);
    border-color: rgba(100, 108, 255, 0.3);
}

.vp-feature-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1;
}

.vp-feature-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--vp-c-text-1);
    margin-bottom: 1rem;
}

.vp-feature-desc {
    font-size: 1.75rem;
    color: var(--vp-c-text-2);
    line-height: 1.6;
    margin: 0;
}

/* 📚 开始使用区域 */
.vp-start {
    padding: 6rem 200px;
    background: transparent;
}

.vp-start-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    color: var(--vp-c-text-1);
    margin-bottom: 4rem;
}

.vp-start-steps {
    max-width: 800px;
    margin: 0 auto;
}

.vp-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--vp-c-bg);
    border-radius: 20px;
    transition: all 0.25s ease;
}

.vp-step:hover {
    border-color: rgba(100, 108, 255, 0.3);
    box-shadow: var(--vp-shadow-1);
}

.vp-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #646cff 0%, #a855f7 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.vp-step-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--vp-c-text-1);
    margin-bottom: 0.75rem;
}

.vp-step-desc {
    font-size: 1.5rem;
    color: var(--vp-c-text-2);
    margin: 0;
}

/* 🎯 CTA 区域 */
.vp-cta {
    padding: 6rem 200px;
    text-align: center;
    background: transparent;
}

.vp-cta-title {
    font-size: 4rem;
    font-weight: 600;
    color: var(--vp-c-text-1);
    margin-bottom: 1.5rem;
}

.vp-cta-desc {
    font-size: 2rem;
    color: var(--vp-c-text-2);
    margin-bottom: 3rem;
}

.vp-cta-button .wp-block-button__link {
    padding: 1.25rem 3rem;
    font-size: 1.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #646cff 0%, #a855f7 100%);
    color: #ffffff;
    border-radius: 40px;
    border: none;
    transition: all 0.25s ease;
}

.vp-cta-button .wp-block-button__link:hover {
    background: linear-gradient(135deg, #7c82ff 0%, #b46cf8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 108, 255, 0.3);
}

/* 📱 响应式设计 */
@media (max-width: 1600px) {
    .vp-hero-container {
        padding-left: 120px;
        padding-right: 60px;
    }

    .vp-hero-container {
        gap: 6rem;
    }
}

@media (max-width: 1400px) {
    .vp-hero-container {
        padding-left: 80px;
        padding-right: 40px;
    }

    .vp-hero-container {
        gap: 5rem;
    }

    .vp-hero-title {
        font-size: 5rem;
    }

    .vp-hero-subtitle {
        font-size: 3rem;
    }

    .vp-hero-logo img {
        width: 450px;
    }
}

@media (max-width: 1200px) {
    .vp-hero-container {
        padding-left: 60px;
        padding-right: 30px;
    }

    .vp-hero-container {
        gap: 4rem;
    }

    .vp-hero-title {
        font-size: 4rem;
    }

    .vp-hero-subtitle {
        font-size: 2.5rem;
    }

    .vp-hero-description {
        font-size: 1.5rem;
    }

    .vp-hero-button .wp-block-button__link {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
    }

    .vp-hero-logo img {
        width: 350px;
    }

    .vp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-feature-title {
        font-size: 1.75rem;
    }

    .vp-feature-desc {
        font-size: 1.25rem;
    }
}

@media (max-width: 968px) {
    .vp-hero {
        padding: 4rem 0;
    }

    .vp-hero-container {
        padding-left: 40px;
        padding-right: 20px;
    }

    .vp-hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .vp-hero-content {
        text-align: center;
    }

    .vp-hero-title {
        font-size: 3.5rem;
    }

    .vp-hero-subtitle {
        font-size: 2rem;
    }

    .vp-hero-description {
        font-size: 1.25rem;
    }

    .vp-hero-buttons {
        justify-content: center !important;
    }

    .vp-hero-visual {
        margin-left: 0;
    }

    .vp-hero-logo img {
        width: 300px;
    }

    .vp-start-title,
    .vp-cta-title {
        font-size: 2.5rem;
    }

    .vp-cta-desc {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .vp-hero-container {
        padding-left: 20px;
        padding-right: 15px;
    }

    .vp-hero-title {
        font-size: 2.5rem;
    }

    .vp-hero-subtitle {
        font-size: 1.5rem;
    }

    .vp-hero-description {
        font-size: 1rem;
    }

    .vp-hero-buttons {
        flex-direction: column !important;
        align-items: center;
    }

    .vp-hero-button {
        width: 100%;
        max-width: 280px;
    }

    .vp-hero-logo img {
        width: 220px;
    }

    .vp-features-grid {
        grid-template-columns: 1fr;
    }

    .vp-feature-icon {
        font-size: 3rem;
    }

    .vp-feature-title {
        font-size: 1.5rem;
    }

    .vp-feature-desc {
        font-size: 1rem;
    }

    .vp-step {
        flex-direction: column;
        text-align: center;
    }
}

/* 🌆 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .vp-hero::before {
        background: radial-gradient(circle, rgba(100, 108, 255, 0.15) 0%, transparent 70%);
    }

    .vp-hero-visual::before {
        background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 70%);
    }

    .vp-hero-logo img {
        box-shadow:
            0 40px 80px -20px rgba(0, 0, 0, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.05) inset;
    }

    .vp-feature-item {
        background: var(--vp-c-bg-soft);
    }

    .vp-start {
        background: transparent;
    }

    .vp-step {
        background: var(--vp-c-bg);
    }

    .vp-cta {
        background: transparent;
    }
}
