/* ==========================================================================
   StatLiteX · Glisse 液态玻璃界面层
   页面结构仍是服务端渲染，所有可见控件使用 Glisse 的官方类与材质变量；
   图标保留 Material Icons，其余不再依赖 MDUI。
   ========================================================================== */

:root {
    --slx-primary: #3f51b5;
    --slx-primary-soft: #7986cb;
    --slx-accent: var(--slx-primary);
    --slx-radius: 22px;
    --slx-radius-sm: 14px;
    --slx-page: #eef1f7;
    --slx-page-2: #e5eaf4;
    --slx-text: #15161c;
    --slx-muted: #5c6070;
    --slx-faint: #8b8f9e;
    --slx-line: rgb(20 22 32 / 0.09);
    --slx-card: rgb(255 255 255 / 0.58);
    --slx-card-strong: rgb(255 255 255 / 0.78);
    --slx-scrim: rgb(14 16 24 / 0.34);
    --slx-shadow: 0 18px 50px rgb(31 36 58 / 0.14), 0 3px 10px rgb(31 36 58 / 0.06);
    --slx-shadow-sm: 0 4px 16px rgb(31 36 58 / 0.08);
    --slx-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --lg-fill: var(--slx-primary);
    --lg-control-size: 36px;
    --lg-control-font: 14px;
}

html[data-theme="dark"], body.slx-theme-layout-dark {
    --slx-page: #0c0d12;
    --slx-page-2: #14161d;
    --slx-text: #f4f5f8;
    --slx-muted: #a8adbc;
    --slx-faint: #7d8291;
    --slx-line: rgb(255 255 255 / 0.12);
    --slx-card: rgb(30 31 38 / 0.62);
    --slx-card-strong: rgb(34 35 43 / 0.82);
    --slx-scrim: rgb(0 0 0 / 0.54);
    --slx-shadow: 0 22px 60px rgb(0 0 0 / 0.46), 0 3px 10px rgb(0 0 0 / 0.3);
    --slx-shadow-sm: 0 6px 20px rgb(0 0 0 / 0.32);
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--slx-page);
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--slx-font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--slx-text);
    background:
        radial-gradient(52vw 40vw at 8% -8%, color-mix(in srgb, var(--slx-primary) 20%, transparent), transparent 70%),
        radial-gradient(46vw 38vw at 96% 2%, color-mix(in srgb, var(--slx-primary-soft) 18%, transparent), transparent 72%),
        linear-gradient(180deg, var(--slx-page) 0%, var(--slx-page-2) 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

body.slx-appbar-with-toolbar { padding-top: 64px; }

a { color: color-mix(in srgb, var(--slx-primary) 78%, var(--slx-text)); text-decoration: none; }
a:hover { color: var(--slx-primary); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
hr { border: 0; border-top: 1px solid var(--slx-line); margin: 16px 0; }

::selection { background: color-mix(in srgb, var(--slx-primary) 30%, transparent); }

/* ---------- 排版 ---------- */
.slx-typo { font-size: 14px; line-height: 1.7; }
.slx-typo-display-2 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: 750; letter-spacing: -0.035em; }
.slx-typo-display-1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; font-weight: 730; letter-spacing: -0.03em; }
.slx-typo-headline { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.28; font-weight: 650; letter-spacing: -0.02em; }
.slx-typo-title { font-size: 17px; line-height: 1.35; font-weight: 650; letter-spacing: -0.01em; }
.slx-typo-subheading { font-size: 15px; font-weight: 600; }
.slx-typo-body-1 { font-size: 14px; line-height: 1.65; }
.slx-typo-body-2 { font-size: 13px; line-height: 1.6; }
.slx-typo-caption { font-size: 12px; line-height: 1.5; }
.slx-typo-caption-opacity, .slx-typo-body-1-opacity, .slx-typo-body-2-opacity,
.slx-typo-subheading-opacity { color: var(--slx-muted); }
.slx-typo-headline.slx-text-color-black-secondary { color: var(--slx-muted); }

.slx-inline-code, .slx-doc-code code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgb(20 22 32 / 0.06);
    color: color-mix(in srgb, var(--slx-text) 86%, var(--slx-primary));
}

