/* ============================================================
   云舟云盘 · 用户端
   ============================================================ */

/* ---------------- 登录 / 注册 ---------------- */
.auth-mobile-brand {
    display: none;
}

.auth {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
    background: #fff;
}

.auth-visual {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 32px 32px;
}

.auth-visual::before {
    content: '';
    position: absolute;
    width: 620px;
    height: 620px;
    right: -220px;
    bottom: -240px;
    border-radius: 50%;
    border: 1px solid rgba(47, 107, 255, .22);
    box-shadow: inset 0 0 120px rgba(47, 107, 255, .1);
}

.auth-visual::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    right: -100px;
    bottom: -120px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 180, 216, .18);
}

.av-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.av-brand .v {
    font-family: var(--mono);
    font-size: 10px;
    color: #4E5D75;
    border: 1px solid #263248;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 2px;
    letter-spacing: .04em;
}

.av-copy {
    margin: auto 0;
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.av-copy .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: #5B7BA8;
    margin-bottom: 20px;
}

.av-copy .eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--cyan);
}

.av-copy h1 {
    font-size: 41px;
    line-height: 1.24;
    margin: 0 0 16px;
    font-weight: 700;
    letter-spacing: -.035em;
}

.av-copy h1 em {
    font-style: normal;
    color: #6E9BFF;
}

.av-copy p {
    margin: 0;
    color: #8798B0;
    font-size: 13.5px;
    line-height: 1.85;
    max-width: 380px;
}

.av-stats {
    display: flex;
    gap: 34px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 20px;
}

.av-stats div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.av-stats b {
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: #E8EEF8;
}

.av-stats span {
    font-size: 11px;
    color: #5E6D85;
    letter-spacing: .03em;
}

.auth-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
    background: #F5F7FB;
    background-image: radial-gradient(circle at 78% 12%, rgba(47, 107, 255, .05), transparent 42%);
}

.auth-card {
    width: 100%;
    max-width: 396px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 30px 26px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, .06);
}

.auth-card .a-title {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 0 8px;
}

.auth-card .a-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 26px;
}

.auth-card .input {
    height: 42px;
}

.auth-card .btn-lg {
    margin-top: 6px;
}

.auth-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-err {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--danger-soft);
    border: 1px solid #F6D3D5;
    color: #B0252C;
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.auth-foot {
    margin-top: 30px;
    font-size: 11.5px;
    color: var(--faint);
    line-height: 1.7;
    font-family: var(--mono);
    letter-spacing: .01em;
}

/* ---------------- 文件区 ---------------- */
.file-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius) var(--radius) 0 0;
    min-height: 54px;
    flex-wrap: wrap;
}

.fb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.fb-left b {
    color: var(--text);
    font-weight: 600;
    font-family: var(--mono);
}

.fb-bulk {
    display: none;
    align-items: center;
    gap: 6px;
}

.fb-bulk.show {
    display: flex;
}

.fb-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 9px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 5px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
}

.sort-btn:hover {
    background: #F1F4F9;
    color: var(--text);
}

.name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    cursor: pointer;
}

.name-box {
    min-width: 0;
}

.name-box .nm {
    display: block;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}

.name-box .row-sub {
    display: none;
    font-size: 11px;
    color: var(--faint);
    font-family: var(--mono);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tr.is-dir .f-icon {
    color: #2F6BFF;
}

.drag-over::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 260;
    background: rgba(47, 107, 255, .06);
    border: 2px dashed rgba(47, 107, 255, .6);
    border-radius: 12px;
    margin: 10px;
    pointer-events: none;
}

.drop-hint {
    position: fixed;
    z-index: 261;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    border-radius: 10px;
    padding: 22px 30px;
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    pointer-events: none;
}

.drag-over .drop-hint {
    display: flex;
}

/* 上传队列 */
.upload-dock {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 336px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(11, 18, 32, .16);
    z-index: 150;
    overflow: hidden;
    display: none;
}

.upload-dock.show {
    display: block;
}

.ud-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.ud-head .cnt {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
}

.ud-head .ops {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.ud-list {
    max-height: 240px;
    overflow-y: auto;
}

.ud-item {
    padding: 10px 14px;
    border-bottom: 1px solid #F2F4F8;
    font-size: 12px;
}

.ud-item:last-child {
    border-bottom: 0;
}

.ud-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.ud-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-2);
}

