/* /app 用户面板的外观：白底、暖灰（stone）线条、系统字体、橙色主按钮、圆角卡片 */
:root {
    --font-family: ui-sans-serif, system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif !important;
    --bx-text: #0c0a09;
    --bx-muted: #78716c;
    --bx-line: #e7e5e4;
    --bx-soft: #f5f5f4;
    --bx-ring: inset 0 0 0 1px rgba(12, 10, 9, .07);
    --bx-orange: #f97316;
    --bx-orange-hover: #ea580c;
}

.fi-body { background: #fff; color: var(--bx-text); }

/* 品牌 */
.bx-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; letter-spacing: -.005em; color: var(--bx-text); } /* 品牌字：大一些、细一些 */
.bx-brand img { width: 28px; height: 28px; }

/* 侧边栏 */
.fi-sidebar { background: #fff !important; border-right: 1px solid var(--bx-line); box-shadow: none !important; }
.fi-sidebar-header { background: #fff !important; box-shadow: none !important; border-bottom: 0 !important; }
.fi-sidebar-group-label { font-size: 12px !important; font-weight: 600 !important; color: var(--bx-muted) !important; }
.fi-sidebar-item-btn { border-radius: 6px !important; }
.fi-sidebar-item-label { font-size: 14px !important; font-weight: 400 !important; color: var(--bx-text) !important; }
.fi-sidebar-item-icon { color: var(--bx-text) !important; }
.fi-sidebar-item-btn:hover { background: var(--bx-soft) !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--bx-soft) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label { font-weight: 600 !important; }

/* 顶栏 */
.fi-topbar, .fi-topbar > nav, .fi-topbar-ctn { background: #fff !important; box-shadow: none !important; }
.fi-topbar { border-bottom: 1px solid var(--bx-line); }

/* 页面标题：等宽小标签风格的面包屑 + 大标题 */
.fi-breadcrumbs, .fi-breadcrumbs-item-label { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 10px !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--bx-muted) !important; }
.fi-header-heading { font-size: 24px !important; font-weight: 600 !important; letter-spacing: -.025em !important; color: var(--bx-text) !important; }
.fi-header-subheading { color: var(--bx-muted) !important; }

/* 卡片：14px 圆角 + 极淡内描边，不要阴影 */
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-fo-repeater-item, .fi-in-entry-wrp-ctn {
    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: var(--bx-ring) !important;
}
.fi-section-header-heading, .fi-ta-header-heading { font-size: 15px !important; font-weight: 500 !important; letter-spacing: -.01em; color: var(--bx-text) !important; }
.fi-section-header-description, .fi-ta-header-description { font-size: 13px !important; color: var(--bx-muted) !important; }
.fi-section-content-ctn, .fi-ta-header, .fi-ta-header-toolbar, .fi-pagination, .fi-ta-content { border-color: var(--bx-line) !important; }
.fi-ta-header-cell { background: #fafaf9 !important; color: var(--bx-muted) !important; font-weight: 500 !important; font-size: 12px !important; }
.fi-ta-row { border-color: var(--bx-line) !important; }

/* 按钮 */
.fi-btn { border-radius: 6px !important; font-weight: 500 !important; font-size: 13px !important; }
.fi-btn.fi-color-primary:not(.fi-outlined) { background: var(--bx-orange) !important; color: #fafaf9 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06) !important; }
.fi-btn.fi-color-primary:not(.fi-outlined):hover { background: var(--bx-orange-hover) !important; }
.fi-btn.fi-color-gray:not(.fi-outlined) { background: rgba(0, 0, 0, .035) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1) !important; color: var(--bx-text) !important; border-radius: 8px !important; }
.fi-btn.fi-color-gray:not(.fi-outlined):hover { background: rgba(0, 0, 0, .06) !important; }

/* 输入框 */
.fi-input-wrp { background: #fafafa !important; border-radius: 6px !important; box-shadow: inset 0 0 0 1px #d4d4d8 !important; }
.fi-input-wrp:focus-within { box-shadow: inset 0 0 0 1px var(--bx-orange), 0 0 0 3px rgba(249, 115, 22, .15) !important; }
.fi-input-wrp .fi-input { background: transparent !important; }
.fi-fo-field-label-content { font-weight: 400 !important; color: #3f3f46 !important; }

/* 标签页 */
.fi-tabs { box-shadow: var(--bx-ring) !important; border-radius: 10px !important; background: #fff !important; }

/* 下拉、弹窗 */
.fi-dropdown-panel, .fi-modal-window { border-radius: 12px !important; box-shadow: var(--bx-ring), 0 10px 30px rgba(12, 10, 9, .08) !important; }

/* ---------- 登录、注册：左表单、右灰色展示区 ---------- */
.fi-simple-layout:has(.bx-aside) { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: #fff; }
.fi-simple-layout:has(.bx-aside) .fi-simple-main-ctn { grid-column: 1; grid-row: 1; align-items: center; }
.fi-simple-layout:has(.bx-aside) .fi-simple-main { background: transparent !important; box-shadow: none !important; max-width: 400px !important; padding: 48px 8px !important; }
.fi-simple-header-heading { font-size: 24px !important; font-weight: 600 !important; letter-spacing: -.03em !important; color: #18181b !important; }
.fi-simple-header-subheading { font-size: 16px !important; color: #52525b !important; }
.fi-simple-header-subheading a, .fi-simple-header-subheading .fi-link { color: #18181b !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.fi-simple-layout:has(.bx-aside) .fi-btn.fi-color-primary:not(.fi-outlined) { background: #18181b !important; height: 40px; font-size: 14px !important; box-shadow: none !important; }
.fi-simple-layout:has(.bx-aside) .fi-btn.fi-color-primary:not(.fi-outlined):hover { background: #27272a !important; }
.fi-simple-layout .fi-logo { height: auto !important; }

.bx-aside { display: none; }
@media (min-width: 1024px) {
    .fi-simple-layout:has(.bx-aside) { grid-template-columns: 1fr 1fr; }
    .bx-aside { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: center; padding: 48px; border-left: 1px solid var(--bx-line);
        background: radial-gradient(60% 50% at 40% 30%, #fff 0%, rgba(255, 255, 255, 0) 70%), #f4f4f5; }
}
.bx-aside-inner { width: 100%; max-width: 440px; }
.bx-aside h2 { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -.03em; color: #27272a; }
.bx-aside > div > p { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: #52525b; }
.bx-code { margin-top: 56px; background: #fff; border: 1px solid #e4e4e7; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .04); overflow: hidden; }
.bx-code-top { display: flex; align-items: center; gap: 7px; padding: 10px 12px 10px 16px; border-bottom: 1px solid #e4e4e7; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: #71717a; }
.bx-code-top i { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; }
.bx-code-top > span { margin-left: 8px; }
.bx-code-tabs { margin-left: auto; display: flex; padding: 2px; border: 1px solid #e4e4e7; border-radius: 6px; background: #f4f4f5; }
.bx-code-tabs b, .bx-code-tabs span { padding: 3px 10px; font-weight: 400; border-radius: 4px; }
.bx-code-tabs b { background: #fff; color: #18181b; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.bx-code pre { margin: 0; padding: 20px; font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; color: #27272a; white-space: pre-wrap; }
.bx-code .c { color: #a1a1aa; }
.bx-code .k { color: #2563eb; }
.bx-code .f { color: #2563eb; }
.bx-code .s { color: #b45309; }
.bx-industries { margin-top: 56px; }
.bx-industries div { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; color: #a1a1aa; }
.bx-industries p { margin: 14px 0 0; font-size: 15px; line-height: 2; color: #a1a1aa; letter-spacing: .05em; }

/* 登录页右侧展示区铺满整屏高度 */
.fi-simple-layout:has(.bx-aside) { align-items: stretch; }
.fi-simple-layout:has(.bx-aside) .fi-simple-main-ctn { display: flex; justify-content: center; }

/* 侧边栏顶部放 logo（没有顶栏） */
.fi-sidebar-header { height: 64px !important; padding-inline: 20px !important; }

/* 表格里的主色文字用深色，不用橙色 */
.fi-ta-cell .fi-ta-text-item.fi-color-primary, .fi-ta-cell .fi-ta-text-item-label.fi-color-primary, .fi-ta-cell .fi-color-primary .fi-ta-text-item-label { color: var(--bx-text) !important; font-weight: 500; }
.fi-btn.fi-color-primary:not(.fi-outlined) .fi-icon { color: inherit !important; }

/* 收起/展开侧边栏按钮：放在 logo 右边，用「侧边栏面板」图标 */
.fi-sidebar-header { display: flex !important; align-items: center; padding-right: 8px !important; }
.fi-sidebar-close-collapse-sidebar-btn { order: 2; margin-left: auto !important; }
.fi-sidebar-close-collapse-sidebar-btn > svg, .fi-sidebar-open-collapse-sidebar-btn > svg { display: none !important; }
.fi-sidebar-close-collapse-sidebar-btn::before, .fi-sidebar-open-collapse-sidebar-btn::before {
    content: ''; width: 18px; height: 18px; background: #57534e;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M9 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fi-sidebar-close-collapse-sidebar-btn:hover::before, .fi-sidebar-open-collapse-sidebar-btn:hover::before { background: var(--bx-text); }

/* logo 与下面菜单图标左对齐 */
.fi-sidebar-header { padding-left: 24px !important; justify-content: flex-start !important; }
.fi-sidebar-header-logo-ctn, .fi-sidebar-header-logo-ctn > a, .fi-sidebar-header .fi-logo { margin: 0 !important; padding: 0 !important; justify-content: flex-start !important; }

/* 内容区：最宽 1152px，左右 32px、上下 40px 留白 */
@media (min-width: 1024px) { .fi-main { padding: 40px 32px !important; max-width: calc(1152px + 64px) !important; } }

/* 内容区顶部横条（52px，底部细线），面包屑放进横条：/ 我的订单 / 列表 */
.bx-topstrip { display: none; }
@media (min-width: 1024px) {
    .fi-main-ctn { position: relative; }
    .bx-topstrip { display: block; flex: none; box-sizing: content-box; height: 52px; border-bottom: 1px solid var(--bx-line); }
    /* 页面自带 32px 上边距，主区只再补 8px，标题离横条 40px */
    .fi-main { padding-top: 8px !important; }
    .fi-main-ctn .fi-breadcrumbs { position: absolute; top: 0; left: 20px; height: 52px; display: flex; align-items: center; }
    .fi-header:has(.fi-breadcrumbs) { margin-top: 0 !important; }
}
.fi-breadcrumbs, .fi-breadcrumbs-item-label { font-family: var(--font-family) !important; font-size: 14px !important; letter-spacing: 0 !important; text-transform: none !important; }
.fi-breadcrumbs-item-label { color: var(--bx-text) !important; font-weight: 500 !important; }
.fi-breadcrumbs-item:last-child .fi-breadcrumbs-item-label { font-weight: 400 !important; }
.fi-breadcrumbs-item-separator { display: none !important; }
.fi-breadcrumbs-item::before { content: '/'; margin: 0 10px 0 2px; color: #a8a29e; font-weight: 300; }

/* 语言切换（中文 · English）：侧栏底部、登录页右上角 */
.bx-locale { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bx-muted); }
.bx-locale b { color: var(--bx-text); font-weight: 600; }
.bx-locale a { color: var(--bx-muted); text-decoration: none; }
.bx-locale a:hover { color: #ea580c; }
