/**
 * Nuxt scoped 样式兜底：Blade 模板注入的 DOM 若 scoped 选择器未命中，
 * entry.css 的全局 .app-header flex 居中会导致 logo 巨大、导航竖排。
 * 本文件使用无 data-v 选择器，确保顶栏/首页/页脚基础布局始终生效。
 */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 103px;
    padding: 0;
    overflow: visible;
    isolation: isolate;
    border-bottom: 1px solid hsla(0, 0%, 100%, .12);
    background: #050608eb;
    color: #f5f5f6;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.app-header__top,
.app-header__nav {
    width: min(calc(100% - 176px), 1240px);
    margin: 0 auto;
}

.app-header__top {
    position: relative;
    z-index: 2;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header__brand {
    display: inline-flex;
    align-items: center;
}

.app-header__brand img {
    width: 78px;
    height: auto;
    object-fit: contain;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-header__action {
    position: relative;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f6;
    border-radius: 50%;
}

.app-header__icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex: 0 0 auto;
    background: currentColor;
    mask-image: var(--icon-url);
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: var(--icon-url);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.app-header__nav {
    position: relative;
    z-index: 3;
    height: 42px;
    overflow: visible;
}

.app-header__nav-scroll {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.app-header__nav-scroll::-webkit-scrollbar {
    display: none;
}

.app-header__nav-item {
    flex: 0 0 auto;
}

.app-header__nav-link {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #a6a6ad;
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
}

.app-header__nav-icon {
    width: 16px;
    height: 16px;
}

.app-header__nav-item--active .app-header__nav-link {
    color: #3752ff;
}

.app-header__login {
    min-width: 100px;
    height: 36px;
    margin-left: 6px;
    border: 0;
    border-radius: 4px;
    background: #3752ff;
    color: #050608;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    cursor: pointer;
}

.app-header__logout-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.app-header__logout {
    height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    background: rgba(255, 255, 255, .06);
    color: #d4d4d8;
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}

.app-header__logout:hover {
    border-color: rgba(55,82,255, .45);
    color: #3752ff;
}

.app-header__drawer-logout-form {
    margin: 4px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.app-header__drawer-logout {
    width: 100%;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #d4d4d8;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.app-header__drawer-logout:hover {
    border-color: rgba(55,82,255, .45);
    color: #3752ff;
}

.home-page {
    position: relative;
    display: grid;
    gap: 56px;
    padding: 58px 32px 0;
    overflow: hidden;
}

.home-hero {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 22px;
    text-align: center;
}

.home-hero h1 {
    margin: 0;
    color: #f5f5f6;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.6;
}

.home-hero h1 span {
    color: #3752ff;
}

.home-feed {
    display: grid;
    gap: 24px;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 103px;
    border-top: 1px solid hsla(0, 0%, 100%, .12);
    background: #050608eb;
    color: #f5f5f6;
}

.app-footer__inner {
    width: min(calc(100% - 64px), 1240px);
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    gap: 32px;
}

@media (max-width: 960px) {
    .app-header__top,
    .app-header__nav {
        width: min(calc(100% - 32px), 1240px);
    }

    .app-header__mobile-trigger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-width: 64px;
        height: 36px;
        padding: 0 12px;
        border: 1px solid hsla(0, 0%, 100%, .12);
        border-radius: 4px;
        background: transparent;
        color: #a6a6ad;
        font-size: 14px;
    }

    .app-header__logout-form {
        display: none;
    }

    .home-page {
        padding: 44px 16px 0;
        gap: 40px;
    }

    .home-hero h1 {
        font-size: 28px;
    }
}