/* ---------- 栅格与间距 ---------- */
.slx-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.slx-container-fluid { width: 100%; padding: 0 24px; }
.slx-row { display: flex; flex-wrap: wrap; align-items: stretch; margin-left: -8px; margin-right: -8px; }
.slx-row > [class*="slx-col"] { display: flex; flex-direction: column; padding-left: 8px; padding-right: 8px; min-width: 0; }
.slx-col-xs-1 { width: 8.3333%; } .slx-col-xs-4 { width: 33.3333%; } .slx-col-xs-6 { width: 50%; }
.slx-col-xs-7 { width: 58.3333%; } .slx-col-xs-12 { width: 100%; }
.slx-m-t-1 { margin-top: 8px; } .slx-m-t-2 { margin-top: 16px; } .slx-m-t-3 { margin-top: 24px; } .slx-m-t-4 { margin-top: 32px; }
.slx-m-b-1 { margin-bottom: 8px; } .slx-m-b-2 { margin-bottom: 16px; } .slx-m-b-3 { margin-bottom: 24px; } .slx-m-b-4 { margin-bottom: 32px; }
.slx-m-l-2 { margin-left: 16px; }
.slx-p-a-2 { padding: 16px; } .slx-p-a-3 { padding: 24px; } .slx-p-a-4 { padding: 32px; }
.slx-p-b-0 { padding-bottom: 0; } .slx-p-b-1 { padding-bottom: 8px; } .slx-p-b-2 { padding-bottom: 16px; } .slx-p-b-3 { padding-bottom: 24px; }
.slx-p-t-0 { padding-top: 0; } .slx-p-t-4 { padding-top: 32px; }
.slx-p-y-1 { padding-top: 8px; padding-bottom: 8px; } .slx-p-y-3 { padding-top: 24px; padding-bottom: 24px; } .slx-p-y-4 { padding-top: 32px; padding-bottom: 32px; }
.slx-text-center { text-align: center; } .slx-text-right { text-align: right; }
.slx-float-right { float: right; }
.slx-nowrap { white-space: nowrap; }
.slx-hidden-xs-down { display: inline-flex; }
.slx-divider { height: 1px; margin: 10px 6px; background: var(--slx-line); border: 0; }

