/* _content/AiApiServer/Components/Layout/LoadingSpinner.razor.rz.scp.css */
/* Used under CC0 license */

.lds-ellipsis[b-0hojzifwdc] {
    color: #666;
    animation: fade-in-b-0hojzifwdc 1s;
}

@keyframes fade-in-b-0hojzifwdc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

    .lds-ellipsis[b-0hojzifwdc],
    .lds-ellipsis div[b-0hojzifwdc] {
        box-sizing: border-box;
    }

.lds-ellipsis[b-0hojzifwdc] {
    margin: auto;
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div[b-0hojzifwdc] {
        position: absolute;
        top: 33.33333px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: currentColor;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1)[b-0hojzifwdc] {
            left: 8px;
            animation: lds-ellipsis1-b-0hojzifwdc 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2)[b-0hojzifwdc] {
            left: 8px;
            animation: lds-ellipsis2-b-0hojzifwdc 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3)[b-0hojzifwdc] {
            left: 32px;
            animation: lds-ellipsis2-b-0hojzifwdc 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4)[b-0hojzifwdc] {
            left: 56px;
            animation: lds-ellipsis3-b-0hojzifwdc 0.6s infinite;
        }

@keyframes lds-ellipsis1-b-0hojzifwdc {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3-b-0hojzifwdc {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2-b-0hojzifwdc {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}
/* _content/AiApiServer/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-4i1ssmd7p4] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-4i1ssmd7p4] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/AiApiServer/Components/Layout/SurveyPrompt.razor.rz.scp.css */
.surveyContainer[b-3yramtzja0] {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9em;
    margin: 0.5rem auto -0.7rem auto;
    max-width: 1024px;
    color: #444;
}

    .surveyContainer a[b-3yramtzja0] {
        text-decoration: underline;
    }

    .surveyContainer .tool-icon[b-3yramtzja0] {
        margin-top: 0.15rem;
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
    }
/* _content/AiApiServer/Components/Pages/Admin/Admin.razor.rz.scp.css */
.admin-page[b-chajzm27xy] {
    box-sizing: border-box;
    /* 稳定占用视口高度：加载态与就绪态高度一致，
       避免切换时纵向滚动条出现又消失。 */
    min-height: 100dvh;
    padding: 24px clamp(12px, 2.4vw, 28px);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    /* 横向溢出交给内部 .admin-table-wrapper 自己滚动：
       否则「加载中 → 完整布局」切换的瞬间页面会闪一下横向滚动条。 */
    overflow-x: hidden;
}

.admin-layout[b-chajzm27xy] {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
    min-width: 0;
}

/* ---------- 侧边导航 ---------- */

.admin-sidebar[b-chajzm27xy] {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.admin-sidebar-nav[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.admin-sidebar-nav-button[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #475569;
    font-size: 14.5px;
    font-family: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.admin-sidebar-nav-button:hover[b-chajzm27xy] {
    background: rgba(99, 102, 241, 0.08);
    color: #312e81;
    transform: translateX(2px);
}

.admin-sidebar-nav-button-active[b-chajzm27xy] {
    background: linear-gradient(135deg, rgba(31, 94, 255, 0.14) 0%, rgba(99, 102, 241, 0.14) 100%);
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.admin-sidebar-nav-button-active:hover[b-chajzm27xy] {
    background: linear-gradient(135deg, rgba(31, 94, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    color: #1d4ed8;
}

.admin-sidebar-nav-icon[b-chajzm27xy] {
    flex: none;
    width: 19px;
    height: 19px;
    opacity: 0.85;
}

.admin-sidebar-footer[b-chajzm27xy] {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-sidebar-logout[b-chajzm27xy] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.admin-sidebar-logout svg[b-chajzm27xy] {
    width: 16px;
    height: 16px;
}

/* ---------- 面包屑 ---------- */

.admin-main[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.admin-breadcrumb[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    font-size: 13.5px;
    color: #64748b;
}

.admin-breadcrumb-link[b-chajzm27xy] {
    color: #64748b;
    text-decoration: none;
    transition: color 140ms ease;
}

.admin-breadcrumb-link:hover[b-chajzm27xy] {
    color: #1d4ed8;
}

.admin-breadcrumb-sep[b-chajzm27xy] {
    width: 13px;
    height: 13px;
    color: #cbd5e1;
}

.admin-breadcrumb-current[b-chajzm27xy] {
    color: #64748b;
}

.admin-breadcrumb-current-strong[b-chajzm27xy] {
    color: #0f172a;
    font-weight: 700;
}

.admin-content[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-card[b-chajzm27xy] {
    width: 100%;
    margin: 0;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.admin-login-card[b-chajzm27xy] {
    width: min(480px, 100%);

    /* 固定宽度的登录卡片需要居中，主内容区的卡片则由 .admin-card 撑满右列 */
    margin-inline: auto;
}

.admin-card-header[b-chajzm27xy] {
    margin-bottom: 20px;
}

.admin-card-header h1[b-chajzm27xy],
.admin-card-header h2[b-chajzm27xy] {
    margin: 0 0 8px;
    color: #0f172a;
}

.admin-card-header h1[b-chajzm27xy] {
    font-size: 28px;
}

.admin-card-header h2[b-chajzm27xy] {
    font-size: 22px;
}

.admin-card-header p[b-chajzm27xy],
.admin-card-meta[b-chajzm27xy] {
    margin: 0;
    color: #475569;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.6;
}

.admin-header-row[b-chajzm27xy] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

/* 与 .admin-section-header 保持一致的标题行对齐方式 */
.admin-card-header.admin-header-row[b-chajzm27xy] {
    align-items: center;
}

.admin-header-row > div[b-chajzm27xy],
.admin-section-header > div[b-chajzm27xy] {
    min-width: 0;
}

.admin-header-row .admin-secondary-button[b-chajzm27xy],
.admin-header-button[b-chajzm27xy],
.admin-tab-button[b-chajzm27xy] {
    white-space: nowrap;
}

.admin-header-row .admin-secondary-button[b-chajzm27xy] {
    flex: 0 0 auto;
}

.admin-section-header[b-chajzm27xy] {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-section-header h2[b-chajzm27xy] {
    margin: 0;
}

.admin-header-button[b-chajzm27xy] {
    white-space: nowrap;
}

.admin-tabs[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.admin-tab-button[b-chajzm27xy] {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.96);
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.admin-tab-button:hover[b-chajzm27xy] {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.38);
}

.admin-tab-button-active[b-chajzm27xy] {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.28);
    background: rgba(219, 234, 254, 0.95);
}

.admin-grid[b-chajzm27xy] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
}

.admin-field[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-login-row[b-chajzm27xy] {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.admin-login-field[b-chajzm27xy] {
    flex: 1;
}

.admin-login-button[b-chajzm27xy] {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-field-full[b-chajzm27xy] {
    grid-column: 1 / -1;
}

.admin-field label[b-chajzm27xy] {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.admin-field[b-chajzm27xy]  input,
.admin-field[b-chajzm27xy]  textarea,
.admin-field[b-chajzm27xy]  select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #fff;
    color: #0f172a;
    box-sizing: border-box;
    font: inherit;
}

.admin-field[b-chajzm27xy]  textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.6;
}

.admin-field[b-chajzm27xy]  input:focus,
.admin-field[b-chajzm27xy]  textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.72);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.admin-readonly-field div[b-chajzm27xy],
.admin-loading-block[b-chajzm27xy],
.admin-empty-block[b-chajzm27xy] {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(248, 250, 252, 0.95);
    color: #334155;
    box-sizing: border-box;
}

.admin-helper-text[b-chajzm27xy],
.admin-session-subtext[b-chajzm27xy] {
    font-size: 13px;
    color: #64748b;
}

.admin-actions[b-chajzm27xy] {
    margin-top: 24px;
}

.admin-primary-button[b-chajzm27xy],
.admin-secondary-button[b-chajzm27xy],
.admin-danger-button[b-chajzm27xy],
.admin-warning-button[b-chajzm27xy] {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.admin-link-button[b-chajzm27xy] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-primary-button[b-chajzm27xy] {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.admin-secondary-button[b-chajzm27xy] {
    color: #1e3a8a;
    background: rgba(219, 234, 254, 0.9);
}

.admin-danger-button[b-chajzm27xy] {
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

.admin-warning-button[b-chajzm27xy] {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.18);
}

.admin-danger-button-compact[b-chajzm27xy] {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
}

.admin-primary-button:disabled[b-chajzm27xy],
.admin-secondary-button:disabled[b-chajzm27xy],
.admin-danger-button:disabled[b-chajzm27xy],
.admin-warning-button:disabled[b-chajzm27xy] {
    opacity: 0.65;
    cursor: not-allowed;
}

.admin-alert[b-chajzm27xy] {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
}

.admin-alert-success[b-chajzm27xy] {
    color: #166534;
    background: rgba(220, 252, 231, 0.9);
}

.admin-alert-error[b-chajzm27xy] {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.92);
}

.admin-alert-warning[b-chajzm27xy] {
    color: #92400e;
    background: rgba(254, 243, 199, 0.96);
}

.admin-loading[b-chajzm27xy] {
    text-align: center;
    color: #475569;
}

.admin-card-meta-actions[b-chajzm27xy] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-toggle-list[b-chajzm27xy] {
    display: grid;
    gap: 14px;
}

.admin-toggle-item[b-chajzm27xy] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
    cursor: pointer;
}

.admin-toggle-item[b-chajzm27xy]  input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
}

.admin-toggle-item strong[b-chajzm27xy] {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.admin-document-toolbar[b-chajzm27xy] {
    flex-wrap: wrap;
}

.admin-document-upload-button[b-chajzm27xy] {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
}

.admin-document-upload-button-disabled[b-chajzm27xy] {
    opacity: 0.65;
    cursor: not-allowed;
}

.admin-document-upload-button[b-chajzm27xy]  .admin-document-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.admin-document-upload-button-disabled[b-chajzm27xy]  .admin-document-upload-input {
    cursor: not-allowed;
}

.admin-document-upload-tip[b-chajzm27xy] {
    margin: 16px 0;
}

.admin-tool-summary[b-chajzm27xy] {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.95);
}

.admin-tool-summary-header[b-chajzm27xy] {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.admin-tool-summary-header strong[b-chajzm27xy] {
    color: #0f172a;
    font-size: 16px;
}

.admin-tool-status[b-chajzm27xy] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-tool-status-enabled[b-chajzm27xy] {
    color: #166534;
    background: rgba(220, 252, 231, 0.95);
}

.admin-tool-status-disabled[b-chajzm27xy] {
    color: #92400e;
    background: rgba(254, 243, 199, 0.96);
}

.admin-tool-parameter-grid[b-chajzm27xy] {
    margin-top: 18px;
}

.admin-tool-result-field[b-chajzm27xy] {
    margin-top: 20px;
}

.admin-tool-result[b-chajzm27xy] {
    margin: 0;
    min-height: 220px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    font: 13px/1.6 Consolas, Monaco, "Courier New", monospace;
}

.admin-table-wrapper[b-chajzm27xy] {
    margin-top: 8px;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
}

.admin-table[b-chajzm27xy] {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

/* 固定列宽按内容取最小值，剩余空间全部留给「名称 / 地址」列，
   避免固定列把主列挤窄后还留下一堆空白。 */
.admin-table .admin-col-order[b-chajzm27xy] {
    width: 168px;
}

.admin-table .admin-col-group[b-chajzm27xy] {
    width: 132px;
}

.admin-table .admin-col-mode[b-chajzm27xy] {
    width: 100px;
}

.admin-table .admin-col-icon[b-chajzm27xy] {
    width: 76px;
}

.admin-table .admin-col-tags[b-chajzm27xy] {
    width: 128px;
}

.admin-table .admin-col-actions[b-chajzm27xy] {
    width: 150px;
}

.admin-table th[b-chajzm27xy],
.admin-table td[b-chajzm27xy] {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    vertical-align: top;
}

.admin-table th[b-chajzm27xy] {
    font-size: 13px;
    color: #475569;
    background: rgba(248, 250, 252, 0.95);
}

.admin-table tbody tr[b-chajzm27xy] {
    transition: background-color 140ms ease;
}

.admin-table tbody tr:hover[b-chajzm27xy] {
    background: rgba(239, 246, 255, 0.55);
}

.admin-table tbody tr:last-child td[b-chajzm27xy] {
    border-bottom: none;
}

.admin-table-actions[b-chajzm27xy] {
    white-space: nowrap;
}

.admin-table-actions .admin-card-meta-actions[b-chajzm27xy] {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
}

.admin-table-actions .admin-secondary-button[b-chajzm27xy],
.admin-table-actions .admin-danger-button[b-chajzm27xy] {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    white-space: nowrap;
}

.admin-session-link[b-chajzm27xy] {
    display: inline-block;
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.admin-session-link:hover[b-chajzm27xy] {
    text-decoration: underline;
}

.admin-session-id[b-chajzm27xy] {
    word-break: break-all;
    color: #0f172a;
    font-weight: 600;
}

.admin-history-button[b-chajzm27xy] {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    line-height: 1;
}

.admin-modal-backdrop[b-chajzm27xy] {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.52);
}

.admin-modal-card[b-chajzm27xy] {
    width: min(820px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.admin-modal-header[b-chajzm27xy] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-modal-header h3[b-chajzm27xy] {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
}

.admin-modal-actions[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.admin-history-summary-grid[b-chajzm27xy] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.admin-history-summary-item[b-chajzm27xy] {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.95);
}

.admin-history-summary-item span[b-chajzm27xy] {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

.admin-history-summary-item strong[b-chajzm27xy] {
    color: #0f172a;
    font-size: 16px;
}

.admin-modal-history-list[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-modal-history-item[b-chajzm27xy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.95);
}

.admin-history-item-main[b-chajzm27xy] {
    min-width: 0;
}

.admin-history-item-main strong[b-chajzm27xy] {
    display: block;
    color: #0f172a;
}

.admin-history-status[b-chajzm27xy] {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-history-status-success[b-chajzm27xy] {
    color: #166534;
    background: rgba(220, 252, 231, 0.95);
}

.admin-history-status-error[b-chajzm27xy] {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.95);
}

code[b-chajzm27xy] {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(226, 232, 240, 0.8);
}

@media (max-width: 720px) {
    .admin-page[b-chajzm27xy] {
        padding: 20px 12px;
    }

    .admin-card[b-chajzm27xy] {
        padding: 20px;
        border-radius: 20px;
    }

    .admin-card-header h1[b-chajzm27xy] {
        font-size: 22px;
    }

    .admin-card-header h2[b-chajzm27xy] {
        font-size: 18px;
    }

    .admin-grid[b-chajzm27xy] {
        grid-template-columns: 1fr;
    }

    .admin-header-row[b-chajzm27xy],
    .admin-section-header[b-chajzm27xy] {
        align-items: center;
    }

    .admin-login-row[b-chajzm27xy] {
        flex-direction: column;
    }

    .admin-login-button[b-chajzm27xy] {
        width: 100%;
    }

    .admin-primary-button[b-chajzm27xy],
    .admin-secondary-button[b-chajzm27xy],
    .admin-danger-button[b-chajzm27xy],
    .admin-tab-button[b-chajzm27xy] {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }

    .admin-card-meta-actions[b-chajzm27xy] {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-toggle-item[b-chajzm27xy] {
        padding: 14px 16px;
    }

    .admin-tool-summary-header[b-chajzm27xy] {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-modal-backdrop[b-chajzm27xy] {
        padding: 12px;
    }

    .admin-modal-card[b-chajzm27xy] {
        max-height: calc(100vh - 24px);
        padding: 20px;
    }

    .admin-modal-header[b-chajzm27xy] {
        flex-direction: column;
    }

    .admin-modal-actions[b-chajzm27xy] {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-history-summary-grid[b-chajzm27xy] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-modal-history-item[b-chajzm27xy] {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-tabs[b-chajzm27xy] {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -2px;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .admin-table th[b-chajzm27xy],
    .admin-table td[b-chajzm27xy] {
        min-width: 140px;
    }
}

/* ===== 数据统计 tab ===== */
.admin-stat-summary-grid[b-chajzm27xy] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.admin-stat-summary-item[b-chajzm27xy] {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.95);
}

.admin-stat-summary-item span[b-chajzm27xy] {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
}

.admin-stat-summary-item strong[b-chajzm27xy] {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.3;
}

.admin-stat-trend[b-chajzm27xy] {
    margin-top: 4px;
}

.admin-stat-trend h3[b-chajzm27xy] {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.admin-stat-trend-chart[b-chajzm27xy] {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 220px;
    padding: 12px 8px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.6);
    overflow-x: auto;
}

.admin-stat-trend-day[b-chajzm27xy] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1 0 auto;
    min-width: 26px;
    height: 100%;
    gap: 6px;
}

.admin-stat-trend-bars[b-chajzm27xy] {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 100%;
    height: calc(100% - 20px);
}

.admin-stat-trend-bar[b-chajzm27xy] {
    width: 7px;
    min-height: 2px;
    border-radius: 3px 3px 1px 1px;
    transition: height 0.2s ease;
}

.admin-stat-trend-bar-visits[b-chajzm27xy] {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
}

.admin-stat-trend-bar-messages[b-chajzm27xy] {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.admin-stat-trend-bar-conversations[b-chajzm27xy] {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.admin-stat-trend-date[b-chajzm27xy] {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

/* ---------- 趋势图悬停提示 ---------- */

.admin-stat-trend-tip[b-chajzm27xy] {
    position: absolute;
    top: 6px;
    left: 50%;
    z-index: 20;
    min-width: 132px;
    padding: 9px 11px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.94);
    color: #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.26);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 140ms ease;
}

/* 图表容器是横向滚动容器，提示框必须留在其内部才不会被裁掉 */
.admin-stat-trend-day:first-child .admin-stat-trend-tip[b-chajzm27xy] {
    left: 0;
    transform: none;
}

.admin-stat-trend-day:last-child .admin-stat-trend-tip[b-chajzm27xy] {
    left: auto;
    right: 0;
    transform: none;
}

.admin-stat-trend-day:hover .admin-stat-trend-tip[b-chajzm27xy] {
    opacity: 1;
}

.admin-stat-trend-tip-title[b-chajzm27xy] {
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    font-weight: 700;
    color: #f8fafc;
}

.admin-stat-trend-tip-row[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-stat-trend-tip-row + .admin-stat-trend-tip-row[b-chajzm27xy] {
    margin-top: 3px;
}

.admin-stat-trend-tip-dot[b-chajzm27xy] {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 3px;
}

.admin-stat-trend-tip-label[b-chajzm27xy] {
    color: rgba(226, 232, 240, 0.78);
}

.admin-stat-trend-tip-value[b-chajzm27xy] {
    margin-left: auto;
    padding-left: 12px;
    font-weight: 700;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.admin-stat-trend-legend[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 12px;
    color: #475569;
}

.admin-stat-legend-item[b-chajzm27xy] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-stat-legend-item[b-chajzm27xy]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.admin-stat-legend-visits[b-chajzm27xy]::before {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
}

.admin-stat-legend-messages[b-chajzm27xy]::before {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
}

.admin-stat-legend-conversations[b-chajzm27xy]::before {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

@media (max-width: 720px) {
    .admin-stat-summary-grid[b-chajzm27xy] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-stat-trend-chart[b-chajzm27xy] {
        height: 180px;
    }
}
/* ---------- 快捷导航 ---------- */

.admin-card-meta-text[b-chajzm27xy] {
    margin: 6px 0 0;
    max-width: 640px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.admin-button-compact[b-chajzm27xy] {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.admin-nav-order-cell[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-position[b-chajzm27xy] {
    min-width: 22px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.admin-nav-order[b-chajzm27xy] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.admin-nav-order-button[b-chajzm27xy] {
    display: grid;
    place-items: center;
    width: 28px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.96);
    color: #475569;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-nav-order-button:hover:not(:disabled)[b-chajzm27xy] {
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.4);
    color: #4338ca;
}

.admin-nav-order-button:disabled[b-chajzm27xy] {
    opacity: 0.4;
    cursor: not-allowed;
}

.admin-nav-order-button svg[b-chajzm27xy] {
    width: 14px;
    height: 14px;
}

.admin-nav-title-cell[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-nav-title-cell > div[b-chajzm27xy] {
    min-width: 0;
}

.admin-nav-swatch[b-chajzm27xy] {
    flex: none;
    width: 10px;
    height: 34px;
    border-radius: 999px;
}

.admin-nav-title[b-chajzm27xy] {
    font-weight: 700;
    color: #0f172a;
}

.admin-nav-url[b-chajzm27xy] {
    margin-top: 2px;
    color: #64748b;
    font-size: 12.5px;
    word-break: break-all;
}

.admin-nav-tags-cell[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-nav-tag[b-chajzm27xy] {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    font-size: 11.5px;
}

.admin-nav-icon-preview[b-chajzm27xy] {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-nav-icon-preview-empty[b-chajzm27xy] {
    display: inline-grid;
    place-items: center;
    color: #94a3b8;
    font-size: 11px;
}

.admin-nav-actions[b-chajzm27xy] {
    display: flex;
    gap: 8px;
}

/* ---------- 快捷导航：分组筛选条 ---------- */

.admin-group-filter[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.admin-filter-chip[b-chajzm27xy] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-filter-chip:hover[b-chajzm27xy] {
    background: rgba(238, 242, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.45);
    color: #4338ca;
}

.admin-filter-chip-active[b-chajzm27xy] {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.55);
    color: #312e81;
}

.admin-filter-chip-count[b-chajzm27xy] {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
}

.admin-filter-chip-active .admin-filter-chip-count[b-chajzm27xy] {
    background: rgba(99, 102, 241, 0.22);
    color: #312e81;
}

/* 表格内联切换所属分组 */
.admin-group-select[b-chajzm27xy] {
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: #fff;
    color: #1e3a8a;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.admin-group-select:hover:not(:disabled)[b-chajzm27xy] {
    border-color: rgba(99, 102, 241, 0.45);
}

.admin-group-select:disabled[b-chajzm27xy] {
    opacity: 0.55;
    cursor: not-allowed;
}

.admin-field-with-action[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.admin-field-with-action-wrap[b-chajzm27xy] {
    flex-wrap: wrap;
}

/* 背景配置这一行内容较多，窄屏时允许换行，避免压到相邻字段 */
.admin-field-with-action-roomy[b-chajzm27xy] {
    flex-wrap: wrap;
    row-gap: 10px;
}

.admin-field-with-action-roomy .admin-input[b-chajzm27xy] {
    flex: 1 1 120px;
}

.admin-field-with-action .admin-input[b-chajzm27xy] {
    flex: 1 1 160px;
    min-width: 0;
}

.admin-field-hint[b-chajzm27xy] {
    margin: 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
}

.admin-color-input[b-chajzm27xy] {
    flex: none;
    width: 42px;
    height: 38px;
    padding: 3px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.admin-range[b-chajzm27xy] {
    flex: 1;
    min-width: 0;
    height: 38px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.admin-range-value[b-chajzm27xy] {
    flex: none;
    min-width: 52px;
    padding: 8px 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    font-size: 13.5px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* 硬性限制：字段内容绝不溢出到相邻列 */
.admin-field-isolated[b-chajzm27xy] {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.admin-accent-presets[b-chajzm27xy] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: none;
}

.admin-bg-preview[b-chajzm27xy] {
    flex: none;
    width: 72px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ---------- 打开方式 ---------- */

.admin-open-mode-list[b-chajzm27xy] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.admin-open-mode-item[b-chajzm27xy] {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.admin-open-mode-item:hover:not(:disabled)[b-chajzm27xy] {
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(238, 242, 255, 0.9);
}

.admin-open-mode-item:disabled[b-chajzm27xy] {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-open-mode-item-active[b-chajzm27xy] {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(238, 242, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    color: #312e81;
}

.admin-open-mode-check[b-chajzm27xy] {
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1.5px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    color: transparent;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-open-mode-item-active .admin-open-mode-check[b-chajzm27xy] {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.admin-open-mode-check svg[b-chajzm27xy] {
    width: 11px;
    height: 11px;
}

.admin-open-mode-text[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.admin-open-mode-label[b-chajzm27xy] {
    font-size: 13.5px;
    font-weight: 700;
}

.admin-open-mode-desc[b-chajzm27xy] {
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.45;
}

.admin-open-mode-tag[b-chajzm27xy] {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4338ca;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .admin-open-mode-list[b-chajzm27xy] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-accent-preset[b-chajzm27xy] {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease;
}

.admin-accent-preset:hover[b-chajzm27xy] {
    transform: scale(1.14);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
}/* ---------- 弹窗 ---------- */

.admin-modal-mask[b-chajzm27xy] {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    animation: admin-modal-fade-b-chajzm27xy 160ms ease;
}

@keyframes admin-modal-fade-b-chajzm27xy {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.admin-modal[b-chajzm27xy] {
    width: min(640px, 100%);
    max-width: 100%;
    max-height: min(86vh, 820px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
    animation: admin-modal-pop-b-chajzm27xy 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes admin-modal-pop-b-chajzm27xy {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal .admin-grid[b-chajzm27xy] {
    margin-top: 18px;
}

.admin-modal-actions[b-chajzm27xy] {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.admin-icon-button[b-chajzm27xy] {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.96);
    color: #475569;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}

.admin-icon-button:hover[b-chajzm27xy] {
    background: #fee2e2;
    border-color: rgba(239, 68, 68, 0.4);
    color: #b91c1c;
}

.admin-icon-button svg[b-chajzm27xy] {
    width: 15px;
    height: 15px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1024px) {
    .admin-layout[b-chajzm27xy] {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar[b-chajzm27xy] {
        position: static;
    }

    .admin-sidebar-nav[b-chajzm27xy] {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-sidebar-nav-button[b-chajzm27xy] {
        width: auto;
    }
}
/* ---------- 导航分组 ---------- */

.admin-group-panel[b-chajzm27xy] {
    padding: 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-group-panel .admin-section-header[b-chajzm27xy] {
    margin-bottom: 14px;
}

.admin-group-panel h3[b-chajzm27xy] {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.admin-group-list[b-chajzm27xy] {
    display: grid;
    gap: 10px;
}

.admin-group-item[b-chajzm27xy] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-group-body[b-chajzm27xy] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.admin-group-name[b-chajzm27xy] {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.admin-group-desc[b-chajzm27xy] {
    font-size: 12.5px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-group-count[b-chajzm27xy] {
    flex: none;
    font-size: 12.5px;
    color: #64748b;
    white-space: nowrap;
}

.admin-section-divider[b-chajzm27xy] {
    margin: 24px 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #475569;
}

.admin-modal-narrow[b-chajzm27xy] {
    width: min(460px, 100%);
}

.admin-grid-single[b-chajzm27xy] {
    grid-template-columns: minmax(0, 1fr);
}

.admin-grid-compact[b-chajzm27xy] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* ---------- 上传与资源管理 ---------- */

.admin-visually-hidden[b-chajzm27xy] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-upload-button[b-chajzm27xy] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.96);
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-upload-button:hover[b-chajzm27xy] {
    background: #eef2ff;
    border-color: rgba(99, 102, 241, 0.42);
    color: #4338ca;
}

.admin-upload-button-lg[b-chajzm27xy] {
    min-height: 44px;
    padding: 0 22px;
    font-size: 14.5px;
}

.admin-upload-button svg[b-chajzm27xy] {
    width: 17px;
    height: 17px;
}

.admin-upload-zone[b-chajzm27xy] {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.55);
}

.admin-asset-preview[b-chajzm27xy] {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 9px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 720px) {
    .admin-grid-compact[b-chajzm27xy] {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* _content/AiApiServer/Components/Pages/Admin/AdminConversationPreview.razor.rz.scp.css */
.admin-preview-page[b-dbx0k4vfys] {
    min-height: 100vh;
    padding: 32px 16px;
    background:
        radial-gradient(720px 320px at 12% -6%, rgba(59, 130, 246, 0.14), transparent 70%),
        radial-gradient(560px 260px at 90% -10%, rgba(139, 92, 246, 0.12), transparent 72%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.admin-preview-shell[b-dbx0k4vfys] {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-preview-card[b-dbx0k4vfys] {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
}

.admin-preview-status[b-dbx0k4vfys] {
    width: min(720px, 100%);
    text-align: center;
    color: #334155;
}

.admin-preview-status h1[b-dbx0k4vfys] {
    margin: 0 0 12px;
    color: #0f172a;
}

.admin-preview-status p[b-dbx0k4vfys] {
    margin: 0;
    line-height: 1.7;
}

.admin-preview-header[b-dbx0k4vfys] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.admin-preview-eyebrow[b-dbx0k4vfys] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-preview-eyebrow[b-dbx0k4vfys]::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.admin-preview-header h1[b-dbx0k4vfys] {
    margin: 10px 0 0;
    font-size: 28px;
    color: #0f172a;
    word-break: break-all;
}

.admin-preview-back[b-dbx0k4vfys] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.92));
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px -14px rgba(59, 130, 246, 0.9);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.admin-preview-back[b-dbx0k4vfys]::before {
    content: '←';
    font-weight: 700;
}

.admin-preview-back:hover[b-dbx0k4vfys] {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -14px rgba(59, 130, 246, 0.95);
}

.admin-preview-meta-grid[b-dbx0k4vfys] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.admin-preview-meta-item[b-dbx0k4vfys] {
    padding: 15px 17px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.9) 100%);
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-preview-meta-item:hover[b-dbx0k4vfys] {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.admin-preview-meta-label[b-dbx0k4vfys] {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-preview-meta-value[b-dbx0k4vfys] {
    margin-top: 8px;
    color: #0f172a;
    font-weight: 700;
}

.admin-preview-break[b-dbx0k4vfys] {
    word-break: break-all;
}

.admin-preview-chat-card[b-dbx0k4vfys] {
    padding-bottom: 30px;
}

.admin-preview-chat-card[b-dbx0k4vfys]  .message-list-container {
    margin: 0;
}

.admin-preview-chat-card[b-dbx0k4vfys]  .message-list {
    gap: 1.15rem;
}

/* 预览页是独立于 /Chat 的浅色页面，强制使用亮色变量，避免跟随系统暗色而错乱 */
.admin-preview-chat-card[b-dbx0k4vfys] {
    --chat-page-bg: #ffffff;
    --chat-surface: #ffffff;
    --chat-surface-soft: rgba(248, 250, 252, 0.96);
    --chat-border: rgba(148, 163, 184, 0.28);
    --chat-border-soft: rgba(148, 163, 184, 0.24);
    --chat-border-faint: rgba(148, 163, 184, 0.12);
    --chat-border-input: rgb(148, 163, 184);
    --chat-bubble-assistant-bg: #ffffff;
    --chat-bubble-assistant-border: rgba(148, 163, 184, 0.42);
    --chat-bubble-assistant-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px -18px rgba(15, 23, 42, 0.5);
    --chat-text-primary: #0f172a;
    --chat-text-secondary: #334155;
    --chat-text-tertiary: #475569;
    --chat-text-muted: #64748b;
    --chat-text-faint: #94a3b8;
    --chat-accent: #2563eb;
    --chat-accent-strong: #1d4ed8;
    --chat-accent-deep: #1e40af;
    --chat-bg-tool-card: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    --chat-bg-tool-summary: linear-gradient(180deg, rgba(244, 247, 255, 0.9) 0%, rgba(255, 255, 255, 0.92) 100%);
    --chat-bg-search-current: linear-gradient(180deg, rgba(238, 242, 255, 0.72) 0%, rgba(255, 255, 255, 0.88) 100%);
    --chat-bg-inline-result: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --chat-table-stripe: rgba(0, 0, 0, 0.05);
    --chat-border-table: silver;
    --chat-count-bg: rgba(79, 70, 229, 0.1);
    --chat-count-color: #4338ca;
    --chat-state-running-color: #4338ca;
    --chat-state-running-bg: rgba(99, 102, 241, 0.1);
    --chat-state-complete-color: #166534;
    --chat-state-complete-bg: rgba(34, 197, 94, 0.12);
    --chat-state-current-color: #0f766e;
    --chat-state-current-bg: rgba(45, 212, 191, 0.12);
    --chat-state-result-color: #1d4ed8;
    --chat-state-result-bg: rgba(96, 165, 250, 0.12);
    --chat-complete-btn-bg: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
    --chat-complete-btn-color: #166534;
    --chat-complete-btn-active-bg: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
    --chat-complete-btn-active-color: #4338ca;
}

@media (max-width: 900px) {
    .admin-preview-meta-grid[b-dbx0k4vfys] {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .admin-preview-page[b-dbx0k4vfys] {
        padding: 20px 12px;
    }

    .admin-preview-card[b-dbx0k4vfys] {
        padding: 20px;
        border-radius: 20px;
    }

    .admin-preview-header[b-dbx0k4vfys] {
        flex-direction: column;
    }

    .admin-preview-header h1[b-dbx0k4vfys] {
        font-size: 22px;
    }

    .admin-preview-back[b-dbx0k4vfys] {
        width: 100%;
        justify-content: center;
    }

    .admin-preview-meta-grid[b-dbx0k4vfys] {
        grid-template-columns: 1fr;
    }
}
/* _content/AiApiServer/Components/Pages/Chat/Chat.razor.rz.scp.css */
.chat-page[b-osah8hyrr1] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
    background: var(--chat-page-bg);
    color: var(--chat-text-primary);
}

/* 页面上方的柔和光晕，仅作用于顶部区域，避免让消息气泡看起来发透 */
.chat-page[b-osah8hyrr1]::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(620px 200px at 10% -60%, rgba(59, 130, 246, 0.1), transparent 72%),
        radial-gradient(520px 180px at 90% -70%, rgba(139, 92, 246, 0.08), transparent 74%);
}

.chat-page > *[b-osah8hyrr1] {
    position: relative;
    z-index: 1;
}

.chat-main-scroll[b-osah8hyrr1] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}


.chat-container[b-osah8hyrr1] {
    position: sticky;
    bottom: 0;
    z-index: 20;
    flex-shrink: 0;
    padding: 0.85rem 1.5rem max(1rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--chat-border);
    background: var(--chat-container-bg);
    backdrop-filter: blur(14px);
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.1);
}

.chat-container[b-osah8hyrr1]::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background: var(--chat-container-fade);
    pointer-events: none;
}

.chat-source-info-wrap[b-osah8hyrr1] {
    padding: 12px 0 0;
}

.chat-source-info[b-osah8hyrr1] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 10px 14px 10px 16px;
    border: 1px solid var(--chat-border-soft);
    border-left: 3px solid var(--chat-accent);
    border-radius: 14px;
    background: var(--chat-surface);
    color: var(--chat-text-secondary);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.chat-source-info-label[b-osah8hyrr1] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--chat-text-primary);
}

.chat-source-info-link[b-osah8hyrr1] {
    min-width: 0;
    color: var(--chat-accent);
    word-break: break-all;
}

.chat-source-info-meta[b-osah8hyrr1] {
    font-size: 0.8rem;
    color: var(--chat-text-muted);
}

@media (max-width: 720px) {
    .chat-source-info-wrap[b-osah8hyrr1] {
        padding-top: 10px;
    }

    .chat-source-info[b-osah8hyrr1] {
        gap: 4px 8px;
        padding: 10px 12px;
        border-radius: 14px;
    }
}









/* _content/AiApiServer/Components/Pages/Chat/ChatCitation.razor.rz.scp.css */
.citation[b-0jc4bh1qkd] {
    display: inline-flex;
    align-items: flex-start;
    padding: 0.6rem 0.85rem;
    margin-top: 1rem;
    margin-right: 0.75rem;
    border: 1px solid rgba(167, 112, 222, 0.28);
    border-left: 3px solid #a770de;
    gap: 0.6rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.35rem;
    color: var(--chat-text-secondary);
    text-decoration: none;
    background:
        linear-gradient(180deg, rgba(167, 112, 222, 0.1) 0%, rgba(167, 112, 222, 0.03) 100%),
        var(--chat-surface);
    box-shadow: 0 10px 24px -18px rgba(124, 58, 237, 0.9);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

    .citation[href]:hover[b-0jc4bh1qkd] {
        border-color: rgba(167, 112, 222, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 14px 28px -16px rgba(124, 58, 237, 0.85);
    }

    .citation svg[b-0jc4bh1qkd] {
        flex: 0 0 auto;
        margin-top: 0.15rem;
        width: 1.35rem;
        height: 1.35rem;
        color: #a770de;
    }

    .citation:active[b-0jc4bh1qkd] {
        transform: translateY(0);
        background-color: rgba(0,0,0,0.03);
    }

.citation-content[b-0jc4bh1qkd] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.citation-file[b-0jc4bh1qkd] {
    font-weight: 700;
    color: var(--chat-text-primary);
}
/* _content/AiApiServer/Components/Pages/Chat/ChatHeader.razor.rz.scp.css */
.chat-header-container[b-efwdoqs0l8] {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(150%) blur(18px);
    border-bottom: 1px solid var(--chat-border-faint);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 30px -22px rgba(15, 23, 42, 0.5);
}

.chat-header-controls[b-efwdoqs0l8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
}

.chat-header-title[b-efwdoqs0l8] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    flex: 0 0 auto;
    font-size: clamp(1.38rem, 1.22rem + 0.65vw, 1.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.08em;
    color: var(--chat-text-primary);
}

.chat-header-title[b-efwdoqs0l8]::before {
    content: '';
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
    flex: 0 0 auto;
}


.chat-header-actions[b-efwdoqs0l8] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.new-chat-button[b-efwdoqs0l8],
.close-iframe-button[b-efwdoqs0l8],
.admin-link-button[b-efwdoqs0l8] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: var(--chat-btn-bg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, filter 0.16s ease;
    will-change: transform, box-shadow;
}

.close-iframe-button[b-efwdoqs0l8] {
    justify-content: center;
    width: calc(1.25rem + 0.5rem + 2px);
    height: calc(1.25rem + 0.5rem + 2px);
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.close-iframe-button:hover .close-iframe-icon[b-efwdoqs0l8] {
    transform: rotate(90deg) scale(1.06);
}

.close-iframe-button:active[b-efwdoqs0l8] {
    transform: scale(0.92);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.16);
    filter: brightness(0.98);
}

.admin-link-button[b-efwdoqs0l8] {

    color: var(--chat-btn-text);
    text-decoration: none;
}

.new-chat-button:hover[b-efwdoqs0l8],
.close-iframe-button:hover[b-efwdoqs0l8],
.admin-link-button:hover[b-efwdoqs0l8],
.admin-link-button.active[b-efwdoqs0l8] {
    border-color: rgba(59, 130, 246, 0.42);
    background: var(--chat-btn-bg-hover);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.16);
    transform: translateY(-1px);
}

.new-chat-button:active[b-efwdoqs0l8],
.admin-link-button:active[b-efwdoqs0l8] {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.14);
}


.new-chat-icon[b-efwdoqs0l8],
.close-iframe-icon[b-efwdoqs0l8] {
    width: 18px;
    height: 18px;
    transition: transform 0.16s ease;
}



@media (max-width: 720px) {
    .chat-header-controls[b-efwdoqs0l8] {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 14px 12px;
    }

    .chat-header-title[b-efwdoqs0l8] {
        flex: 0 0 auto;
        font-size: 1.22rem;
        letter-spacing: 0.06em;
    }

    .chat-header-actions[b-efwdoqs0l8] {
        width: auto;
        flex: 0 0 auto;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .new-chat-button[b-efwdoqs0l8],
    .admin-link-button[b-efwdoqs0l8] {
        white-space: nowrap;
    }
}


/* _content/AiApiServer/Components/Pages/Chat/ChatInput.razor.rz.scp.css */
.input-box[b-81m42fswge] {
    display: flex;
    flex-direction: column;
    background: var(--chat-surface);
    border: 1px solid var(--chat-border-input);
    border-radius: 1.25rem;
    padding: 0.65rem 0.7rem 0.6rem 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 12px 30px -20px rgba(15, 23, 42, 0.7);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input-box:focus-within[b-81m42fswge] {
    border-color: var(--chat-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14), 0 16px 34px -20px rgba(59, 130, 246, 0.6);
}

textarea[b-81m42fswge] {
    resize: none;
    border: none;
    outline: none;
    flex-grow: 1;
    min-height: 1.5rem;
    padding-top: 0.15rem;
    font-size: 0.95rem;
    line-height: 1.55;
    background: transparent;
    color: var(--chat-text-primary);
}

    .tools[b-81m42fswge] {
        display: flex;
        margin-top: 0.5rem;
        align-items: center;
    }

.tool-icon[b-81m42fswge] {
    width: 1.25rem;
    height: 1.25rem;
}

.send-button[b-81m42fswge] {
    --send-button-color: var(--chat-accent-deep);
    display: grid;
    place-items: center;
    padding: 8px;
    /* 原生 button 默认带 buttonface 浅色背景和边框，深色模式下会变成白块，必须显式重置 */
    background: var(--chat-btn-bg);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 9999px;
    color: var(--send-button-color);
    cursor: pointer;
    margin-left: auto;
    box-shadow: 0 8px 18px -8px rgba(59, 130, 246, 0.6);
    transition: color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

    .send-button:hover[b-81m42fswge] {
        background: var(--chat-btn-bg-hover);
        color: var(--chat-text-primary);
        transform: translateY(-1px);
        box-shadow: 0 12px 22px -8px rgba(59, 130, 246, 0.65);
    }

    .send-button:active[b-81m42fswge] {
        transform: translateY(0);
    }

    textarea:placeholder-shown + .tools .send-button[b-81m42fswge] {
        --send-button-color: var(--chat-text-faint);
        background: transparent;
        border-color: var(--chat-border-faint);
        box-shadow: none;
    }

.attach[b-81m42fswge] {
    background-color: var(--chat-surface);
    border-style: dashed;
    color: var(--chat-text-faint);
    border-color: var(--chat-text-faint);
    padding: 3px 8px;
}

    .attach:hover[b-81m42fswge] {
        background-color: var(--chat-surface-soft);
        color: var(--chat-text-primary);
    }
/* _content/AiApiServer/Components/Pages/Chat/ChatMessageItem.razor.rz.scp.css */
.user-message[b-76x7ncyxly] {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
    align-self: flex-end;
    width: fit-content;
    max-width: min(80%, 70ch);
    padding: 0.6rem 1.05rem;
    border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
    color: #FFFFFF;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.65);
}


.assistant-message[b-76x7ncyxly], .assistant-search[b-76x7ncyxly] {
    display: grid;
    grid-template-rows: min-content;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.25rem;
}

.assistant-message-main[b-76x7ncyxly] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.assistant-message-header[b-76x7ncyxly] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--chat-text-secondary);
    letter-spacing: 0.02em;
}

.assistant-message-text[b-76x7ncyxly] {
    word-break: break-word;
}

.assistant-message-bubble[b-76x7ncyxly] {
    width: fit-content;
    max-width: min(80%, 70ch);
    background: var(--chat-bubble-assistant-bg, var(--chat-surface, #ffffff));
    border: 1px solid var(--chat-bubble-assistant-border, var(--chat-border-soft, rgba(148, 163, 184, 0.42)));
    border-radius: 1.1rem 1.1rem 1.1rem 0.35rem;
    padding: 0.7rem 1rem;
    box-shadow: var(--chat-bubble-assistant-shadow, 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px -18px rgba(15, 23, 42, 0.5));
}

[b-76x7ncyxly] assistant-message a {
    color: var(--chat-accent-strong);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    word-break: break-all;
}

[b-76x7ncyxly] assistant-message a:hover {
    color: var(--chat-accent-deep);
}



.assistant-message-icon[b-76x7ncyxly] {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 9999px; 
    width: 1.75rem; 
    height: 1.75rem; 
    margin-top: 0.05rem;
    color: #ffffff; 
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 6px 16px -6px rgba(99, 102, 241, 0.75);
}

    .assistant-message-icon svg[b-76x7ncyxly] {
        width: 1rem; 
        height: 1rem; 
    }

.assistant-search[b-76x7ncyxly] {
    font-size: 0.875rem;
    line-height: 1.35rem;
    align-items: stretch;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.85rem;
}

.assistant-search-rail[b-76x7ncyxly] {
    position: relative;
    display: flex;
    justify-content: center;
}

.assistant-search-rail[b-76x7ncyxly]::before {
    content: "";
    position: absolute;
    top: 0.95rem;
    bottom: -0.9rem;
    width: 2px;
    border-radius: 9999px;
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.34) 0%, rgba(148, 163, 184, 0.08) 100%);
}

.assistant-search-node[b-76x7ncyxly] {
    position: relative;
    z-index: 1;
    margin-top: 0.42rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 9999px;
    border: 2px solid var(--chat-surface);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.assistant-search-node-running[b-76x7ncyxly] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.assistant-search-node-complete[b-76x7ncyxly] {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.assistant-search-content[b-76x7ncyxly] {
    min-width: 0;
}

.assistant-search-card[b-76x7ncyxly] {
    width: min(100%, 72ch);
    border: 1px solid var(--chat-border-soft);
    border-radius: 1rem;
    background: var(--chat-bg-tool-card);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.assistant-search-card-running[b-76x7ncyxly] {
    border-color: rgba(99, 102, 241, 0.2);
}

.assistant-search-card-complete[b-76x7ncyxly] {
    border-color: rgba(34, 197, 94, 0.2);
}

.assistant-search-card-current[b-76x7ncyxly] {
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.14);
}

.assistant-search-card-history[b-76x7ncyxly] {
    width: 100%;
}

.assistant-tool-group .assistant-search[b-76x7ncyxly] {
    grid-template-columns: 0.95rem minmax(0, 1fr);
    gap: 0.75rem;
}

.assistant-tool-group .assistant-search-rail[b-76x7ncyxly]::before {
    top: 0.85rem;
    bottom: -0.7rem;
}

.assistant-tool-group .assistant-search:last-child .assistant-search-rail[b-76x7ncyxly]::before,
.assistant-tool-history-list .assistant-search:last-child .assistant-search-rail[b-76x7ncyxly]::before {
    display: none;
}

.assistant-tool-group .assistant-search-card-history[b-76x7ncyxly] {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.assistant-tool-group .assistant-search-card-history.assistant-search-card-current[b-76x7ncyxly] {
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 0.95rem;
    background: var(--chat-bg-search-current);
}

.assistant-tool-group .assistant-search-summary-static[b-76x7ncyxly] {
    padding: 0.2rem 0;
}

.assistant-tool-group .assistant-search-card-history.assistant-search-card-current .assistant-search-summary-static[b-76x7ncyxly] {
    padding: 0.9rem 1rem;
}

.assistant-tool-group .assistant-search-card-history .assistant-search-result-panel[b-76x7ncyxly] {
    padding: 0.45rem 0 0.15rem;
}

.assistant-tool-group .assistant-search-card-history.assistant-search-card-current .assistant-search-result-panel[b-76x7ncyxly] {
    padding: 0 1rem 1rem;
}


.assistant-search-card > summary[b-76x7ncyxly] {
    position: relative;
    padding: 0.95rem 1rem;
    list-style: none;
    cursor: pointer;
}

.assistant-search-card > summary[b-76x7ncyxly]::-webkit-details-marker {
    display: none;
}

.assistant-search-card > summary[b-76x7ncyxly]::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
    transition: transform 140ms ease, border-color 140ms ease;
}

.assistant-search-card[open] > summary[b-76x7ncyxly]::after {
    transform: translateY(-50%) rotate(45deg);
    border-color: #6366f1;
}



.assistant-search-summary-static[b-76x7ncyxly] {
    cursor: default;
    padding: 0.95rem 1rem;
}

.assistant-search-summary-main[b-76x7ncyxly] {
    min-width: 0;
}

.assistant-search-meta-row[b-76x7ncyxly] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.assistant-search-state[b-76x7ncyxly],
.assistant-search-current-label[b-76x7ncyxly],
.assistant-search-args-label[b-76x7ncyxly],
.assistant-search-result-label[b-76x7ncyxly] {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.assistant-search-state[b-76x7ncyxly] {
    padding: 0.35rem 0.55rem;
}

.assistant-search-state-running[b-76x7ncyxly] {
    color: var(--chat-state-running-color);
    background: var(--chat-state-running-bg);
}

.assistant-search-state-complete[b-76x7ncyxly] {
    color: var(--chat-state-complete-color);
    background: var(--chat-state-complete-bg);
}

.assistant-search-current-label[b-76x7ncyxly] {
    padding: 0.32rem 0.5rem;
    color: var(--chat-state-current-color);
    background: var(--chat-state-current-bg);
}

.assistant-search-title-row[b-76x7ncyxly] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.assistant-search-summary-text[b-76x7ncyxly] {
    min-width: 0;
    flex: 1;
    color: var(--chat-text-primary);
    font-weight: 600;
}

.assistant-search-args-row[b-76x7ncyxly] {
    margin-top: 0.65rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.assistant-search-args-label[b-76x7ncyxly] {
    flex-shrink: 0;
    padding: 0.32rem 0.5rem;
    color: var(--chat-text-tertiary);
    background: var(--chat-border-faint);
}

.assistant-search-args-text[b-76x7ncyxly] {
    min-width: 0;
    color: var(--chat-text-tertiary);
    word-break: break-word;
}

.assistant-search-complete-btn[b-76x7ncyxly] {
    border: 1px solid rgba(34, 197, 94, 0.26);
    background: var(--chat-complete-btn-bg);
    color: var(--chat-complete-btn-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.38rem 0.72rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.12);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.assistant-search-complete-btn:hover[b-76x7ncyxly] {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.16);
}

.assistant-search-complete-btn-active[b-76x7ncyxly] {
    border-color: rgba(79, 70, 229, 0.24);
    background: var(--chat-complete-btn-active-bg);
    color: var(--chat-complete-btn-active-color);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.14);
}

.assistant-search-result-panel[b-76x7ncyxly] {
    padding: 0 1rem 1rem;
}

.assistant-search-result-label[b-76x7ncyxly] {
    padding: 0.35rem 0.55rem;
    color: var(--chat-state-result-color);
    background: var(--chat-state-result-bg);
    margin-bottom: 0.55rem;
}

.assistant-search-inline-result[b-76x7ncyxly] {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid var(--chat-border-soft);
    background: var(--chat-bg-inline-result);
    color: var(--chat-text-secondary);
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.assistant-search-phrase[b-76x7ncyxly] {
    font-weight: 600;
}


/* Default styling for markdown-formatted assistant messages */
[b-76x7ncyxly] ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

[b-76x7ncyxly] ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
}

[b-76x7ncyxly] li {
    margin: 0.5rem 0;
}

[b-76x7ncyxly] strong {
    font-weight: 600;
}

[b-76x7ncyxly] h3 {
    margin: 1rem 0;
    font-weight: 600;
}

[b-76x7ncyxly] p + p {
    margin-top: 1rem;
}

[b-76x7ncyxly] table {
    margin: 1rem 0;
}

[b-76x7ncyxly] th {
    text-align: left;
    border-bottom: 1px solid var(--chat-border-table);
}

[b-76x7ncyxly] th, [b-76x7ncyxly] td {
    padding: 0.1rem 0.5rem;
}

[b-76x7ncyxly] th, [b-76x7ncyxly] tr:nth-child(even) {
    background-color: var(--chat-table-stripe);
}

[b-76x7ncyxly] pre {
    margin: 1rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

[b-76x7ncyxly] pre > code {
    display: block;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    background: #0d1117;
    color: #c9d1d9;
}

/* _content/AiApiServer/Components/Pages/Chat/ChatMessageList.razor.rz.scp.css */
.message-list-container[b-qf7bk777m6] {
    margin: 2rem 1.5rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.message-list-container-empty[b-qf7bk777m6] {
    min-height: max(20rem, 100%);
}

.message-list[b-qf7bk777m6] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    min-height: 100%;
}

.message-list-empty[b-qf7bk777m6] {
    justify-content: center;
}

.no-messages[b-qf7bk777m6] {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(100%, 44rem);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    text-align: center;
    font-size: clamp(1.05rem, 0.98rem + 0.55vw, 1.3rem);
    font-weight: 600;
    line-height: 1.7;
    color: var(--chat-text-secondary);
}

.no-messages > div:first-child[b-qf7bk777m6] {
    position: relative;
    padding-top: 3.5rem;
}

/* 空状态里的装饰性图标，让欢迎语更有仪式感 */
.no-messages > div:first-child[b-qf7bk777m6]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translateX(-50%);
    border-radius: 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 16px 30px -14px rgba(99, 102, 241, 0.85);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / 1.5rem no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / 1.5rem no-repeat;
}


chat-messages[b-qf7bk777m6] >  div:last-of-type {
    /* Adds some vertical buffer to so that suggestions don't overlap the output when they appear */
    margin-bottom: 2rem;
}

.assistant-tool-group[b-qf7bk777m6] {
    width: min(100%, 72ch);
    margin-left: 1.9rem;
    border: 1px solid var(--chat-border-soft);
    border-radius: 1.1rem;
    background: var(--chat-bg-tool-card);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.assistant-tool-group > summary[b-qf7bk777m6] {
    position: relative;
    cursor: pointer;
    list-style: none;
    color: var(--chat-text-secondary);
    padding: 0;
}

.assistant-tool-group > summary[b-qf7bk777m6]::-webkit-details-marker {
    display: none;
}

.assistant-tool-group > summary[b-qf7bk777m6]::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
    transition: transform 140ms ease, border-color 140ms ease;
}

.assistant-tool-group[open] > summary[b-qf7bk777m6]::after {
    transform: translateY(-50%) rotate(45deg);
    border-color: #6366f1;
}



.assistant-tool-group-summary[b-qf7bk777m6] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1rem 0.9rem;
    background: var(--chat-bg-tool-summary);
}

.assistant-tool-group-label[b-qf7bk777m6] {
    color: var(--chat-text-primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.assistant-tool-group-count[b-qf7bk777m6] {
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--chat-count-bg);
    color: var(--chat-count-color);
    font-size: 0.78rem;
    font-weight: 700;
}


.assistant-tool-group-list[b-qf7bk777m6] {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 0.1rem 1rem 1rem;
}

.assistant-tool-history[b-qf7bk777m6] {
    border-top: 1px solid var(--chat-border-faint);
    padding-top: 0.85rem;
}

.assistant-tool-history > summary[b-qf7bk777m6] {
    position: relative;
    cursor: pointer;
    list-style: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--chat-text-tertiary);
    padding-left: 0.95rem;
}

.assistant-tool-history > summary[b-qf7bk777m6]::-webkit-details-marker {
    display: none;
}

.assistant-tool-history > summary[b-qf7bk777m6]::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: translateY(-50%) rotate(-45deg);
    transform-origin: center;
    transition: transform 120ms ease, border-color 120ms ease;
}

.assistant-tool-history[open] > summary[b-qf7bk777m6]::before {
    transform: translateY(-50%) rotate(45deg);
    border-color: #6366f1;
}



.assistant-tool-history-list[b-qf7bk777m6] {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .message-list-container[b-qf7bk777m6] {
        margin: 1rem 0.75rem;
    }

    .assistant-tool-group[b-qf7bk777m6] {
        width: auto;
        max-width: calc(100% - 0.5rem);
        margin-left: 0;
        margin-right: 0.5rem;
        box-sizing: border-box;
    }

    .assistant-tool-group-summary[b-qf7bk777m6] {
        display: flex;
        width: 100%;
        padding-right: 2.5rem;
        box-sizing: border-box;
    }

    .assistant-tool-group-list[b-qf7bk777m6] {
        padding: 0.1rem 0.75rem 0.85rem;
    }
}






/* _content/AiApiServer/Components/Pages/Chat/ChatSuggestions.razor.rz.scp.css */
.suggestions[b-xczd4g20vk] {
    text-align: right;
    white-space: nowrap;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    display: flex;
    margin-bottom: 0.75rem;
}

.suggestions .btn-subtle[b-xczd4g20vk] {
    border-radius: 9999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: var(--chat-surface);
    color: var(--chat-accent-deep);
    font-weight: 600;
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.8);
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.suggestions .btn-subtle:hover[b-xczd4g20vk] {
    border-color: rgba(59, 130, 246, 0.5);
    background: var(--chat-btn-bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -14px rgba(59, 130, 246, 0.75);
}

.suggestions .btn-subtle:active[b-xczd4g20vk] {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .suggestions[b-xczd4g20vk] {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .suggestions[b-xczd4g20vk]::-webkit-scrollbar {
        display: none;
    }

    .suggestions .btn-subtle[b-xczd4g20vk] {
        flex: 0 0 auto;
    }
}
/* _content/AiApiServer/Components/Pages/Home.razor.rz.scp.css */
.home-page[b-vanke25g2y] {
    --nav-bg: #070b16;
    --nav-surface: rgba(255, 255, 255, 0.045);
    --nav-surface-strong: rgba(255, 255, 255, 0.08);
    --nav-border: rgba(255, 255, 255, 0.09);
    --nav-text: #e8edf7;
    --nav-text-dim: rgba(232, 237, 247, 0.62);
    --nav-text-faint: rgba(232, 237, 247, 0.4);

    position: relative;
    min-height: 100vh;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 48px;
    background: var(--nav-bg);
    color: var(--nav-text);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.home-page[b-vanke25g2y],
.home-page *[b-vanke25g2y] {
    box-sizing: border-box;
}

/* ---------- 背景光晕 ---------- */

.home-header[b-vanke25g2y],
.home-search[b-vanke25g2y],
.home-section[b-vanke25g2y],
.home-footer[b-vanke25g2y] {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin-inline: auto;
}

/* ---------- 顶部 ---------- */

.home-header[b-vanke25g2y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.home-header-main[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-title[b-vanke25g2y] {
    margin: 0;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.home-subtitle[b-vanke25g2y] {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: var(--nav-text-dim);
}

.home-clock[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 8px 16px;
    border-radius: 14px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
}

.home-clock-time[b-vanke25g2y] {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.home-clock-date[b-vanke25g2y] {
    margin-top: 2px;
    font-size: 12px;
    color: var(--nav-text-faint);
}

/* ---------- 天气卡片 ---------- */

.home-header-side[b-vanke25g2y] {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex: none;
}

.home-weather[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 196px;
    min-height: 56px;
    padding: 8px 16px;
    border-radius: 14px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
}

.home-weather-icon[b-vanke25g2y] {
    flex: none;
    font-size: 26px;
    line-height: 1;
}

.home-weather-text[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-weather-text strong[b-vanke25g2y] {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.home-weather-text small[b-vanke25g2y] {
    font-size: 11.5px;
    color: var(--nav-text-faint);
    white-space: nowrap;
}

.home-weather-skeleton[b-vanke25g2y] {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    animation: home-weather-pulse-b-vanke25g2y 1.4s ease-in-out infinite;
}

@keyframes home-weather-pulse-b-vanke25g2y {

    0%,
    100% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }
}

/* ---------- 搜索 ---------- */

.home-search[b-vanke25g2y] {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 14px;
    border-radius: 16px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-search:focus-within[b-vanke25g2y] {
    background: var(--nav-surface-strong);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.home-search-icon[b-vanke25g2y] {
    flex: none;
    width: 19px;
    height: 19px;
    color: var(--nav-text-faint);
}

.home-search-input[b-vanke25g2y] {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    border: 0;
    background: transparent;
    color: var(--nav-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

/* type="search" 在 WebKit 下自带一个清除按钮，会与自定义的
   .home-search-clear 叠在一起显示成两个 ✕，这里隐藏原生按钮。 */
.home-search-input[b-vanke25g2y]::-webkit-search-cancel-button,
.home-search-input[b-vanke25g2y]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

/* 输入框有内容时才显示自定义清除按钮。
   之前靠服务端 searchKeyword 判断，改用 defaultValue 后该值会滞后，
   这里改由 :placeholder-shown 判断，纯本地、无延迟。 */
.home-search-clear[b-vanke25g2y],
.home-search-enter[b-vanke25g2y] {
    display: none;
}

.home-search:has(.home-search-input:not(:placeholder-shown)) .home-search-clear[b-vanke25g2y] {
    display: grid;
}

.home-search:has(.home-search-input:not(:placeholder-shown)) .home-search-enter[b-vanke25g2y] {
    display: inline-block;
}

.home-search-input[b-vanke25g2y]::placeholder {
    color: var(--nav-text-faint);
}

.home-search-input:disabled[b-vanke25g2y] {
    cursor: default;
}

.home-search-clear[b-vanke25g2y] {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--nav-surface-strong);
    color: var(--nav-text-dim);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-search-clear:hover:not(:disabled)[b-vanke25g2y] {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

.home-search-clear:active:not(:disabled)[b-vanke25g2y] {
    transform: scale(0.92);
}

.home-search-clear svg[b-vanke25g2y] {
    width: 14px;
    height: 14px;
}

.home-search-enter[b-vanke25g2y] {
    flex: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--nav-surface-strong);
    color: var(--nav-text-faint);
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

/* ---------- 分区 ---------- */

.home-section[b-vanke25g2y] {
    margin-bottom: 30px;
}

.home-section-head[b-vanke25g2y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.home-section-title[b-vanke25g2y] {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--nav-text-dim);
    letter-spacing: 0.08em;
}

/* ---------- 分组 ---------- */

.home-group[b-vanke25g2y] {
    margin-bottom: 30px;
}

.home-group:last-child[b-vanke25g2y] {
    margin-bottom: 0;
}

.home-group-head[b-vanke25g2y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.home-group-title[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--nav-text);
}

.home-group-title[b-vanke25g2y]::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
}

.home-group-desc[b-vanke25g2y] {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--nav-text-faint);
}

.home-section-count[b-vanke25g2y] {
    font-size: 12.5px;
    color: var(--nav-text-faint);
    font-variant-numeric: tabular-nums;
}

/* ---------- 导航卡片 ---------- */

.home-nav-grid[b-vanke25g2y] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 14px;
}

.home-nav-card[b-vanke25g2y] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-nav-card[b-vanke25g2y]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 100% at 0% 0%, var(--nav-accent) 0%, transparent 62%);
    opacity: 0.1;
    transition: opacity 0.22s ease;
}

.home-nav-card:hover[b-vanke25g2y] {
    transform: translateY(-3px);
    background: var(--nav-surface-strong);
    border-color: color-mix(in srgb, var(--nav-accent) 42%, transparent);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.home-nav-card:hover[b-vanke25g2y]::before {
    opacity: 0.2;
}

.home-nav-card:focus-visible[b-vanke25g2y] {
    outline: 2px solid var(--nav-accent);
    outline-offset: 3px;
}

.home-nav-icon[b-vanke25g2y] {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--nav-accent) 18%, transparent);
    color: var(--nav-accent);
    transition: transform 0.22s ease, background 0.22s ease;
}

.home-nav-card:hover .home-nav-icon[b-vanke25g2y] {
    transform: scale(1.06);
    background: color-mix(in srgb, var(--nav-accent) 30%, transparent);
}

.home-nav-icon svg[b-vanke25g2y] {
    width: 22px;
    height: 22px;
}

.home-nav-favicon[b-vanke25g2y] {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 6px;
}

.home-nav-fallback[b-vanke25g2y] {
    display: grid;
    place-items: center;
}

.home-nav-body[b-vanke25g2y] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.home-nav-title[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15.5px;
    font-weight: 700;
}

.home-nav-external[b-vanke25g2y] {
    width: 13px;
    height: 13px;
    color: var(--nav-text-faint);
}

.home-nav-desc[b-vanke25g2y] {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--nav-text-dim);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.home-nav-tags[b-vanke25g2y] {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.home-nav-tag[b-vanke25g2y] {
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--nav-surface-strong);
    color: var(--nav-text-faint);
    font-size: 11px;
    line-height: 1.5;
}

.home-nav-warning[b-vanke25g2y] {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    font-size: 13px;
}

/* ---------- 内嵌弹窗 ---------- */

.home-nav-card-button[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.home-nav-card-button:disabled[b-vanke25g2y] {
    cursor: default;
}

.home-nav-mode-tag[b-vanke25g2y] {
    padding: 1px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nav-accent) 22%, transparent);
    color: var(--nav-accent);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-dialog-mask[b-vanke25g2y] {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 32px);
    background: rgba(3, 7, 18, 0.72);
    backdrop-filter: blur(8px);
    animation: home-dialog-fade-b-vanke25g2y 180ms ease;
}

@keyframes home-dialog-fade-b-vanke25g2y {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.home-dialog[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    width: min(1180px, 100%);
    max-height: 100%;
    border-radius: 20px;
    background: rgba(12, 17, 30, 0.96);
    border: 1px solid var(--nav-border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    animation: home-dialog-pop-b-vanke25g2y 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes home-dialog-pop-b-vanke25g2y {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-dialog-header[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--nav-border);
}

.home-dialog-icon[b-vanke25g2y] {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.home-dialog-titles[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.home-dialog-title[b-vanke25g2y] {
    font-size: 15px;
    font-weight: 700;
}

.home-dialog-url[b-vanke25g2y] {
    font-size: 12px;
    color: var(--nav-text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-dialog-btn[b-vanke25g2y] {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: var(--nav-surface-strong);
    color: var(--nav-text-dim);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.home-dialog-btn:hover[b-vanke25g2y] {
    background: color-mix(in srgb, var(--nav-accent) 28%, transparent);
    color: #fff;
}

.home-dialog-btn-close:hover[b-vanke25g2y] {
    background: rgba(244, 63, 94, 0.24);
    color: #fda4af;
}

.home-dialog-btn svg[b-vanke25g2y] {
    width: 15px;
    height: 15px;
}

.home-dialog-body[b-vanke25g2y] {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 14px;
}

.home-dialog-frame[b-vanke25g2y] {
    display: block;
    width: 100%;
    height: clamp(420px, 74vh, 900px);
    border: 1px solid var(--nav-border);
    border-radius: 14px;
    background: #fff;
}

.home-dialog-loading[b-vanke25g2y] {
    position: absolute;
    inset: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    background: rgba(12, 17, 30, 0.92);
    color: var(--nav-text-dim);
    font-size: 13.5px;
}

.home-nav-arrow[b-vanke25g2y] {
    position: relative;
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--nav-text-faint);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-nav-card:hover .home-nav-arrow[b-vanke25g2y] {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- 空状态 ---------- */

.home-empty[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    border-radius: 18px;
    background: var(--nav-surface);
    border: 1px dashed var(--nav-border);
    color: var(--nav-text-dim);
    text-align: center;
}

.home-empty svg[b-vanke25g2y] {
    width: 34px;
    height: 34px;
    color: var(--nav-text-faint);
}

.home-empty p[b-vanke25g2y] {
    margin: 0;
    font-size: 14px;
}

.home-empty strong[b-vanke25g2y] {
    color: var(--nav-text);
}

.home-empty-reset[b-vanke25g2y] {
    padding: 6px 14px;
    border: 1px solid var(--nav-border);
    border-radius: 999px;
    background: transparent;
    color: var(--nav-text-dim);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.home-empty-reset:hover:not(:disabled)[b-vanke25g2y] {
    background: var(--nav-surface-strong);
    color: var(--nav-text);
}

.home-empty-actions[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-empty-search-web[b-vanke25g2y] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(99, 102, 241, 0.16) 100%);
    border: 1px solid rgba(99, 102, 241, 0.32);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-empty-search-web:hover[b-vanke25g2y] {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(99, 102, 241, 0.28) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #bfdbfe;
    transform: translateY(-1px);
}

.home-empty-search-web svg[b-vanke25g2y] {
    width: 15px;
    height: 15px;
}

/* ---------- 状态卡片 ---------- */

.home-status-grid[b-vanke25g2y] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 14px;
}

.home-status-card[b-vanke25g2y],
.home-skeleton-card[b-vanke25g2y] {
    padding: 18px;
    border-radius: 18px;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
}

.home-status-card-head[b-vanke25g2y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.home-status-name[b-vanke25g2y] {
    font-size: 14px;
    font-weight: 700;
    color: var(--nav-text-dim);
    letter-spacing: 0.04em;
}

.home-status-value[b-vanke25g2y] {
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #e8edf7, #a5b4d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-progress[b-vanke25g2y] {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.home-progress-fill[b-vanke25g2y] {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-status-foot[b-vanke25g2y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--nav-text-faint);
    font-variant-numeric: tabular-nums;
}

.home-status-foot span:last-child[b-vanke25g2y] {
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 骨架屏 ---------- */

.home-skeleton-card[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-skeleton-line[b-vanke25g2y],
.home-skeleton-bar[b-vanke25g2y] {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
}

.home-skeleton-line[b-vanke25g2y] {
    height: 15px;
}

.home-skeleton-line-sm[b-vanke25g2y] {
    width: 46%;
}

.home-skeleton-bar[b-vanke25g2y] {
    height: 7px;
}

.home-skeleton-line[b-vanke25g2y]::after,
.home-skeleton-bar[b-vanke25g2y]::after,
.home-spinner[b-vanke25g2y]::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    animation: home-shimmer-b-vanke25g2y 1.5s infinite;
}

@keyframes home-shimmer-b-vanke25g2y {
    100% {
        transform: translateX(100%);
    }
}

.home-loading-hint[b-vanke25g2y] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 18px 0 0;
    font-size: 13px;
    color: var(--nav-text-faint);
}

.home-spinner[b-vanke25g2y] {
    position: relative;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-top-color: #38bdf8;
    overflow: hidden;
}

.home-spinner[b-vanke25g2y]::after {
    border-radius: 50%;
}

/* ---------- 错误 ---------- */

.home-error-card[b-vanke25g2y] {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: 18px;
    background: rgba(244, 63, 94, 0.09);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.home-error-card > svg[b-vanke25g2y] {
    flex: none;
    width: 24px;
    height: 24px;
    color: #fb7185;
}

.home-error-card > div[b-vanke25g2y] {
    flex: 1;
    min-width: 180px;
}

.home-error-title[b-vanke25g2y] {
    font-size: 14.5px;
    font-weight: 700;
    color: #fda4af;
}

.home-error-message[b-vanke25g2y] {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--nav-text-dim);
    word-break: break-word;
}

.home-error-retry[b-vanke25g2y] {
    padding: 8px 16px;
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 999px;
    background: transparent;
    color: #fda4af;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.home-error-retry:hover:not(:disabled)[b-vanke25g2y] {
    background: rgba(244, 63, 94, 0.18);
    color: #fecdd3;
}

/* ---------- 元信息 ---------- */

.home-meta-grid[b-vanke25g2y] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.home-meta-item[b-vanke25g2y] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--nav-border);
}

.home-meta-item span[b-vanke25g2y] {
    font-size: 12px;
    color: var(--nav-text-faint);
}

.home-meta-item strong[b-vanke25g2y] {
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

/* ---------- 页脚 ---------- */

.home-footer[b-vanke25g2y] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
    font-size: 12.5px;
    color: var(--nav-text-faint);
}

.home-footer a[b-vanke25g2y] {
    color: var(--nav-text-dim);
    text-decoration: none;
    transition: color 0.18s ease;
}

.home-footer a:hover[b-vanke25g2y] {
    color: #7dd3fc;
}

.home-footer-dot[b-vanke25g2y] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

/* ---------- 响应式 ---------- */

@media (max-width: 640px) {
    .home-header[b-vanke25g2y] {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-clock[b-vanke25g2y] {
        align-items: flex-start;
        width: 100%;
    }

    .home-header-side[b-vanke25g2y] {
        flex-direction: column;
        width: 100%;
    }

    .home-weather[b-vanke25g2y] {
        width: 100%;
    }

    .home-nav-grid[b-vanke25g2y] {
        grid-template-columns: 1fr;
    }

    .home-status-card-head[b-vanke25g2y] {
        align-items: center;
    }
}

/* ---------- 无障碍 ---------- */

@media (prefers-reduced-motion: reduce) {

    .home-skeleton-line[b-vanke25g2y]::after,
    .home-skeleton-bar[b-vanke25g2y]::after,
    .home-spinner[b-vanke25g2y]::after,
    .home-dialog-mask[b-vanke25g2y],
    .home-dialog[b-vanke25g2y] {
        animation: none;
    }

    .home-nav-card[b-vanke25g2y],
    .home-progress-fill[b-vanke25g2y] {
        transition: none;
    }
}
/* _content/AiApiServer/Components/Pages/NotFoundPage.razor.rz.scp.css */
.not-found-page[b-v4mi6y5zu9] {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 42%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.not-found-card[b-v4mi6y5zu9] {
    width: min(100%, 40rem);
    padding: 2.5rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.not-found-code[b-v4mi6y5zu9] {
    font-size: clamp(4rem, 12vw, 6rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2563eb;
}

.not-found-card h1[b-v4mi6y5zu9] {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: #0f172a;
}

.not-found-card p[b-v4mi6y5zu9] {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.not-found-path[b-v4mi6y5zu9] {
    margin-top: 1.5rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: #eff6ff;
    color: #1e3a8a;
}

.not-found-path span[b-v4mi6y5zu9] {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: #64748b;
}

.not-found-path strong[b-v4mi6y5zu9] {
    display: block;
    font-size: 0.95rem;
    word-break: break-all;
}

.not-found-actions[b-v4mi6y5zu9] {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.not-found-button[b-v4mi6y5zu9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.not-found-button:hover[b-v4mi6y5zu9] {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
    background: #ffffff;
}

.not-found-button-primary[b-v4mi6y5zu9] {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border-color: transparent;
}

.not-found-button-primary:hover[b-v4mi6y5zu9] {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

@media (max-width: 640px) {
    .not-found-page[b-v4mi6y5zu9] {
        min-height: calc(100vh - 3rem);
        padding: 1.25rem;
    }

    .not-found-card[b-v4mi6y5zu9] {
        padding: 2rem 1.25rem;
        border-radius: 1.25rem;
    }

    .not-found-button[b-v4mi6y5zu9] {
        width: 100%;
    }
}
/* _content/AiApiServer/Components/Pages/SpeedTest.razor.rz.scp.css */
.speed-test-page[b-lwhrg0r32y] {
    --st-bg: #070b16;
    --st-surface: rgba(255, 255, 255, 0.045);
    --st-surface-strong: rgba(255, 255, 255, 0.08);
    --st-border: rgba(255, 255, 255, 0.09);
    --st-text: #e8edf7;
    --st-text-dim: rgba(232, 237, 247, 0.62);
    --st-text-faint: rgba(232, 237, 247, 0.4);
    --st-accent: #38bdf8;
    --st-accent-2: #6366f1;

    position: relative;
    min-height: 100vh;
    padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 32px) 48px;
    background: var(--st-bg);
    color: var(--st-text);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.speed-test-page[b-lwhrg0r32y],
.speed-test-page *[b-lwhrg0r32y] {
    box-sizing: border-box;
}

.speed-test-banner[b-lwhrg0r32y],
.speed-test-grid[b-lwhrg0r32y],
.speed-test-card[b-lwhrg0r32y] {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin-inline: auto;
}

.speed-test-banner[b-lwhrg0r32y] {
    margin-bottom: 16px;
}

/* ---------- 卡片标题行 ---------- */

.speed-test-panel-header[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.speed-test-panel-heading[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.speed-test-panel-title[b-lwhrg0r32y] {
    margin: 0;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 700;
}

.speed-test-panel-actions[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.speed-test-run-state[b-lwhrg0r32y] {
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--st-surface-strong);
    font-size: 12.5px;
    color: var(--st-text-dim);
    white-space: nowrap;
}

.speed-test-primary-button[b-lwhrg0r32y] {
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--st-accent) 0%, var(--st-accent-2) 100%);
    color: #fff;
    font-size: 14.5px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(56, 189, 248, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.speed-test-primary-button:hover:not(:disabled)[b-lwhrg0r32y] {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(56, 189, 248, 0.38);
}

.speed-test-primary-button:disabled[b-lwhrg0r32y] {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- 提示条 ---------- */

.speed-test-banner[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 13px 18px;
    border-radius: 14px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    font-size: 13.5px;
    color: var(--st-text-dim);
}

.speed-test-banner strong[b-lwhrg0r32y] {
    flex: none;
    color: var(--st-text);
}

.speed-test-banner-error[b-lwhrg0r32y] {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.32);
    color: #fda4af;
}

.speed-test-banner-error strong[b-lwhrg0r32y] {
    color: #fecdd3;
}

/* ---------- 卡片 ---------- */

.speed-test-card[b-lwhrg0r32y] {
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 22px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    backdrop-filter: blur(10px);
}

.speed-test-metric-label[b-lwhrg0r32y] {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--st-text-faint);
}

.speed-test-detail-panel h2[b-lwhrg0r32y] {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
}

.speed-test-live-pill[b-lwhrg0r32y] {
    flex: none;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--st-surface-strong);
    font-size: 12.5px;
    color: var(--st-text-dim);
}

.speed-test-live-pill-active[b-lwhrg0r32y] {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
}

.speed-test-live-pill-active[b-lwhrg0r32y]::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: speed-test-pulse-b-lwhrg0r32y 1.3s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes speed-test-pulse-b-lwhrg0r32y {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.72);
    }
}

/* ---------- 曲线图 ---------- */

.speed-test-chart-panel[b-lwhrg0r32y] {
    --chart-download: #38bdf8;
    --chart-upload: #a78bfa;
    --chart-ping: #fbbf24;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.speed-test-chart-empty[b-lwhrg0r32y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 320px;
    border: 1px dashed var(--st-border);
    border-radius: 18px;
    color: var(--st-text-faint);
    font-size: 13.5px;
}

.speed-test-live-ring[b-lwhrg0r32y] {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--st-accent);
    animation: speed-test-spin-b-lwhrg0r32y 0.9s linear infinite;
}

@keyframes speed-test-spin-b-lwhrg0r32y {
    to {
        transform: rotate(360deg);
    }
}

.speed-test-chart[b-lwhrg0r32y] {
    position: relative;
    height: 320px;
    padding: 0;
    border: 1px solid var(--st-border);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, transparent 100%),
        rgba(3, 7, 18, 0.4);
    overflow: hidden;
}

.speed-test-chart-plot[b-lwhrg0r32y] {
    position: absolute;
    inset: 12px 58px 30px 14px;
}

.speed-test-chart-svg[b-lwhrg0r32y] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.speed-test-chart-grid[b-lwhrg0r32y] {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.speed-test-chart-line[b-lwhrg0r32y] {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.speed-test-chart-line-download[b-lwhrg0r32y] {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

.speed-test-chart-line-upload[b-lwhrg0r32y] {
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.4));
}

.speed-test-chart-axis[b-lwhrg0r32y] {
    position: absolute;
    display: flex;
    font-size: 11.5px;
    color: var(--st-text-faint);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}

.speed-test-chart-axis-y[b-lwhrg0r32y] {
    top: 12px;
    right: 10px;
    bottom: 30px;
    width: 48px;
}

.speed-test-chart-axis-y span[b-lwhrg0r32y] {
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    text-align: right;
}

.speed-test-chart-axis-x[b-lwhrg0r32y] {
    left: 14px;
    right: 58px;
    bottom: 10px;
    justify-content: space-between;
}

.speed-test-chart-crosshair[b-lwhrg0r32y] {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.speed-test-chart-dot[b-lwhrg0r32y] {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.speed-test-chart-tooltip[b-lwhrg0r32y] {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 132px;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(10, 15, 28, 0.96);
    border: 1px solid var(--st-border);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
    font-size: 12px;
    color: var(--st-text-dim);
    white-space: nowrap;
    transform: translate(10px, -50%);
    pointer-events: none;
}

.speed-test-chart-tooltip-left[b-lwhrg0r32y] {
    transform: translate(calc(-100% - 10px), -50%);
}

.speed-test-chart-tooltip strong[b-lwhrg0r32y] {
    font-size: 14px;
    color: var(--st-text);
    font-variant-numeric: tabular-nums;
}

/* ---------- 指标卡 ---------- */

.speed-test-chart-footer[b-lwhrg0r32y],
.speed-test-summary-grid[b-lwhrg0r32y] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.speed-test-summary-card[b-lwhrg0r32y] {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--st-surface-strong);
    border: 1px solid var(--st-border);
    min-width: 0;
}

.speed-test-summary-card strong[b-lwhrg0r32y] {
    display: block;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.15;
    color: var(--st-text);
    word-break: break-word;
}

.speed-test-summary-card small[b-lwhrg0r32y] {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--st-text-faint);
}

.speed-test-value-roll[b-lwhrg0r32y] {
    font-variant-numeric: tabular-nums;
    animation: speed-test-value-roll-in-b-lwhrg0r32y 120ms ease-out;
}

@keyframes speed-test-value-roll-in-b-lwhrg0r32y {
    from {
        opacity: 0.4;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 侧栏 ---------- */

.speed-test-side-panel[b-lwhrg0r32y] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.speed-test-live-stats[b-lwhrg0r32y] {
    display: grid;
    gap: 2px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--st-border);
}

.speed-test-live-stats div[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.speed-test-live-stats div:last-child[b-lwhrg0r32y] {
    border-bottom: 0;
}

.speed-test-live-stats span[b-lwhrg0r32y] {
    flex: none;
    font-size: 13px;
    color: var(--st-text-faint);
}

.speed-test-live-stats strong[b-lwhrg0r32y] {
    font-size: 13.5px;
    color: var(--st-text);
    text-align: right;
    word-break: break-word;
}

.speed-test-detail-panel[b-lwhrg0r32y] {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--st-border);
}

.speed-test-detail-panel h2[b-lwhrg0r32y] {
    margin-bottom: 12px;
    font-size: 15px;
}

.speed-test-detail-list div[b-lwhrg0r32y] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.speed-test-detail-list div:last-child[b-lwhrg0r32y] {
    border-bottom: 0;
}

.speed-test-detail-list span[b-lwhrg0r32y] {
    flex: none;
    font-size: 13px;
    color: var(--st-text-faint);
}

.speed-test-detail-list strong[b-lwhrg0r32y] {
    font-size: 13.5px;
    color: var(--st-text);
    text-align: right;
    word-break: break-word;
}

/* ---------- 说明 ---------- */

.speed-test-tips[b-lwhrg0r32y] {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--st-border);
}

.speed-test-tips-label[b-lwhrg0r32y] {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--st-text-faint);
}

.speed-test-list[b-lwhrg0r32y] {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--st-text-dim);
}

/* ---------- 响应式 ---------- */

@media (max-width: 720px) {
    .speed-test-panel-header[b-lwhrg0r32y] {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .speed-test-panel-actions[b-lwhrg0r32y] {
        width: 100%;
        justify-content: space-between;
    }

    .speed-test-primary-button[b-lwhrg0r32y] {
        flex: 1;
    }

    .speed-test-chart[b-lwhrg0r32y] {
        height: 260px;
    }

    .speed-test-chart-axis-y[b-lwhrg0r32y] {
        width: 40px;
    }

    .speed-test-chart-plot[b-lwhrg0r32y] {
        inset: 12px 48px 30px 14px;
    }

    .speed-test-chart-axis-x[b-lwhrg0r32y] {
        right: 48px;
    }
}

/* ---------- 无障碍 ---------- */

@media (prefers-reduced-motion: reduce) {

    .speed-test-live-ring[b-lwhrg0r32y],
    .speed-test-live-pill-active[b-lwhrg0r32y]::before,
    .speed-test-value-roll[b-lwhrg0r32y],
    .speed-test-primary-button[b-lwhrg0r32y] {
        animation: none;
        transition: none;
    }
}/* ---------- 图例 ---------- */

.speed-test-chart-legend[b-lwhrg0r32y] {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12.5px;
    color: var(--st-text-dim);
}

.speed-test-legend-item[b-lwhrg0r32y] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.speed-test-legend-item i[b-lwhrg0r32y] {
    width: 11px;
    height: 3px;
    border-radius: 999px;
}

.speed-test-legend-item em[b-lwhrg0r32y] {
    font-style: normal;
    color: var(--st-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.speed-test-legend-item-muted[b-lwhrg0r32y] {
    color: var(--st-text-faint);
}

/* ---------- Ping 采样条 ---------- */

.speed-test-ping-strip[b-lwhrg0r32y] {
    padding: 14px 16px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--st-border);
}

.speed-test-ping-head[b-lwhrg0r32y] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.speed-test-ping-title[b-lwhrg0r32y] {
    font-size: 13px;
    font-weight: 700;
    color: var(--st-text);
}

.speed-test-ping-average[b-lwhrg0r32y] {
    font-size: 12.5px;
    color: var(--st-text-faint);
    font-variant-numeric: tabular-nums;
}

.speed-test-ping-plot[b-lwhrg0r32y] {
    position: relative;
    height: 96px;
    margin: 0 6px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.speed-test-ping-average-line[b-lwhrg0r32y] {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed rgba(251, 191, 36, 0.55);
    pointer-events: none;
}

.speed-test-ping-point[b-lwhrg0r32y] {
    position: absolute;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--st-surface-strong);
    border: 2.5px solid var(--chart-ping);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
    pointer-events: none;
}

.speed-test-ping-axis[b-lwhrg0r32y] {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -22px;
    height: 20px;
}

.speed-test-ping-axis span[b-lwhrg0r32y] {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--st-text-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.speed-test-ping-axis span:first-child[b-lwhrg0r32y] {
    transform: none;
}

.speed-test-ping-axis span:last-child[b-lwhrg0r32y] {
    transform: translateX(-100%);
}
