/* Boot Shell - 使用设计系统 */
/* 应用启动加载界面 */

.app-boot-shell {
    min-height: 100vh;
    color: var(--color-text-primary);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0, rgba(255, 255, 255, 0) 180px),
        radial-gradient(circle at 20% 0, rgba(242, 107, 29, 0.1), transparent 28%),
        var(--color-bg-page);
    font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

.app-boot-shell,
.app-boot-shell *,
.app-boot-shell *::before,
.app-boot-shell *::after {
    box-sizing: border-box;
}

.app-boot-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    height: 52px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.app-boot-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 202px;
    padding: 0 var(--space-5) 0 var(--space-5);
}

.app-boot-brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.app-boot-brand-mark span {
    position: relative;
    width: 21px;
    height: 19px;
}

.app-boot-brand-mark span::before,
.app-boot-brand-mark span::after {
    position: absolute;
    inset: 0;
    content: "";
    clip-path: polygon(0 0, 25% 0, 50% 55%, 76% 0, 100% 0, 52% 100%);
}

.app-boot-brand-mark span::before {
    background: var(--color-primary);
    transform: translateY(2px);
}

.app-boot-brand-mark span::after {
    background: #ffb12f;
    transform: scale(0.72) translateY(-2px);
}

.app-boot-brand strong {
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0;
    white-space: nowrap;
}

.app-boot-menu {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.app-boot-menu::-webkit-scrollbar {
    display: none;
}

.app-boot-menu span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    padding: 0 var(--space-5);
    color: var(--color-text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.app-boot-menu span.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-color: #ffd8c2;
}

.app-boot-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2);
    min-width: 302px;
    padding: 0 var(--space-3);
}

.app-boot-tools span {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    color: var(--color-text-secondary);
    border-radius: var(--radius-base);
    background: var(--color-bg-subtle);
}

.app-boot-body {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 52px);
    padding: var(--space-6);
}

.app-boot-card {
    width: min(420px, 100%);
    padding: var(--space-6);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.app-boot-spinner {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.app-boot-card h1 {
    margin: 0 0 var(--space-2);
    color: var(--color-text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.app-boot-card p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .app-boot-brand {
        min-width: 0;
        padding: 0 var(--space-3);
    }

    .app-boot-tools {
        min-width: 0;
        padding: 0 var(--space-2);
    }

    .app-boot-body {
        padding: var(--space-4);
    }

    .app-boot-card {
        padding: var(--space-4);
    }
}

/* Boot workspace 和 status */
.app-boot-workspace {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-4);
}

.app-boot-filters {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: var(--color-bg-base);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.app-boot-filters span,
.app-boot-filters strong,
.app-boot-filters em {
    height: 32px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-base);
}

.app-boot-filters span {
    width: 120px;
}

.app-boot-filters strong {
    width: 80px;
}

.app-boot-filters em {
    width: 80px;
}

.app-boot-table {
    background: var(--color-bg-base);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.app-boot-table-head {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border-light);
}

.app-boot-table-head span {
    height: 20px;
    background: var(--color-bg-hover);
    border-radius: var(--radius-sm);
}

.app-boot-table-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.app-boot-table-row:last-child {
    border-bottom: 0;
}

.app-boot-table-row span {
    height: 16px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-sm);
}

.app-boot-status {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: var(--color-bg-base);
    border-top: 1px solid var(--color-border-light);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

.app-boot-status > div:first-child {
    display: grid;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.app-boot-status strong {
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.app-boot-status span {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.app-boot-progress {
    height: 6px;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.app-boot-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: var(--radius-full);
    animation: bootProgress 2s ease-in-out infinite;
}

@keyframes bootProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}