.slx-text-color-theme { color: var(--slx-primary); }
.slx-text-color-white { color: #fff; }
.slx-text-color-white-secondary { color: rgb(255 255 255 / 0.74); }
.slx-text-color-black-secondary { color: var(--slx-muted); }
.slx-text-color-black-disabled { color: var(--slx-faint); }
.slx-text-color-grey { color: #78909c; }
.slx-text-color-red { color: #e5484d; }
.slx-text-color-green { color: #2f9e44; }
.slx-text-color-amber { color: #f59f00; }
.slx-text-color-indigo { color: #5c6ac4; }
.slx-text-color-orange { color: #f76707; }
.slx-color-theme { background-color: var(--slx-primary) !important; color: #fff !important; }
.slx-color-theme-accent { background-color: var(--slx-primary) !important; color: #fff !important; }
.slx-color-red { background-color: #e5484d; } .slx-color-pink { background-color: #e64980; }
.slx-color-indigo { background-color: #3f51b5; } .slx-color-blue { background-color: #2196f3; }
.slx-color-green { background-color: #4caf50; } .slx-color-amber { background-color: #ffc107; }
.slx-color-deep-orange { background-color: #ff5722; }
.slx-color-light-blue { background-color: #03a9f4; } .slx-color-cyan { background-color: #00bcd4; }
.slx-color-teal { background-color: #009688; } .slx-color-light-green { background-color: #8bc34a; }
.slx-color-orange { background-color: #ff9800; } .slx-color-purple { background-color: #9c27b0; }
.slx-color-deep-purple { background-color: #673ab7; } .slx-color-blue-grey { background-color: #607d8b; }

/* ---------- 顶栏 ---------- */
.slx-appbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: 64px;
    color: #fff;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)),
        color-mix(in srgb, var(--slx-primary) 62%, transparent);
    -webkit-backdrop-filter: blur(26px) saturate(1.9);
    backdrop-filter: blur(26px) saturate(1.9);
    border-bottom: 1px solid rgb(255 255 255 / 0.16);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 10px 32px rgb(20 24 45 / 0.14);
}
.slx-appbar.slx-color-theme { background:
    linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04)),
    color-mix(in srgb, var(--slx-primary) 62%, transparent); }
.slx-toolbar { display: flex; align-items: center; height: 64px; gap: 4px; padding: 0 16px; }
.slx-toolbar > * { flex-shrink: 0; }
.slx-toolbar-spacer { flex: 1 1 auto; min-width: 8px; }
.appbar-brand { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px; color: #fff !important; border-radius: 14px; }
.appbar-brand .material-icons { font-size: 24px; }
.appbar-brand .slx-typo-title { color: #fff; }
.slx-appbar .slx-btn, .slx-appbar .slx-btn.lg-button {
    --lg-foreground: #fff;
    --lg-glass: rgb(255 255 255 / 0.16);
    --lg-glass-active: rgb(255 255 255 / 0.28);
    --lg-edge: rgb(255 255 255 / 0.3);
    color: #fff;
}
.slx-appbar .material-icons { color: currentColor; }
.slx-nav-toggle { display: none !important; }

/* ---------- 侧栏 ---------- */
.slx-drawer {
    position: fixed;
    z-index: 850;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 268px;
    padding: 12px 10px 20px;
    overflow-y: auto;
    background: var(--slx-card);
    -webkit-backdrop-filter: blur(24px) saturate(1.7);
    backdrop-filter: blur(24px) saturate(1.7);
    border-right: 1px solid var(--slx-line);
}
.slx-drawer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 180px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--slx-primary) 10%, transparent), transparent);
    pointer-events: none;
}
.slx-drawer > * { position: relative; }
#slx-nav-drawer { left: auto; right: 0; border-right: 0; border-left: 1px solid var(--slx-line); width: 280px; transform: translateX(105%); transition: transform 260ms cubic-bezier(.22,.9,.24,1); }
#slx-nav-drawer.is-open { transform: none; }
.slx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px 12px; }
.slx-drawer-head .slx-typo-title { font-size: 16px; }

@media (min-width: 1024px) {
    body.slx-appbar-with-toolbar:not(.slx-landing):not(.slx-share) { padding-left: 268px; }
    #site-drawer { transform: none !important; }
    #site-drawer.is-open { transform: none; }
}

@media (max-width: 1023px) {
    #site-drawer { transform: translateX(-105%); transition: transform 260ms cubic-bezier(.22,.9,.24,1); box-shadow: var(--slx-shadow); }
    #site-drawer.is-open { transform: none; }
    .slx-nav-toggle { display: inline-flex !important; }
}

.slx-drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 840;
    background: var(--slx-scrim);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}
.slx-drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

/* ---------- 列表 / 导航 ---------- */
.slx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.slx-list-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--slx-text);
    transition: background-color 160ms ease, transform 160ms ease;
}
a.slx-list-item { color: inherit; }
.slx-list-item:hover { background: color-mix(in srgb, var(--slx-text) 6%, transparent); }
.slx-list-item-active { background: color-mix(in srgb, var(--slx-primary) 14%, transparent); color: var(--slx-primary); font-weight: 600; }
.slx-list-item-active::before {
    content: "";
    position: absolute; left: 2px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px;
    background: var(--slx-primary);
}
.slx-list-item-icon { font-size: 21px; width: 22px; color: var(--slx-muted); flex: none; }
.slx-list-item-active .slx-list-item-icon { color: var(--slx-primary); }
.slx-list-item-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: grid; place-items: center; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(145deg, var(--slx-primary-soft), var(--slx-primary));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 2px 8px color-mix(in srgb, var(--slx-primary) 35%, transparent);
}
.slx-list-item-content { min-width: 0; flex: 1; }
.slx-list-item-title { font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slx-list-item-text { font-size: 12px; color: var(--slx-muted); margin-top: 1px; }
.slx-list-item-dense { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.slx-subheader { padding: 14px 12px 6px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--slx-faint); }

/* ---------- 卡片 ---------- */
.slx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--slx-radius);
    background: var(--slx-card);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.42), inset 0 1px 1px rgb(255 255 255 / 0.36), var(--slx-shadow-sm);
    overflow: visible;
    color: var(--slx-text);
}
html[data-theme="dark"] .slx-card { box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14), inset 0 1px 1px rgb(255 255 255 / 0.08), var(--slx-shadow-sm); }
.slx-card-primary { padding: 20px 22px 0; }
.slx-card-primary-title { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.slx-card-primary-subtitle { margin-top: 4px; font-size: 12.5px; color: var(--slx-muted); }
.slx-card-content { padding: 18px 22px 22px; }
.slx-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.slx-card > .slx-card-content:first-child { padding-top: 22px; }
.slx-card-content > .slx-typo-display-1 { line-height: 1.1; }


/* ---------- 按钮 ---------- */
.slx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.5);
    color: var(--slx-text);
    font-size: 14px;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: inset 0 0 0 0.5px rgb(20 22 32 / 0.1), inset 0 1px 1px rgb(255 255 255 / 0.5), 0 1px 3px rgb(20 22 32 / 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow: hidden;
}
html[data-theme="dark"] .slx-btn { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.16), inset 0 1px 1px rgb(255 255 255 / 0.1), 0 1px 3px rgb(0 0 0 / 0.2); }
.slx-btn:hover { background: rgb(255 255 255 / 0.72); color: var(--slx-text); }
html[data-theme="dark"] .slx-btn:hover { background: rgb(255 255 255 / 0.14); }
.slx-btn:active { transform: translateY(0.5px); }
.slx-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--slx-primary) 70%, #fff); outline-offset: 2px; }
.slx-btn > .material-icons, .slx-btn > .slx-icon { font-size: 20px; width: 20px; height: 20px; line-height: 1; margin: 0; }
.slx-btn-icon { width: 36px; padding: 0; }
.slx-btn-dense { height: 30px; padding: 0 12px; font-size: 13px; }
.slx-btn-dense.slx-btn-icon { width: 30px; padding: 0; }
.slx-btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.slx-btn-block { display: flex; width: 100%; }
.slx-btn-raised, .slx-btn.slx-color-theme-accent, .slx-btn.slx-color-theme {
    background: linear-gradient(180deg, color-mix(in srgb, #fff 18%, var(--slx-primary)), var(--slx-primary)) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.3), inset 0 1px 1px rgb(255 255 255 / 0.35), 0 6px 18px color-mix(in srgb, var(--slx-primary) 38%, transparent);
}
.slx-btn-raised:hover, .slx-btn.slx-color-theme-accent:hover { color: #fff !important; filter: brightness(1.06); }
.slx-btn[disabled], .slx-btn:disabled { opacity: .45; pointer-events: none; }
.slx-btn.lg-on-color { color: #fff; }

/* ---------- 输入框 ---------- */
.slx-textfield {
    position: relative;
    display: block;
    min-height: 62px;
    margin: 10px 0 18px;
    padding: 20px 14px 9px 44px;
    border-radius: 16px;
    background: rgb(255 255 255 / 0.46);
    box-shadow: inset 0 0 0 0.5px rgb(20 22 32 / 0.1), inset 0 1px 1px rgb(255 255 255 / 0.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    transition: box-shadow 180ms ease, background-color 180ms ease;
}
html[data-theme="dark"] .slx-textfield { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14), inset 0 1px 1px rgb(255 255 255 / 0.08); }
.slx-textfield:focus-within { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--slx-primary) 72%, transparent), 0 0 0 4px color-mix(in srgb, var(--slx-primary) 14%, transparent); background: rgb(255 255 255 / 0.64); }
html[data-theme="dark"] .slx-textfield:focus-within { background: rgb(255 255 255 / 0.1); }
.slx-textfield > .slx-icon { position: absolute; left: 14px; top: 21px; font-size: 20px; color: var(--slx-faint); }
.slx-textfield-label { position: absolute; left: 44px; top: 9px; font-size: 11px; line-height: 1.2; font-weight: 550; color: var(--slx-muted); pointer-events: none; }
.slx-textfield-input {
    display: block;
    width: 100%;
    height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--slx-text);
    font-size: 15px;
    line-height: 28px;
}
.slx-textfield-input::placeholder { color: var(--slx-faint); }
.slx-textfield-helper { margin: 5px 0 0 -30px; padding-left: 30px; font-size: 11px; line-height: 1.45; color: var(--slx-muted); }
.slx-textfield-floating-label .slx-textfield-label { transition: color 180ms ease; }
.slx-textfield:focus-within .slx-textfield-label { color: var(--slx-primary); }
select.slx-textfield-input { appearance: none; }
textarea.slx-textfield-input { height: auto; min-height: 80px; resize: vertical; }

/* ---------- 下拉（Glisse lg-select） ---------- */
.lg-select.slx-select { width: 100%; vertical-align: middle; }
.lg-select.slx-select select { width: 100%; }
.slx-select-wrap { margin: 10px 0 18px; }

/* ---------- 选项卡 / 分段控件 ---------- */
.slx-tab {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 4px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.42);
    box-shadow: inset 0 0 0 0.5px rgb(20 22 32 / 0.09), inset 0 1px 1px rgb(255 255 255 / 0.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    overflow-x: auto;
    scrollbar-width: none;
}
html[data-theme="dark"] .slx-tab { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.13); }
.slx-tab::-webkit-scrollbar { display: none; }
.slx-tab > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--slx-muted);
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
    transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.slx-tab > a:hover { color: var(--slx-text); }
.slx-tab > a.slx-tab-active, .slx-tab > a[data-selected] {
    color: var(--slx-text);
    background: rgb(255 255 255 / 0.82);
    box-shadow: inset 0 0 0 0.5px rgb(20 22 32 / 0.08), 0 2px 8px rgb(20 22 32 / 0.08);
}
html[data-theme="dark"] .slx-tab > a.slx-tab-active { background: rgb(255 255 255 / 0.16); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.18); color: #fff; }
.slx-tab .slx-tab-icon { font-size: 18px; }
.slx-tab-scroll { max-width: 100%; }

/* ---------- 标签 ---------- */
.slx-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 12px 0 5px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.5);
    box-shadow: inset 0 0 0 0.5px rgb(20 22 32 / 0.09), inset 0 1px 1px rgb(255 255 255 / 0.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    backdrop-filter: blur(12px) saturate(1.5);
    color: var(--slx-text);
    font-size: 12.5px;
    vertical-align: middle;
}
html[data-theme="dark"] .slx-chip { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14); }
.slx-chip.slx-color-theme { background: var(--slx-primary) !important; color: #fff !important; }
.slx-chip-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--slx-primary) 14%, transparent); color: var(--slx-primary); flex: none; }
.slx-chip.slx-color-theme .slx-chip-icon { background: rgb(255 255 255 / 0.2); color: #fff; }
.slx-chip-icon .material-icons { font-size: 15px; }
.slx-chip-title { white-space: nowrap; }
.slx-chip-small { height: 24px; padding-right: 9px; font-size: 11.5px; }
.slx-chip-delete { color: var(--slx-muted); display: inline-flex; }
.slx-chip-delete .material-icons { font-size: 15px; }

/* ---------- 表格 ---------- */
.slx-table-fluid { width: 100%; overflow-x: auto; border-radius: 16px; }
.slx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.slx-table th {
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slx-faint);
    border-bottom: 1px solid var(--slx-line);
    white-space: nowrap;
}
.slx-table td { padding: 12px; border-bottom: 1px solid color-mix(in srgb, var(--slx-line) 65%, transparent); vertical-align: middle; }
.slx-table tr:last-child td { border-bottom: 0; }
.slx-table-hoverable tbody tr { transition: background-color 150ms ease; }
.slx-table-hoverable tbody tr:hover { background: color-mix(in srgb, var(--slx-primary) 7%, transparent); }

