/* ============================================================
   云舟云盘 · 设计基线
   ============================================================ */
:root {
    --ink: #0B1220;
    --ink-2: #131C2C;
    --ink-3: #1C2940;
    --bg: #F4F6FA;
    --panel: #FFFFFF;
    --line: #E5E9F0;
    --line-2: #D4DBE7;
    --text: #16202F;
    --text-2: #45536A;
    --muted: #78849A;
    --faint: #9CA6B8;
    --brand: #2F6BFF;
    --brand-2: #1B4ED8;
    --brand-soft: #EDF3FF;
    --cyan: #00B4D8;
    --ok: #12945A;
    --ok-soft: #E7F6EE;
    --warn: #B97108;
    --warn-soft: #FCF2E1;
    --danger: #D9363E;
    --danger-soft: #FDECEC;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow-1: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-2: 0 16px 40px rgba(11, 18, 32, .16);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --sidebar-w: 238px;
    --topbar-h: 60px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-2);
}

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

::selection {
    background: rgba(47, 107, 255, .18);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #C7D0DE;
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #AEB9CA;
    background-clip: content-box;
}

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.muted {
    color: var(--muted);
}

.faint {
    color: var(--faint);
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
    user-select: none;
}

.btn:hover {
    background: #FAFBFE;
    border-color: #B8C3D4;
}

.btn:active {
    background: #F2F5FA;
}

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

.btn svg {
    flex: none;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(47, 107, 255, .24);
}

.btn-primary:hover {
    background: var(--brand-2);
    border-color: var(--brand-2);
    color: #fff;
}

.btn-ghost {
    border-color: transparent;
    background: transparent;
    color: var(--text-2);
}

.btn-ghost:hover {
    background: #EFF2F8;
    border-color: transparent;
}

.btn-danger {
    color: var(--danger);
    border-color: #F0CBCE;
    background: #fff;
}

.btn-danger:hover {
    background: #FDF3F3;
    border-color: #E9B4B7;
}

.btn-sm {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    gap: 4px;
}

.btn-lg {
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    flex: none;
}

/* ---------------- 表单 ---------------- */
.input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}

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

.input:hover {
    border-color: #BFC9D9;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

textarea.input {
    height: auto;
    padding: 10px 12px;
    line-height: 1.65;
    resize: vertical;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378849A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 30px;
    cursor: pointer;
}

.field {
    margin-bottom: 16px;
}

.field > label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 7px;
}

.field .hint {
    font-size: 12px;
    color: var(--faint);
    margin-top: 6px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap > svg {
    position: absolute;
    left: 12px;
    color: var(--faint);
    pointer-events: none;
}

.input-wrap .input {
    padding-left: 36px;
}

.input-wrap .suffix {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: var(--muted);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    user-select: none;
}

.check input,
.cb {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #C2CBDA;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex: none;
    transition: .14s;
    margin: 0;
}

.check input:checked,
.cb:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.check input:checked::after,
.cb:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 1.8px 1.8px 0;
    transform: rotate(42deg);
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex: none;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    background: #CBD3E0;
    border-radius: 22px;
    transition: .18s;
    cursor: pointer;
}

.switch span::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .18s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.switch input:checked + span {
    background: var(--brand);
}

.switch input:checked + span::before {
    transform: translateX(16px);
}

/* 半选状态 */
.check input:indeterminate,
.cb:indeterminate {
    background: var(--brand);
    border-color: var(--brand);
}

.check input:indeterminate::after,
.cb:indeterminate::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 6.5px;
    width: 7px;
    height: 2px;
    background: #fff;
    border: 0;
    transform: none;
}

/* ---------------- 卡片 / 面板 ---------------- */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title .sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--faint);
}

.panel-body {
    padding: 18px;
}

