/* 首页：顶栏、电影感英雄区和入口卡。只给 home-layout 用。 */

body.home-layout {
    min-height: 100vh;
    overflow-x: hidden;
    background: #07090d;
    color: #ffffff;
}

body.home-layout .home-main {
    min-height: 100vh;
    padding: 0;
}

.home-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: 68px;
}

.home-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
    padding: 0 32px;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    flex-shrink: 0;
}

.home-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
}

.home-brand-text {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.home-nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--st-duration) ease, color var(--st-duration) ease;
}

.home-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.home-nav-link.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.home-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(7, 11, 18, 0.28);
    color: #ffffff;
    cursor: pointer;
}

.home-nav-toggle svg {
    width: 20px;
    height: 20px;
}

.home-topbar-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.home-topbar-user .st-profile-trigger {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(18, 18, 22, 0.72);
    color: #ffffff;
}

.home-topbar-user .st-btn-ghost {
    color: rgba(255, 255, 255, 0.82);
}

.home-topbar-user .st-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.home-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 35%, rgba(6, 7, 10, 0.6) 80%, rgba(6, 7, 10, 0.95) 100%),
        linear-gradient(to top, rgba(7, 9, 13, 0.95) 0%, rgba(7, 9, 13, 0.4) 30%, transparent 60%),
        linear-gradient(to bottom, rgba(7, 9, 13, 0.85) 0%, transparent 35%),
        rgba(0, 0, 0, 0.25);
}

.home-hero-picker {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.home-hero-pick {
    position: relative;
    width: 120px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.home-hero-pick.is-active {
    border-color: var(--st-accent);
}

.home-hero-pick img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-hero-pick-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    pointer-events: none;
}

.home-hero-pick-play svg {
    width: 14px;
    height: 14px;
    margin-left: 1px;
}

.home-hero-copy {
    position: relative;
    width: min(1280px, calc(100% - 2rem));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 96px 0 64px;
}

.home-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--st-radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.home-hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--st-radius-pill);
    background: var(--st-accent);
}

.home-slogan {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.08em;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.45);
}

.home-hero-desc {
    margin: 16px 0 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
}

.home-entry-grid {
    width: min(56rem, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.home-entry-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(18, 21, 30, 0.65);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    transition: transform var(--st-duration) ease, border-color var(--st-duration) ease, background-color var(--st-duration) ease;
}

.home-entry-card:hover,
.home-entry-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 45, 120, 0.35);
    background: rgba(26, 30, 44, 0.78);
    color: #ffffff;
}

.home-entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom right, rgba(121, 40, 202, 0.3), rgba(255, 45, 120, 0.2));
    color: #ff80b5;
}

.home-entry-icon svg {
    width: 22px;
    height: 22px;
}

.home-entry-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.home-entry-title {
    font-size: 16px;
    font-weight: 600;
}

.home-entry-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1023px) {
    .home-topbar-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .home-nav-toggle {
        display: inline-flex;
    }

    .home-nav {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        background: rgba(8, 12, 20, 0.92);
        box-shadow: var(--st-shadow-overlay);
    }

    body.is-home-nav-open .home-nav {
        display: flex;
    }

    .home-entry-grid {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .home-hero-picker {
        right: 16px;
        bottom: 16px;
    }

    .home-hero-pick {
        width: 84px;
    }

    .home-hero-pick-play {
        width: 22px;
        height: 22px;
    }

    .home-hero-pick-play svg {
        width: 11px;
        height: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-video,
    .home-hero-picker {
        display: none;
    }
}