/* ---------- 弹窗 ---------- */
.slx-scrim {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--slx-scrim);
    -webkit-backdrop-filter: blur(6px) saturate(1.2);
    backdrop-filter: blur(6px) saturate(1.2);
    opacity: 0;
    transition: opacity 220ms ease;
}
.slx-scrim.is-open { opacity: 1; }
.slx-dialog {
    position: fixed;
    z-index: 1010;
    left: 50%;
    top: 50%;
    display: none;
    width: min(680px, calc(100vw - 32px));
    max-height: min(86vh, 860px);
    overflow: auto;
    padding: 22px;
    border-radius: 26px;
    transform: translate(-50%, -50%) scale(.96);
    background: var(--slx-card-strong);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    backdrop-filter: blur(28px) saturate(1.8);
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.45), inset 0 1px 1px rgb(255 255 255 / 0.35), 0 28px 80px rgb(20 24 45 / 0.3);
    opacity: 0;
    transition: opacity 200ms ease, transform 240ms cubic-bezier(.2,.9,.24,1);
}
html[data-theme="dark"] .slx-dialog { box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 28px 80px rgb(0 0 0 / 0.6); }
.slx-dialog.slx-dialog-open { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.slx-dialog-title { font-size: 19px; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 6px; }
.slx-dialog-content { padding-top: 8px; }
.slx-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.slx-dialog-actions > * { flex: none; }
.slx-dialog-body { padding-top: 4px; }
body.slx-dialog-shown { overflow: hidden; }

/* ---------- 菜单 ---------- */
.slx-menu {
    position: fixed;
    z-index: 1100;
    display: none;
    min-width: 208px;
    max-width: min(320px, calc(100vw - 24px));
    max-height: min(70vh, 520px);
    overflow: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 20px;
    background: var(--slx-card-strong);
    -webkit-backdrop-filter: blur(28px) saturate(1.9);
    backdrop-filter: blur(28px) saturate(1.9);
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.5), inset 0 1px 1px rgb(255 255 255 / 0.4), 0 20px 50px rgb(20 24 45 / 0.24), 0 3px 10px rgb(20 24 45 / 0.1);
    transform-origin: top right;
}
html[data-theme="dark"] .slx-menu { box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.15), 0 20px 50px rgb(0 0 0 / 0.55); }
.slx-menu.is-open { display: block; animation: slx-menu-in 180ms cubic-bezier(.2,.9,.24,1); }
@keyframes slx-menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.slx-menu-item { margin: 1px 2px; border-radius: 11px; list-style: none; }
.slx-menu-item > a, .slx-menu-item > button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    background: none;
    color: var(--slx-text);
    font-size: 13.5px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}
