/**
 * 首页目录门户（简洁模式）布局。
 * 自 home-constellation.css 拆出，星图特效已移到 attic/。
 */
#view-home.cupertino-home[data-home-mode="simple"].active {
    display: flex !important;
    flex-direction: column;
    justify-content: stretch !important;
    min-height: calc(100vh - var(--header-h, 56px));
    overflow-x: hidden;
    overflow-y: auto;
}

#view-home[data-home-mode="simple"] .home-portal {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: safe center;
    width: min(1040px, calc(100% - 32px));
    max-width: 1040px;
    min-height: calc(100vh - var(--header-h, 56px));
    margin: 0 auto;
    padding: 24px 0;
    gap: 10px;
    box-sizing: border-box;
}

#view-home[data-home-mode="simple"] .cupertino-home-hero {
    gap: 6px !important;
    flex-shrink: 0;
    margin-bottom: 2px !important;
}

#view-home[data-home-mode="simple"] .cupertino-home-hero .hero-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: inherit !important;
    margin: 0 !important;
}

#view-home[data-home-mode="simple"] .hero-title-main {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    font-size: clamp(32px, 3.2vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.14;
    color: #1a3358;
    background-image: linear-gradient(180deg, #243044 8%, #1a4d8c 68%, #007aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.65));
}

#view-home[data-home-mode="simple"] .hero-title-sub {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    font-size: clamp(15px, 1.55vw, 18px);
    font-weight: 650;
    letter-spacing: 0.04em;
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    background: none;
    filter: none;
}

#view-home[data-home-mode="simple"] .home-status-pill {
    margin-bottom: 0 !important;
}

#view-home[data-home-mode="simple"] .cupertino-home-canvas {
    flex: 0 1 auto;
    width: 100% !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    padding: 16px !important;
    display: flex;
    min-height: 0;
}

#view-home[data-home-mode="simple"] .home-widget-panel,
#view-home[data-home-mode="simple"] .home-band-catalog {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    height: auto;
}

#view-home[data-home-mode="simple"] .home-band-primary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
    flex: 0 0 auto;
    height: auto;
    width: 100%;
}

#view-home[data-home-mode="simple"] .home-band-primary {
    min-height: 120px;
    height: auto;
    padding: 18px 18px;
}

#view-home[data-home-mode="simple"] .home-band-primary-title {
    font-size: 16px;
}

#view-home[data-home-mode="simple"] .home-band-primary-blurb {
    font-size: 12px;
}

#view-home[data-home-mode="simple"] .home-band-primary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

#view-home[data-home-mode="simple"] .home-footer {
    flex-shrink: 0;
    padding-bottom: 8px;
}

@media (max-height: 740px) {
    #view-home[data-home-mode="simple"] .home-portal {
        justify-content: flex-start;
        min-height: 0;
        padding: 24px 0 20px;
    }
}

@media (max-width: 768px) {
    #view-home[data-home-mode="simple"] .home-portal {
        width: calc(100% - 32px);
        max-width: none;
        padding: 24px 0 20px;
    }

    #view-home[data-home-mode="simple"] .home-band-primary-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        overflow: visible;
    }

    #view-home[data-home-mode="simple"] .home-band-primary {
        min-height: 108px;
        height: auto;
        padding: 16px;
    }
}