.ud-pct {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
}

.ud-bar {
    height: 3px;
    background: #EDF0F6;
    border-radius: 2px;
    overflow: hidden;
}

.ud-bar i {
    display: block;
    height: 100%;
    background: var(--brand);
    transition: width .2s;
}

.ud-bar i.done {
    background: var(--ok);
}

.ud-bar i.err {
    background: var(--danger);
}

/* ---------------- 视图：分享 ---------------- */
.link-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 260px;
}

.link-cell code {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--muted);
    background: #F4F6FA;
    border: 1px solid var(--line);
    padding: 3px 6px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------- 视图：个人中心 ---------------- */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}

.profile-card {
    padding: 22px;
    text-align: center;
}

.profile-card .avatar-lg {
    margin: 0 auto 12px;
}

.profile-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.profile-card .uname {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--faint);
}

.profile-card .p-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.p-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 16px;
}

.p-stats div {
    text-align: center;
}

.p-stats b {
    display: block;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.p-stats span {
    font-size: 10.5px;
    color: var(--faint);
    margin-top: 3px;
    display: block;
}

.quota-big {
    padding: 22px;
}

.qb-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.qb-num {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--text);
}

.qb-num small {
    font-size: 12px;
    color: var(--faint);
    font-weight: 400;
    margin-left: 6px;
    letter-spacing: 0;
}

.qb-pct {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.qb-bar {
    height: 8px;
    background: #EEF2F8;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

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

.qb-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--muted);
}

.qb-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qb-legend .sw {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #2F6BFF;
}

.qb-legend .sw.g {
    background: #EEF2F8;
    border: 1px solid var(--line-2);
}

.kv-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.kv {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.kv:nth-last-child(-n+2) {
    border-bottom: 0;
}

.kv label {
    display: block;
    font-size: 11.5px;
    color: var(--faint);
    margin-bottom: 6px;
}

.kv b {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.kv b.mono {
    font-size: 14px;
}

/* ---------------- 视图：会员 ---------------- */
.vip-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 22px 22px;
}

.vip-banner .vb-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFC86B;
    flex: none;
}

.vip-banner h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
}

.vip-banner p {
    margin: 0;
    font-size: 12px;
    color: #8593A9;
}

.vip-banner .vb-right {
    margin-left: auto;
    text-align: right;
    font-size: 11.5px;
    color: #8593A9;
}

.vip-banner .vb-right b {
    display: block;
    font-family: var(--mono);
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 3px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.plan {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    transition: .16s;
    display: flex;
    flex-direction: column;
}

.plan:hover {
    border-color: #B9C7E2;
    box-shadow: 0 8px 24px rgba(11, 18, 32, .07);
}

.plan.hot {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand) inset;
}

.plan .hot-tag {
    position: absolute;
    top: -1px;
    right: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 0 0 4px 4px;
    letter-spacing: .04em;
}

.plan h4 {
    margin: 0 0 4px;
    font-size: 14.5px;
    font-weight: 600;
}

.plan .p-days {
    font-size: 11.5px;
    color: var(--faint);
    margin-bottom: 16px;
}

.plan .p-price {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--text);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.plan .p-price .cur {
    font-size: 14px;
    color: var(--muted);
}

.plan .p-price .unit {
    font-size: 11px;
    color: var(--faint);
    letter-spacing: 0;
    font-family: var(--font);
}

.plan ul {
    flex: 1;
    list-style: none;
    padding: 16px 0 18px;
    margin: 0;
    border-top: 1px dashed var(--line);
    margin-top: 16px;
}

.plan ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-2);
    padding: 5px 0;
}

.plan ul li svg {
    color: var(--brand);
    flex: none;
}

.pay-methods {
    display: grid;
    gap: 8px;
}

.pay-m {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border: 1px solid var(--line-2);
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    transition: .14s;
}

.pay-m:hover {
    border-color: #B9C7E2;
}

.pay-m.on {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.pay-m .pm-ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F4F9;
    color: var(--text-2);
    flex: none;
}

.pay-m .pm-ico.alipay {
    background: #E8F2FF;
    color: #1677FF;
}

.pay-m .pm-ico.wxpay {
    background: #E8F8ED;
    color: #07A85B;
}