/* ---------------- 徽章 / 状态 ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 7px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    background: #F1F4F9;
    color: var(--muted);
    white-space: nowrap;
}

.badge-brand {
    background: var(--brand-soft);
    color: var(--brand);
}

.badge-ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.badge-warn {
    background: var(--warn-soft);
    color: var(--warn);
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-dark {
    background: var(--ink);
    color: #fff;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--faint);
    display: inline-block;
    flex: none;
}

.dot-ok {
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(18, 148, 90, .12);
}

.dot-warn {
    background: var(--warn);
    box-shadow: 0 0 0 3px rgba(185, 113, 8, .12);
}

.dot-danger {
    background: var(--danger);
    box-shadow: 0 0 0 3px rgba(217, 54, 62, .12);
}

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

table.tb {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table.tb th {
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
    background: #FAFBFD;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.tb td {
    height: 54px;
    padding: 0 12px;
    font-size: 13.5px;
    border-bottom: 1px solid #EFF2F7;
    color: var(--text-2);
    vertical-align: middle;
}

table.tb tbody tr:last-child td {
    border-bottom: none;
}

table.tb tbody tr:hover td {
    background: #F8FAFD;
}

table.tb tbody tr.is-selected td {
    background: #F2F7FF;
}

table.tb td.cell-name {
    color: var(--text);
    font-weight: 500;
}

.cell-actions {
    text-align: right;
    white-space: nowrap;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    opacity: 0;
    transition: opacity .12s;
}

tr:hover .row-actions,
tr.is-selected .row-actions {
    opacity: 1;
}

.act {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .12s;
}

.act:hover {
    background: #E9EEF7;
    color: var(--text);
}

.act-danger:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

/* 文件类型徽章 */
.f-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .02em;
    flex: none;
    border: 1px solid transparent;
}

.f-dir {
    background: #EAF1FF;
    color: #2F6BFF;
    border-color: #DCE7FF;
}

.f-img {
    background: #E8F7F4;
    color: #0E8F7E;
    border-color: #D5F0EA;
}

.f-vid {
    background: #F0EDFE;
    color: #5B4BD6;
    border-color: #E4DFFC;
}

.f-aud {
    background: #FDF0F6;
    color: #B03A76;
    border-color: #F9DFEC;
}

.f-pdf {
    background: #FDEDED;
    color: #C0363D;
    border-color: #F8DADA;
}

.f-doc {
    background: #EBF1FB;
    color: #2563C7;
    border-color: #DCE7F8;
}

.f-xls {
    background: #E9F6EC;
    color: #1B7A3D;
    border-color: #D8EDDD;
}

.f-ppt {
    background: #FDF1E8;
    color: #B85C12;
    border-color: #F9E2D2;
}

.f-zip {
    background: #F3F0E6;
    color: #8A6B18;
    border-color: #EAE4D2;
}

.f-txt {
    background: #F0F2F6;
    color: #5A6579;
    border-color: #E5E8EF;
}

.f-other {
    background: #F2F4F8;
    color: #667085;
    border-color: #E6E9F0;
}

/* ---------------- 下拉菜单 ---------------- */
.menu {
    position: fixed;
    z-index: 200;
    min-width: 168px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(11, 18, 32, .14);
    padding: 5px;
    animation: menuIn .12s ease;
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}

.menu button,
.menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
}

.menu button:hover,
.menu a:hover {
    background: #F3F6FB;
    color: var(--text);
}

.menu button svg,
.menu a svg {
    color: var(--muted);
}

.menu .danger {
    color: var(--danger);
}

.menu .danger svg {
    color: var(--danger);
}

.menu .danger:hover {
    background: var(--danger-soft);
}

.menu-sep {
    height: 1px;
    background: var(--line);
    margin: 5px 4px;
}

.menu-label {
    padding: 6px 10px 4px;
    font-size: 11px;
    color: var(--faint);
    letter-spacing: .04em;
}

/* ---------------- 弹窗 ---------------- */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .48);
    backdrop-filter: blur(1.5px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn .14s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.985);
    }
}

.modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    animation: popIn .16s ease;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.modal-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #FBFCFE;
}

.modal-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 5px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -4px;
}

.modal-close:hover {
    background: #F0F3F8;
    color: var(--text);
}

/* ---------------- 提示 ---------------- */
#toastBox {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 9px 15px;
    background: var(--ink);
    color: #fff;
    border-radius: 7px;
    font-size: 13px;
    box-shadow: 0 10px 26px rgba(11, 18, 32, .24);
    animation: toastIn .18s ease;
    max-width: 90vw;
}

.toast svg {
    color: #5CE0A0;
    flex: none;
}

.toast.err svg {
    color: #FF8A8E;
}

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

.toast.out {
    opacity: 0;
    transform: translateY(-8px);
    transition: .2s;
}

/* ---------------- 空状态 loading ---------------- */
.empty {
    padding: 64px 20px;
    text-align: center;
    color: var(--muted);
}

.empty .ico {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: #F1F4F9;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A9B4C6;
}

.empty h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
}

.empty p {
    margin: 0;
    font-size: 12.5px;
    color: var(--faint);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.spinner-dark {
    border-color: rgba(47, 107, 255, .25);
    border-top-color: var(--brand);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-row {
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--faint);
    font-size: 13px;
}

/* ---------------- 布局骨架 ---------------- */
.app {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 60;
    background-image:
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 26px 26px;
    background-position: -1px -1px;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(0, 180, 216, .5), rgba(47, 107, 255, .18) 40%, transparent 80%);
    opacity: .5;
}

