/* ========== 子页面通用样式 ========== */

/* Hero 区域 */
.sub-hero {
    position: relative;
    padding: calc(var(--nav-height) + 80px) 0 60px;
    text-align: center;
    overflow: hidden;
}

.sub-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.sub-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.sub-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--color-bg), transparent);
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero-logo {
    height: 40px;
    margin: 0 auto 20px;
    opacity: 0.9;
}

.sub-hero h1 {
    margin-bottom: 16px;
}

.sub-hero-desc {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

/* 特性行（图文交替）*/
.sub-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.sub-feature-row:last-child {
    margin-bottom: 0;
}

.sub-feature-row.reverse .sub-feature-text {
    order: 2;
}

.sub-feature-row.reverse .sub-feature-media {
    order: 1;
}

.sub-feature-text h3 {
    margin-bottom: 12px;
}

.sub-feature-text p {
    font-size: 1rem;
    line-height: 1.8;
}

.sub-feature-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.sub-feature-media img,
.sub-feature-media video {
    width: 100%;
    display: block;
    border-radius: 16px;
}

/* CTA */
.sub-cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-cta-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sub-cta-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--color-gradient);
    border-radius: 2px;
}

.sub-cta-box h2 {
    margin-bottom: 14px;
}

.sub-cta-box p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.sub-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 响应式 */
@media (max-width: 768px) {
    .sub-feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 48px;
    }

    .sub-feature-row.reverse .sub-feature-text,
    .sub-feature-row.reverse .sub-feature-media {
        order: unset;
    }

    .sub-cta-box {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .sub-cta-actions {
        flex-direction: column;
    }

    .sub-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