.pay-m .pm-ico.balance {
    background: #FFF5E6;
    color: #C2860B;
}

.pay-m .pm-r {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.pay-m input {
    display: none;
}

/* ---------------- 预览 ---------------- */
.pv-mask {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #070B14;
    display: flex;
    flex-direction: column;
    animation: fadeIn .15s ease;
}

.pv-head {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    flex: none;
    color: #C6D0E0;
}

.pv-head .pv-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pv-head .pv-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv-btn {
    height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
    color: #D6DEEA;
    border-radius: 5px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.pv-btn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

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

.pv-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    min-height: 0;
}

.pv-body img,
.pv-body video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    background: #000;
}

.pv-body iframe {
    width: min(1000px, 100%);
    height: 100%;
    border: 0;
    background: #fff;
    border-radius: 4px;
}

.pv-body pre {
    width: 100%;
    max-width: 980px;
    max-height: 100%;
    margin: 0;
    padding: 20px;
    background: #10192A;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #B9C8DE;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.pv-foot {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: #4E5D75;
    border-top: 1px solid rgba(255, 255, 255, .05);
    flex: none;
}

/* ---------------- 移动端操作面板 ---------------- */
.sheet-mask {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .42);
    z-index: 400;
    display: flex;
    align-items: flex-end;
    animation: fadeIn .15s ease;
}

.sheet {
    width: 100%;
    background: #fff;
    border-radius: 14px 14px 0 0;
    padding: 6px 0 max(10px, env(safe-area-inset-bottom));
    animation: sheetIn .2s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.sheet-grip {
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: #DDE3EC;
    margin: 6px auto 10px;
}

.sheet-head {
    padding: 2px 20px 14px;
    border-bottom: 1px solid var(--line);
}

.sheet-head b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
}

.sheet-head span {
    font-size: 11.5px;
    color: var(--faint);
    font-family: var(--mono);
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.sheet-item:active {
    background: #F4F6FA;
}

.sheet-item.danger {
    color: var(--danger);
}

.si {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.si-blue {
    background: #EDF3FF;
    color: #2F6BFF;
}

.si-cyan {
    background: #E6F7FB;
    color: #0891B2;
}

.si-green {
    background: #E9F7EF;
    color: #12945A;
}

.si-amber {
    background: #FDF3E3;
    color: #B97108;
}

.si-violet {
    background: #F1EEFE;
    color: #6D4BD8;
}

.si-red {
    background: #FDECEC;
    color: #D9363E;
}

.sheet-cancel {
    margin: 8px 14px 0;
    width: calc(100% - 28px);
    height: 44px;
    border: 0;
    background: #F4F6FA;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-2);
    cursor: pointer;
}

/* ---------------- 移动端适配 ---------------- */
@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-side {
        background: #fff;
        align-items: flex-start;
        padding: 26px 20px 40px;
        min-height: 100vh;
    }

    .auth-card {
        max-width: 440px;
        margin: 0 auto;
        border: 0;
        box-shadow: none;
        padding: 8px 2px 0;
        border-radius: 0;
    }

    .auth-card .input {
        font-size: 16px;
    }

    .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 34px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .file-bar {
        padding: 9px 10px;
        gap: 8px;
    }

    .fb-left .total-txt {
        display: none;
    }

    /* 表格转卡片行 */
    table.tb th.col-size,
    table.tb th.col-time,
    table.tb td.col-size,
    table.tb td.col-time {
        display: none;
    }

    table.tb th,
    table.tb td {
        padding: 0 8px;
    }

    table.tb td {
        height: 62px;
    }

    table.tb th:first-child,
    table.tb td:first-child {
        padding-left: 12px;
        width: 34px;
    }

    table.tb th:last-child,
    table.tb td:last-child {
        width: 40px;
        padding-right: 10px;
    }

    .name-box .nm {
        max-width: 46vw;
    }

    .name-box .row-sub {
        display: block;
    }

    .row-actions {
        display: none;
    }

    .cell-actions .act.row-more {
        display: inline-flex;
    }

    .link-cell {
        max-width: 44vw;
    }

    .upload-dock {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }

    .pv-body {
        padding: 10px;
    }

    .pv-head .pv-name {
        max-width: 46vw;
    }

    .kv-list {
        grid-template-columns: 1fr;
    }

    .kv:nth-last-child(-n+2) {
        border-bottom: 1px dashed var(--line);
    }

    .kv:last-child {
        border-bottom: 0;
    }

    .vip-banner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px;
    }

    .vip-banner .vb-right {
        width: 100%;
        text-align: left;
        margin-left: 0;
        padding-top: 13px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        display: flex;
        align-items: baseline;
        gap: 9px;
    }

    .vip-banner .vb-right b {
        margin: 0;
    }

    .plan {
        padding: 18px;
    }
}
}