.side-brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    flex: none;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.side-brand .name {
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
}

.side-brand .meta {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    color: #64748B;
    letter-spacing: .06em;
    margin-top: 3px;
}

.side-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}

.side-group {
    padding: 14px 10px 6px;
    font-size: 10.5px;
    letter-spacing: .1em;
    color: #4E5D75;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    color: #A3AFC2;
    font-size: 13.5px;
    cursor: pointer;
    position: relative;
    transition: background .12s, color .12s;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.nav-item.active {
    background: rgba(47, 107, 255, .16);
    color: #fff;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--cyan);
    border-radius: 0 2px 2px 0;
}

.nav-item .count {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 11px;
    color: #7E8CA3;
}

.nav-item.active .count {
    color: #B9CAE6;
}

.side-foot {
    padding: 12px;
    flex: none;
}

.quota-box {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.quota-box .q-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 9px;
}

.quota-box .q-label {
    font-size: 11px;
    color: #7E8CA3;
    letter-spacing: .04em;
}

.quota-box .q-val {
    font-family: var(--mono);
    font-size: 11px;
    color: #D7E0EE;
}

.quota-bar {
    height: 4px;
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
    overflow: hidden;
}

.quota-bar i {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #2F6BFF, #00B4D8);
    transition: width .4s ease;
}

.quota-box .q-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: #64748B;
}

.user-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 7px;
}

.user-row:hover {
    background: rgba(255, 255, 255, .05);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(140deg, #2F6BFF, #143A9E);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    flex: none;
    letter-spacing: .02em;
}

.avatar-lg {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 20px;
}

.user-row .u-meta {
    min-width: 0;
    flex: 1;
}

.user-row .u-name {
    font-size: 12.5px;
    color: #E4EAF4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-row .u-plan {
    font-size: 10.5px;
    color: #6E7D94;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-row .lg {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #6E7D94;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.user-row .lg:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: var(--topbar-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex: 1;
    font-size: 13.5px;
    overflow: hidden;
}

.crumb a,
.crumb span {
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--muted);
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crumb a:hover {
    background: #EFF2F8;
    color: var(--text);
}

.crumb .sep {
    color: #C4CCDA;
    padding: 0;
    font-size: 12px;
}

.crumb .cur {
    color: var(--text);
    font-weight: 500;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.search-box {
    position: relative;
    width: 216px;
}

.search-box svg {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faint);
}

.search-box input {
    width: 100%;
    height: 32px;
    border: 1px solid var(--line);
    background: #F7F9FC;
    border-radius: 6px;
    padding: 0 10px 0 32px;
    font-size: 12.5px;
    outline: none;
    transition: .14s;
}

.search-box input:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .1);
}

.menu-btn {
    display: none;
}

.content {
    flex: 1;
    padding: 20px 22px 48px;
}

.view {
    display: none;
}

.view.active {
    display: block;
    animation: viewIn .18s ease;
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
}

/* 公告条 */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 14px;
    background: #FFFCF2;
    border: 1px solid #F3E4C2;
    border-radius: 7px;
    font-size: 12.5px;
    color: #7A5B12;
    line-height: 1.6;
    margin-bottom: 16px;
}

.notice svg {
    flex: none;
    margin-top: 1px;
    color: #B97108;
}

.notice b {
    font-weight: 600;
}

.notice .close-n {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #B99A5B;
    cursor: pointer;
    padding: 0;
    display: flex;
}

/* 通用页面标题 */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.page-head h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.page-head p {
    margin: 0;
    font-size: 12.5px;
    color: var(--muted);
}

@media (max-width: 1080px) {
    .search-box {
        width: 160px;
    }
}

@media (max-width: 900px) {
    :root {
        --topbar-h: 56px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 40px rgba(0, 0, 0, .3);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
    }

    .menu-btn {
        display: inline-flex;
    }

    .content {
        padding: 14px 12px 40px;
    }

    .topbar {
        padding: 0 12px;
        gap: 8px;
    }

    .search-box {
        display: none;
    }

    .top-actions .btn .txt {
        display: none;
    }

    .top-actions .btn {
        width: 34px;
        padding: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mask {
        padding: 0;
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 88vh;
        animation: sheetIn .2s ease;
    }

    @keyframes sheetIn {
        from {
            transform: translateY(100%);
        }
    }

    .modal-foot {
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }
}


/* 自动填充样式覆盖 */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
}
