/* Lite 控制台 · 深色玻璃拟态设计系统
   所有页面（官网 / 管理后台 / 用户后台）共用这一份样式。 */

:root {
    color-scheme: dark;
    --bg: #060913;
    --bg-2: #0a1020;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-2: rgba(255, 255, 255, 0.09);
    --surface-3: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.2);
    --text: #e9edf9;
    --muted: #8c98b8;
    --faint: #5d6886;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-soft: rgba(124, 92, 255, 0.18);
    --success: #34d399;
    --danger: #fb7185;
    --warn: #fbbf24;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    --mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

body::before {
    width: 780px;
    height: 780px;
    top: -360px;
    left: -220px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 65%);
}

body::after {
    width: 720px;
    height: 720px;
    bottom: -380px;
    right: -220px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(124, 92, 255, 0.4);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

/* ── 品牌 / 图标 ── */
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.45);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text b {
    font-size: 16px;
    letter-spacing: 0.12em;
}

.brand-text span {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ── 外壳：侧栏 + 主区域 ── */
.shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
    border-right: 1px solid var(--line);
    backdrop-filter: blur(22px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 2px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-label {
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    border: 1px solid transparent;
    transition: 0.18s ease;
    background: transparent;
    text-align: left;
    width: 100%;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    opacity: 0.9;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(100deg, rgba(124, 92, 255, 0.28), rgba(34, 211, 238, 0.1));
    border-color: rgba(124, 92, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sidebar-foot {
    margin-top: auto;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 12px;
    color: var(--muted);
}

.sidebar-foot b {
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    background: rgba(6, 9, 19, 0.55);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.topbar-title h1 {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.01em;
}

.topbar-title span {
    font-size: 12px;
    color: var(--muted);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.content {
    padding: 26px 28px 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.view {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.view.active {
    display: flex;
    animation: view-in 0.28s ease;
}

@keyframes view-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ── 卡片 / 网格 ── */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 650;
}

.card-head .sub {
    font-size: 12px;
    color: var(--muted);
}

.card-head .spacer {
    margin-left: auto;
}

.card-body {
    padding: 20px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.main-aside {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
}

/* ── 统计卡 ── */
.stat {
    position: relative;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    overflow: hidden;
}

.stat::after {
    content: "";
    position: absolute;
    inset: auto -30% -60% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.stat-value {
    margin-top: 8px;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--faint);
}

.stat.hot {
    border-color: rgba(124, 92, 255, 0.45);
    background: linear-gradient(150deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.05));
}

/* ── 按钮 / 表单 ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.16s ease;
}

.btn:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-primary {
    border: none;
    background: linear-gradient(120deg, var(--accent), #5b8cff 60%, var(--accent-2));
    color: #fff;
    box-shadow: 0 10px 26px rgba(92, 110, 255, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-danger {
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.12);
    color: #ffc2cc;
}

.btn-ghost {
    background: transparent;
}

.btn-sm {
    height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 12px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
}

.icon-btn:hover {
    color: var(--text);
    background: var(--surface-2);
}

.input,
.select,
.textarea {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: rgba(3, 6, 14, 0.45);
    color: var(--text);
    outline: none;
    transition: 0.16s ease;
}

.textarea {
    height: auto;
    min-height: 110px;
    padding: 11px 12px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--faint);
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(124, 92, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.label {
    font-size: 12px;
    color: var(--muted);
}

.hint {
    font-size: 12px;
    color: var(--faint);
}

.error {
    color: var(--danger);
    font-size: 12px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.toolbar .input {
    width: 220px;
}

.toolbar .select {
    width: 140px;
}

.toolbar .spacer {
    margin-left: auto;
}

/* ── 标签 / 状态 ── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.chip.vip {
    color: #ffe4a3;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.12);
}

.chip.role-admin {
    color: #d8ccff;
    border-color: rgba(124, 92, 255, 0.45);
    background: rgba(124, 92, 255, 0.16);
}

.chip.role-agent {
    color: #bfe8ff;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.1);
}

.state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.state::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--faint);
}

.state.active {
    color: var(--success);
}

.state.active::before {
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
}

.state.banned {
    color: var(--danger);
}

.state.banned::before {
    background: var(--danger);
}

.online {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--faint);
}

.online::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--faint);
}

.online.is-on {
    color: var(--success);
}

.online.is-on::before {
    background: var(--success);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}

/* ── 表格 ── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

table.data th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.data td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    vertical-align: middle;
    color: #cfd7ea;
}

table.data tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

table.data td.mono,
.mono {
    font-family: var(--mono);
    font-size: 12px;
}

table.data td.actions {
    text-align: right;
    white-space: nowrap;
}

.empty {
    padding: 34px 16px !important;
    text-align: center;
    color: var(--faint);
}

.pager {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 20px;
    color: var(--muted);
    font-size: 12px;
}

.pager .btn {
    height: 30px;
    padding: 0 11px;
}

/* ── 弹窗 ── */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 4, 10, 0.68);
    backdrop-filter: blur(8px);
    animation: fade-in 0.18s ease;
}

.modal {
    width: min(560px, 100%);
    max-height: min(84vh, 820px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(22, 28, 46, 0.98), rgba(9, 13, 24, 0.98));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: pop-in 0.2s ease;
}

.modal.wide {
    width: min(860px, 100%);
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    margin: 0;
    font-size: 16px;
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
}

/* ── 提示 ── */
.toast-stack {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 44px));
}

.toast {
    padding: 13px 16px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(18, 24, 40, 0.96);
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: toast-in 0.2s ease;
}

.toast.ok {
    border-color: rgba(52, 211, 153, 0.4);
}

.toast.err {
    border-color: rgba(251, 113, 133, 0.5);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ── 登录页 ── */
.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(430px, 100%);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(26px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.login-brand p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.login-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

/* ── 开关 ── */
.switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
}

.switch input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid var(--line-strong);
    transition: 0.18s ease;
}

.switch span::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: 0.18s ease;
}

.switch input:checked + span {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-color: transparent;
}

.switch input:checked + span::after {
    transform: translateX(20px);
}

/* ── 设备 / 日志 / 壁纸 ── */
.device-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.device-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.device-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(124, 92, 255, 0.16);
    color: #cbbcff;
    flex: 0 0 38px;
}

.device-info {
    min-width: 0;
    flex: 1;
}

.device-info b {
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-info span {
    font-size: 12px;
    color: var(--muted);
}

.log-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.log-content {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(2, 4, 10, 0.55);
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    color: #c9d4ea;
    max-height: 420px;
    overflow: auto;
}

.log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: 0.15s ease;
}

.log-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.log-row .log-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    word-break: break-word;
}