.slx-menu-item > a:hover, .slx-menu-item > button:hover { background: color-mix(in srgb, var(--slx-text) 8%, transparent); }
.slx-menu-item-active > a, .slx-menu-item-active > button { background: color-mix(in srgb, var(--slx-primary) 12%, transparent); color: var(--slx-primary); font-weight: 600; }
.slx-menu-item-icon { font-size: 19px; width: 20px; color: var(--slx-muted); }
.slx-menu .slx-menu-item-icon.material-icons { margin: 0; }
.slx-menu form { margin: 0; }
.slx-menu .slx-divider { margin: 5px 6px; }
.slx-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }

/* ---------- 复选框 / 单选 ---------- */
.slx-checkbox, .slx-radio { display: inline-flex; align-items: center; gap: 8px; position: relative; min-height: 24px; cursor: pointer; }
.slx-checkbox input, .slx-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slx-checkbox-icon, .slx-radio-icon {
    width: 20px; height: 20px; flex: none; border-radius: 6px;
    background: rgb(255 255 255 / 0.5);
    box-shadow: inset 0 0 0 1px rgb(20 22 32 / 0.2);
    display: grid; place-items: center;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}
.slx-radio-icon { border-radius: 50%; }
.slx-checkbox input:checked + .slx-checkbox-icon { background: var(--slx-primary); box-shadow: inset 0 0 0 1px var(--slx-primary); }
.slx-checkbox input:checked + .slx-checkbox-icon::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }
.slx-radio input:checked + .slx-radio-icon { box-shadow: inset 0 0 0 6px var(--slx-primary); background: #fff; }
.slx-check-row { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 16px; }
.slx-radio-row { display: flex; align-items: center; gap: 14px; min-height: 48px; }

/* ---------- 折叠面板 ---------- */
.slx-collapse { display: flex; flex-direction: column; gap: 8px; }
.slx-collapse-item { border-radius: 16px; background: rgb(255 255 255 / 0.36); box-shadow: inset 0 0 0 0.5px var(--slx-line); overflow: hidden; }
.slx-collapse-item-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.slx-collapse-item-arrow { transition: transform 200ms ease; }
.slx-collapse-item.is-open .slx-collapse-item-arrow { transform: rotate(180deg); }
.slx-collapse-item-body { display: none; padding: 0 16px 16px; color: var(--slx-muted); }
.slx-collapse-item.is-open .slx-collapse-item-body { display: block; }

/* ---------- 提示条 ---------- */
.slx-toast {
    position: fixed;
    z-index: 1300;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--slx-card-strong);
    -webkit-backdrop-filter: blur(26px) saturate(1.8);
    backdrop-filter: blur(26px) saturate(1.8);
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.45), 0 16px 40px rgb(20 24 45 / 0.24);
    color: var(--slx-text);
    font-size: 13.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 240ms cubic-bezier(.2,.9,.24,1);
}
.slx-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 玻璃交互：按压拉伸 + 指针高光 ---------- */
.slx-glass-interactive {
    position: relative;
    isolation: isolate;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    will-change: transform;
}
.slx-glass-interactive::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle 180px at var(--lg-x, 50%) var(--lg-y, 50%), rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.1) 55%, transparent 78%);
    opacity: 0;
    transition: opacity 220ms ease;
    z-index: 1;
}
.slx-glass-interactive[data-pressed]::after { opacity: 1; transition-duration: 0s; }
.slx-glass-interactive > * { position: relative; z-index: 2; }