.act.row-more {
    display: none;
}

/* ---------------- 公开分享页 ---------------- */
.share-page {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.share-top {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    flex: none;
}

.share-top .st-name {
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
}

.share-top .st-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 26px 18px 50px;
    flex: 1;
}

.share-file {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.share-file .f-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 11px;
}

.share-file .sf-meta {
    min-width: 0;
    flex: 1;
}

.share-file .sf-name {
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 4px;
    letter-spacing: -.01em;
}

.share-file .sf-sub {
    font-size: 11.5px;
    color: var(--faint);
    font-family: var(--mono);
}

.share-preview {
    background: #0A101C;
    border-radius: var(--radius);
    border: 1px solid #1B2435;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-preview img {
    max-width: 100%;
    max-height: 68vh;
    display: block;
}

.share-preview video {
    width: 100%;
    max-height: 68vh;
    display: block;
    background: #000;
}

.share-preview iframe {
    width: 100%;
    height: 70vh;
    border: 0;
    background: #fff;
}

.share-preview pre {
    width: 100%;
    margin: 0;
    padding: 20px;
    color: #B9C8DE;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: 68vh;
    overflow: auto;
}

.share-preview .pv-tip {
    color: #5E6D85;
    font-size: 13px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-list {
    overflow: hidden;
}

.share-list .sl-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 18px;
    border-bottom: 1px solid #F0F3F8;
    font-size: 13.5px;
    cursor: pointer;
}

.share-list .sl-row:last-child {
    border-bottom: 0;
}

.share-list .sl-row:hover {
    background: #F8FAFD;
}

.share-list .sl-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-list .sl-size {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--faint);
    flex: none;
}

.share-foot {
    text-align: center;
    font-size: 11.5px;
    color: var(--faint);
    padding: 26px 0 0;
    font-family: var(--mono);
    letter-spacing: .02em;
}

.share-foot a {
    color: var(--muted);
}

/* 分享密码 */
.pw-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 20px;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(47, 107, 255, .06), transparent 55%);
}

.pw-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 34px 28px 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(11, 18, 32, .07);
}

.pw-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pw-card h2 {
    font-size: 18px;
    margin: 0 0 6px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.pw-card p {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 22px;
    line-height: 1.7;
}

.pw-card .input {
    text-align: center;
    letter-spacing: .2em;
    font-family: var(--mono);
    height: 44px;
    font-size: 15px;
}

.share-state {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg);
}

.share-state .box {
    text-align: center;
    max-width: 380px;
}

.share-state .ico {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--faint);
}

.share-state h2 {
    font-size: 17px;
    margin: 0 0 8px;
    font-weight: 600;
}

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

/* ---------------- 移动目录树 / 遮罩 ---------------- */
.side-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .42);
    z-index: 55;
    animation: fadeIn .15s ease;
}

.side-mask.show {
    display: block;
}

.mv-tree {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px;
    background: #FCFDFE;
}

.mv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 10px;
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mv-item svg {
    color: #8B97AB;
    flex: none;
}

.mv-item:hover {
    background: #F0F4FA;
}

.mv-item.on {
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 500;
}

.mv-item.on svg {
    color: var(--brand);
}


/* 移动端搜索 */
.m-search-btn {
    display: none;
}

@media (max-width: 900px) {
    .m-search-btn {
        display: inline-flex;
    }

    .topbar.searching .crumb,
    .topbar.searching .top-actions {
        visibility: hidden;
    }

    .topbar.searching .search-box {
        display: block;
        position: absolute;
        left: 10px;
        right: 10px;
        top: 10px;
        width: auto;
        z-index: 5;
    }

    .topbar.searching .search-box input {
        height: 36px;
        font-size: 16px;
        background: #fff;
    }
}