.log-row .log-time {
    font-size: 11px;
    color: var(--faint);
    white-space: nowrap;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.wallpaper-card {
    position: relative;
    aspect-ratio: 9 / 13;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.wallpaper-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wallpaper-card.is-current {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.4);
}

.wallpaper-actions {
    position: absolute;
    inset: auto 8px 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: 0.15s ease;
}

.wallpaper-card:hover .wallpaper-actions {
    opacity: 1;
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 130px;
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
    cursor: pointer;
    transition: 0.16s ease;
}

.upload-box:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.07);
}

.upload-box svg {
    width: 28px;
    height: 28px;
    color: var(--muted);
}

/* ── 官网 ── */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px clamp(20px, 5vw, 64px);
    background: rgba(6, 9, 19, 0.5);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

.landing-nav .links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.landing-nav .links a:hover {
    color: var(--text);
}

.hero {
    padding: clamp(48px, 9vw, 110px) clamp(20px, 5vw, 64px) 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-size: 12px;
    color: var(--muted);
    width: fit-content;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.hero h1 .grad {
    background: linear-gradient(110deg, #b9a7ff, #6ee7ff 60%, #9d8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.hero-panel {
    position: relative;
    min-height: 320px;
    border-radius: 26px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(24px);
    overflow: hidden;
    padding: 22px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -130px;
    right: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%);
}

.mini-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
    color: var(--muted);
}

.mini-row:last-child {
    border-bottom: 0;
}

.mini-row b {
    color: var(--text);
    font-size: 13px;
}

.section {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 34px clamp(20px, 5vw, 64px) 56px;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.feature {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
    backdrop-filter: blur(16px);
    transition: 0.18s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 92, 255, 0.35);
}

.feature h3 {
    margin: 14px 0 8px;
    font-size: 15px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(124, 92, 255, 0.16);
    color: #cbbcff;
}

.landing-foot {
    margin-top: auto;
    padding: 26px clamp(20px, 5vw, 64px);
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* ── 响应式 ── */
@media (max-width: 1100px) {
    .grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.main-aside,
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar {
        position: static;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        padding: 12px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-brand {
        flex: 0 0 auto;
    }

    .nav-group {
        flex-direction: row;
        gap: 6px;
    }

    .nav-label,
    .sidebar-foot {
        display: none;
    }

    .nav-item {
        width: auto;
        white-space: nowrap;
        padding: 8px 11px;
    }

    .nav-item svg {
        display: none;
    }

    .topbar {
        padding: 14px 18px;
    }

    .content {
        padding: 18px;
    }

    .grid.cols-2,
    .grid.cols-3,
    .grid.cols-4,
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .toolbar .input,
    .toolbar .select {
        width: 100%;
    }

    .toolbar .spacer {
        margin-left: 0;
    }
}

@media (max-width: 560px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        width: 100%;
    }

    .modal {
        border-radius: 16px;
    }

    .login-card {
        padding: 24px;
    }
}

/* ============ 亮色主题覆盖（穹のツール，统一三端） ============ */
:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --bg-2: #eceff7;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-2: rgba(255, 255, 255, 0.96);
    --surface-3: #ffffff;
    --line: rgba(15, 23, 42, 0.10);
    --line-strong: rgba(15, 23, 42, 0.18);
    --text: #101828;
    --muted: #5a6478;
    --faint: #8b93a7;
    --accent: #4f46e5;
    --accent-2: #0ea5e9;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --success: #15803d;
    --danger: #dc2626;
    --warn: #b45309;
    --shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
}

html, body { background: #f5f7fb; color: var(--text); }

body {
    background-image:
        radial-gradient(1100px 520px at 12% -8%, rgba(79, 70, 229, 0.10), transparent 62%),
        radial-gradient(900px 460px at 105% 0%, rgba(14, 165, 233, 0.10), transparent 60%);
    background-repeat: no-repeat;
}

.card, .panel, .modal, .dialog, .drawer, .table, .list, .item, .field, .input, select, textarea {
    box-shadow: var(--shadow);
}

.input, select, textarea, .input input {
    background: #ffffff !important;
    color: var(--text) !important;
    border-color: var(--line-strong) !important;
}

.btn { color: var(--text); }
.btn-primary { color: #ffffff; background: var(--accent); border-color: var(--accent); }
.btn-ghost:hover, .btn:hover { background: rgba(15, 23, 42, 0.06); }

table th { color: var(--muted); background: rgba(15, 23, 42, 0.03); }
table tr:hover td { background: rgba(15, 23, 42, 0.03); }

.tag, .badge, .chip { background: var(--accent-soft); color: var(--accent); }

.topbar, .sidebar, .nav { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); }