/* ---------- 页面容器 ---------- */
main.slx-container-fluid { min-height: calc(100vh - 84px); padding: 20px 24px 44px; }
main.slx-container { padding-top: 20px; padding-bottom: 44px; }
.slx-share-main { max-width: 1180px; }
#login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; }
#login-page .slx-container { max-width: 420px; }

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
    .slx-col-sm-1{width:8.3333%}.slx-col-sm-2{width:16.6667%}.slx-col-sm-3{width:25%}.slx-col-sm-4{width:33.3333%}
    .slx-col-sm-5{width:41.6667%}.slx-col-sm-6{width:50%}.slx-col-sm-7{width:58.3333%}.slx-col-sm-8{width:66.6667%}
    .slx-col-sm-9{width:75%}.slx-col-sm-10{width:83.3333%}.slx-col-sm-11{width:91.6667%}.slx-col-sm-12{width:100%}
}
@media (min-width: 960px) {
    .slx-col-md-1{width:8.3333%}.slx-col-md-2{width:16.6667%}.slx-col-md-3{width:25%}.slx-col-md-4{width:33.3333%}
    .slx-col-md-5{width:41.6667%}.slx-col-md-6{width:50%}.slx-col-md-7{width:58.3333%}.slx-col-md-8{width:66.6667%}
    .slx-col-md-9{width:75%}.slx-col-md-10{width:83.3333%}.slx-col-md-11{width:91.6667%}.slx-col-md-12{width:100%}
}
@media (max-width: 767px) {
    body.slx-appbar-with-toolbar { padding-top: 60px; }
    .slx-appbar, .slx-toolbar { height: 60px; }
    .slx-toolbar { padding: 0 8px; gap: 2px; }
    .appbar-brand { padding: 0 4px; }
    .appbar-brand .slx-typo-title { font-size: 15px; }
    .slx-hidden-xs-down { display: none !important; }
    main.slx-container-fluid { padding: 14px 12px 32px; }
    .slx-container { padding: 0 14px; }
    .slx-card-primary { padding: 17px 17px 0; }
    .slx-card-content { padding: 15px 17px 18px; }
    .slx-dialog { padding: 18px; border-radius: 22px; max-height: 88vh; }
    .slx-dialog-actions { flex-wrap: wrap; }
    .slx-typo-display-1 { font-size: 28px; }
    .slx-drawer { top: 60px; }
}
@media (max-width: 599px) {
    .slx-col-xs-1 { width: 8.3333%; } .slx-col-xs-4 { width: 33.3333%; } .slx-col-xs-6 { width: 50%; }
    .slx-col-xs-7 { width: 58.3333%; } .slx-col-xs-12 { width: 100%; }
    .card-grid-4, .card-grid-5 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .card-grid-5 > .slx-card:last-child { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 深色覆盖 ---------- */
html[data-theme="dark"] body { background:
    radial-gradient(52vw 40vw at 8% -8%, color-mix(in srgb, var(--slx-primary) 26%, transparent), transparent 70%),
    radial-gradient(46vw 38vw at 96% 2%, color-mix(in srgb, var(--slx-primary-soft) 16%, transparent), transparent 72%),
    linear-gradient(180deg, var(--slx-page) 0%, var(--slx-page-2) 100%); }
html[data-theme="dark"] .slx-drawer { background: rgb(24 25 31 / 0.7); }
html[data-theme="dark"] .slx-menu-item > a, html[data-theme="dark"] .slx-menu-item > button { color: var(--slx-text); }

/* ---------- Glisse 侧栏菜单落地 ---------- */
.slx-nav-content { padding: 4px 4px 18px; }
.slx-nav-head { padding: 2px 2px 10px; }
.lg-sidebar-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.lg-sidebar-menu-item { list-style: none; }
.lg-sidebar-menu-button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--slx-text);
    font-size: 14px;
    font-weight: 520;
    text-align: left;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}
.lg-sidebar-menu-button > .material-icons { font-size: 21px; width: 22px; color: var(--slx-muted); flex: none; }
.lg-sidebar-menu-button > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-sidebar-menu-button:hover { background: color-mix(in srgb, var(--slx-text) 6%, transparent); }
.lg-sidebar-menu-button[data-active] {
    background: color-mix(in srgb, var(--slx-primary) 14%, transparent);
    color: var(--slx-primary);
    font-weight: 620;
}
.lg-sidebar-menu-button[data-active] > .material-icons { color: var(--slx-primary); }
.lg-sidebar-group-label {
    padding: 13px 11px 6px;
    color: var(--slx-faint);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lg-sidebar-separator { height: 1px; margin: 9px 6px; background: var(--slx-line); border: 0; }
.slx-nav-site { gap: 11px; padding: 7px 8px; min-height: 54px; border-radius: 15px; }
.slx-nav-site:hover { background: color-mix(in srgb, var(--slx-text) 5%, transparent); }
.slx-nav-avatar {
    width: 38px; height: 38px; flex: none; border-radius: 50%;
    display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
    background: linear-gradient(145deg, var(--slx-primary-soft), var(--slx-primary));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), 0 3px 10px color-mix(in srgb, var(--slx-primary) 30%, transparent);
}
.slx-nav-site-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.slx-nav-site-text strong { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slx-nav-site-text small { font-size: 11.5px; color: var(--slx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slx-nav-trail { margin-left: auto; font-size: 18px !important; color: var(--slx-faint) !important; }
.slx-nav-foot { padding: 14px 12px 0; font-size: 11px; color: var(--slx-faint); letter-spacing: .04em; }

/* ---------- 玻璃质感增强 ---------- */
body {
    background:
        radial-gradient(38vw 34vw at 8% 4%, color-mix(in srgb, var(--slx-primary) 34%, transparent), transparent 72%),
        radial-gradient(34vw 30vw at 92% 0%, color-mix(in srgb, #38bdf8 30%, transparent), transparent 74%),
        radial-gradient(36vw 32vw at 74% 78%, color-mix(in srgb, #f472b6 22%, transparent), transparent 76%),
        radial-gradient(32vw 30vw at 18% 92%, color-mix(in srgb, #34d399 20%, transparent), transparent 78%),
        linear-gradient(180deg, var(--slx-page) 0%, var(--slx-page-2) 100%);
    background-attachment: fixed;
}

.slx-card {
    background:
        linear-gradient(145deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.4));
    box-shadow:
        inset 0 0 0 0.5px rgb(255 255 255 / 0.62),
        inset 0 1px 1px rgb(255 255 255 / 0.48),
        0 18px 50px rgb(31 36 58 / 0.12),
        0 2px 8px rgb(31 36 58 / 0.05);
}
html[data-theme="dark"] .slx-card {
    background:
        linear-gradient(145deg, rgb(46 48 58 / 0.66), rgb(24 25 31 / 0.56));
}

.slx-appbar {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.05)),
        color-mix(in srgb, var(--slx-primary) 48%, transparent);
}

.slx-chip.slx-color-green { background: linear-gradient(180deg, #45c96a, #2fa84f) !important; color: #fff !important; }
.slx-chip.slx-color-red { background: linear-gradient(180deg, #f05a5f, #d93b40) !important; color: #fff !important; }
.slx-chip.slx-color-amber { background: linear-gradient(180deg, #ffca3a, #f0a400) !important; color: #3a2600 !important; }
.slx-chip.slx-color-theme .slx-chip-title { color: #fff; }

/* 状态标签里的图标圆点 */
.slx-chip-icon.slx-color-green { background: rgb(255 255 255 / 0.22) !important; color: #fff !important; }
.slx-chip-icon.slx-color-theme { background: rgb(255 255 255 / 0.22) !important; color: #fff !important; }

/* 菜单里的色点 */
.slx-menu .slx-dot { width: 14px; height: 14px; }

/* 弹窗里的下拉：和 62px 输入框同一节奏 */
.slx-dialog [class*="slx-col"] > .slx-select { margin: 22px 0 18px; }
.slx-dialog .lg-select.slx-select { --lg-control-size: 50px; }

.slx-col > .slx-chip.slx-float-right, .slx-chip.slx-float-right { align-self: flex-end; float: none; }
.slx-chip-icon.slx-color-theme { background: var(--slx-primary) !important; color: #fff !important; }

.slx-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 48px;
    padding: 5px;
    border-radius: 24px;
    background: rgb(255 255 255 / 0.16) !important;
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.28), inset 0 1px 1px rgb(255 255 255 / 0.2), 0 2px 10px rgb(20 24 45 / 0.1);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
}
.slx-toolbar-group .slx-btn { height: 38px; }
.slx-toolbar-group .slx-btn-icon { width: 38px; }
.slx-toolbar-group .slx-btn.slx-btn-dense { height: 38px; }

.slx-toolbar-group .slx-btn,
.slx-toolbar-group .slx-btn.lg-button {
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: #fff !important;
}
.slx-toolbar-group .slx-btn:hover,
.slx-toolbar-group .slx-btn.lg-button:hover { background: rgb(255 255 255 / 0.16) !important; }
.slx-toolbar-group .slx-btn .material-icons { color: #fff !important; }

.slx-appbar .slx-btn.slx-text-color-white {
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.slx-appbar .slx-btn.slx-text-color-white:hover { background: rgb(255 255 255 / 0.16) !important; }
.slx-chip.slx-chip-success {
    background: rgb(16 185 129 / 0.16) !important;
    border-color: rgb(16 185 129 / 0.28) !important;
    color: #0b7a58 !important;
}
.slx-chip.slx-chip-success .slx-chip-icon { background: #10b981 !important; color: #fff !important; }
body.slx-theme-layout-dark .slx-chip.slx-chip-success { color: #6ee7b7 !important; }

.slx-list { display: flex; flex-direction: column; }
.slx-list-item-link { color: inherit; }
.slx-text-green { color: #0f9f6e !important; }
.slx-text-red { color: #e5484d !important; }
.slx-text-muted { color: var(--slx-muted) !important; }
body.slx-theme-layout-dark .slx-text-green { color: #6ee7b7 !important; }
body.slx-theme-layout-dark .slx-text-red { color: #fca5a5 !important; }

/* 安装向导 */
.slx-install-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.slx-card-glass { padding-bottom: 4px; }
.slx-install-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.slx-chip-step .slx-chip-icon { background: var(--slx-primary) !important; color: #fff !important; }
.slx-install-code { overflow-x: auto; border-radius: 14px; background: rgb(20 22 32 / 0.06); }

.slx-toolbar-group {
    background: rgb(18 22 40 / 0.18) !important;
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.24), inset 0 1px 1px rgb(255 255 255 / 0.16), 0 2px 10px rgb(10 14 30 / 0.14) !important;
}
.slx-toolbar-group .slx-btn.slx-text-color-white { color: #fff !important; text-shadow: 0 1px 2px rgb(0 0 0 / 0.18); }

.slx-btn.lg-button { display: inline-flex; width: auto; }
.slx-btn-block.lg-button { display: flex; width: 100%; }

.slx-row > [class*="slx-col"] > .slx-btn { align-self: flex-start; }
.slx-row > [class*="slx-col"].slx-text-right > .slx-btn { align-self: flex-end; }
.slx-row > [class*="slx-col"].slx-text-center > .slx-btn { align-self: center; }
.slx-row > [class*="slx-col"] > .slx-btn.slx-btn-block { align-self: stretch; width: 100%; }

/* 顶栏分组不做 backdrop-filter，避免成为 fixed 菜单的包含块 */
.slx-toolbar-group {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.slx-toolbar-group { will-change: auto !important; }

.slx-toolbar-group > a { color: rgb(255 255 255 / 0.86) !important; }
.slx-toolbar-group > a:hover { color: #fff !important; }
.slx-toolbar-group .slx-btn.slx-appbar-cta {
    background: #fff !important;
    color: var(--slx-primary) !important;
    box-shadow: 0 2px 8px rgb(10 14 30 / 0.18) !important;
}
