/* 易云储 v5.6 桌面基础样式（≥921px 原样；移动端由 mobile.css 按宽度重排） */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 触控优化：去掉点按高亮闪块，按钮类元素禁用双击缩放延迟 */
html { -webkit-text-size-adjust: 100%; }
body, button, input, label, a, .fcard, .icon-btn, .toolbar button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 点按通用反馈：按下轻微下沉 + 高亮 */
button:active, .icon-btn:active, .btn:active, .upload-strip:active, .fcard .ops button:active, .fcard .ops a:active {
    transform: scale(.96);
    filter: brightness(.92);
}
button, .icon-btn, .btn, .upload-strip, .fcard .ops button, .fcard .ops a, .avatar, .toolbar button {
    transition: transform .12s ease, filter .12s ease, background .2s, border-color .2s, color .2s;
}


body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f2f4f8;
    color: #2c3e50;
    min-height: 100vh;
    /* 字号随屏幕流动缩放：小窗 14px → 大屏 16px */
    font-size: clamp(14px, 0.4vw + 12.5px, 16px);
}

/* 顶栏：内边距随屏幕流动 */
.topbar {
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0);
    color: #fff;
    padding: clamp(10px, 1.5vw, 16px) clamp(14px, 3vw, 28px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-row1 { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 20px; font-weight: 700; margin-right: auto; }
.icon-btn {
    background: rgba(255,255,255,.16);
    border: none; color: #fff;
    padding: 8px 14px; border-radius: 8px;
    font-size: 14px; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(255,255,255,.28); }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; color: #4f6ef2;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; text-decoration: none;
    position: relative; overflow: hidden;
}
.avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-letter { line-height: 1; }
.topbar-row2 { margin-top: 10px; max-width: 520px; }
.topbar-row2 input {
    width: 100%; padding: 9px 14px; border: none; border-radius: 8px;
    font-size: 14px; outline: none;
}
.tools-drawer {
    margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap;
}
/* hidden 属性优先：点「⚙ 工具」才能正常收起 */
.tools-drawer[hidden] { display: none !important; }
.tools-drawer button, .tools-drawer label, .tools-drawer a {
    background: rgba(255,255,255,.16); border: none; color: #fff;
    padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer; text-decoration: none;
}
.tools-drawer button:hover, .tools-drawer label:hover, .tools-drawer a:hover { background: rgba(255,255,255,.28); }

/* 主区：宽度与内边距随屏幕流动 */
.main { max-width: min(1080px, 100%); margin: 0 auto; padding: clamp(14px, 2.5vw, 24px) clamp(12px, 3vw, 24px) clamp(32px, 4vw, 48px); }
.notice {
    background: #fff8e6; color: #8a6d1a;
    padding: 10px 14px; border-radius: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 14px; font-size: 14px;
}
.upload-strip {
    display: flex; align-items: center; justify-content: center;
    height: 48px; border: 2px dashed #b9c4f5; border-radius: 10px;
    color: #4f6ef2; font-size: 14px; cursor: pointer;
    background: #f7f8ff; margin-bottom: 14px;
}
.upload-strip:hover { background: #eef1ff; }
.toolbar { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.toolbar button {
    border: 1px solid #dfe4f2; background: #fff; color: #4a5568;
    padding: 8px 16px; border-radius: 999px; font-size: 14px;
    cursor: pointer; white-space: nowrap;
}
.toolbar button.active, .toolbar button:hover { background: #4f6ef2; border-color: #4f6ef2; color: #fff; }

.crumbs { font-size: 13px; color: #8a94a6; margin-bottom: 10px; }

/* 卡片网格：列宽随屏幕流动，窄屏自动减列 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 24vw, 280px), 1fr)); gap: clamp(10px, 1.5vw, 16px); }
.fcard {
    background: #fff; border-radius: 12px; padding: 16px;
    box-shadow: 0 2px 8px rgba(30, 40, 90, .06);
    display: flex; flex-direction: column; gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease;
}
/* 桌面悬停：卡片轻浮起（触屏无 hover 不受影响） */
@media (hover: hover) {
    .fcard:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30, 40, 90, .12); }
}
.fcard .name {
    font-size: 15px; font-weight: 600; word-break: break-all;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fcard .meta { font-size: 12px; color: #98a1b3; }
.fcard .ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.fcard .ops button, .fcard .ops a {
    border: 1px solid #e2e7f5; background: #f7f8ff; color: #4f6ef2;
    padding: 5px 10px; border-radius: 7px; font-size: 12px; cursor: pointer; text-decoration: none;
}
.fcard .ops button:hover, .fcard .ops a:hover { background: #4f6ef2; color: #fff; }
.fcard input.sel { transform: scale(1.2); }

.empty { text-align: center; color: #98a1b3; padding: 40px 0; }

/* 点按涟漪动效（JS 在按下处生成，0.5s 扩散消失） */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    transform: scale(0);
    animation: ripple-grow .45s ease-out forwards;
    pointer-events: none;
}
@keyframes ripple-grow {
    to { transform: scale(2.6); opacity: 0; }
}

/* 手机底部导航：桌面隐藏，移动端由 mobile.css 显示 */
.bottom-nav { display: none; }

/* Toast / 消息 */
.toast {
    position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
    background: rgba(30, 35, 60, .92); color: #fff;
    padding: 10px 20px; border-radius: 10px; font-size: 14px;
    opacity: 0; pointer-events: none; transition: all .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.msg.error { background: #fde8e8; color: #c0392b; }
.msg.ok { background: #e8f8ef; color: #1e8449; }

/* 通用页面（登录/注册/安装/后台/大厅/分享/收集） */
.page-narrow { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.page-narrow .card {
    background: #fff; border-radius: 14px; padding: 32px 28px;
    width: 100%; max-width: min(460px, 92vw); box-shadow: 0 10px 30px rgba(30, 40, 90, .12);
}
.page-narrow h1 { font-size: 22px; text-align: center; margin-bottom: 20px; }
.page-narrow h3 { font-size: 16px; margin: 20px 0 10px; }
.page-narrow input[type="text"], .page-narrow input[type="password"], .page-narrow input[type="search"] {
    width: 100%; padding: 11px 14px; margin-bottom: 12px;
    border: 1px solid #dfe4f2; border-radius: 8px; font-size: 15px; outline: none;
}
.page-narrow input:focus { border-color: #4f6ef2; }
.page-narrow button, .btn {
    width: 100%; padding: 11px; border: none; border-radius: 8px;
    background: #4f6ef2; color: #fff; font-size: 15px; cursor: pointer;
    text-align: center; text-decoration: none; display: inline-block;
}
.btn.ghost { background: #fff; color: #4f6ef2; border: 1px solid #4f6ef2; }
.btn-row { display: flex; gap: 10px; margin: 16px 0; }
.btn-row .btn { flex: 1; }
.tip { font-size: 13px; color: #8a94a6; margin-top: 14px; text-align: center; }
.tip a { color: #4f6ef2; text-decoration: none; }
.tip a:hover { text-decoration: underline; }
.log { margin: 10px 0 16px 20px; font-size: 13px; color: #4a5568; }
.addr { background: #f7f8ff; border-radius: 10px; padding: 14px; margin: 14px 0; }
.addr pre { background: #1e2340; color: #9fe8a8; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 13px; margin: 8px 0; }
.addr code { font-family: Menlo, Consolas, monospace; }
.check { font-size: 14px; margin-bottom: 12px; display: block; }

/* 后台统计 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.stats div { background: #f7f8ff; border-radius: 10px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 20px; color: #4f6ef2; }
.stats span { font-size: 12px; color: #8a94a6; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 8px 10px; border-bottom: 1px solid #eef1f7; text-align: left; white-space: nowrap; }

/* 大厅 */
.lobby-list { max-height: 420px; overflow-y: auto; margin-bottom: 12px; }
.lobby-item { border-bottom: 1px solid #eef1f7; padding: 10px 4px; }
.lobby-item b { color: #4f6ef2; margin-right: 8px; }
.lobby-item span { font-size: 12px; color: #98a1b3; }
.lobby-item p { margin-top: 4px; font-size: 14px; word-break: break-all; }
.send-row { display: flex; gap: 8px; }
.send-row input { flex: 1; padding: 10px 14px; border: 1px solid #dfe4f2; border-radius: 8px; font-size: 14px; outline: none; }
.send-row button { width: auto; padding: 10px 22px; }

/* ===== 平板与小窗过渡：921–1200px ===== */
@media (min-width: 921px) and (max-width: 1200px) {
    .main { max-width: 100%; }
    .page-narrow .card { max-width: min(520px, 90vw); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .topbar-row2 { max-width: 420px; }
}

/* ===== 大屏：≥1600px 放得更开 ===== */
@media (min-width: 1600px) {
    .main { max-width: 1280px; }
    .page-narrow .card { max-width: 520px; }
}

/* ===== v6 新增：存储用量条 ===== */
.storage-bar { margin-top: 10px; }
.storage-bar .storage-track { height: 8px; background: #eef1f7; border-radius: 999px; overflow: hidden; }
.storage-bar .storage-fill { height: 100%; width: 0; background: linear-gradient(90deg, #4f6ef2, #7b5cf0); border-radius: 999px; transition: width .4s ease; }
.storage-bar .storage-text { font-size: 12px; color: #8a94a6; margin-top: 4px; }

/* ===== v6 新增：预览灯箱 ===== */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(15, 18, 30, .82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox-inner { max-width: min(92vw, 960px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox-inner img, .lightbox-inner video { max-width: 100%; max-height: 76vh; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.lightbox-inner audio { width: min(80vw, 420px); }
.lightbox-inner iframe { width: min(92vw, 860px); height: 76vh; border: none; border-radius: 10px; background: #fff; }
.lightbox-close { padding: 8px 22px; border: none; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 14px; cursor: pointer; }

/* ===== v6 新增：深色模式 ===== */
html[data-theme="dark"] body { background: #12141c; color: #d7dbe6; }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .fcard,
html[data-theme="dark"] .stats div,
html[data-theme="dark"] .lobby-item,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .tools-drawer { background: #1c1f2b; border-color: #2a2e3d; color: #d7dbe6; }
html[data-theme="dark"] .fcard .name,
html[data-theme="dark"] .lobby-item b { color: #e8ebf5; }
html[data-theme="dark"] .fcard .meta,
html[data-theme="dark"] .stats span,
html[data-theme="dark"] .lobby-item span,
html[data-theme="dark"] .storage-bar .storage-text { color: #8a93a8; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select,
html[data-theme="dark"] .send-row input { background: #232736; border-color: #333850; color: #d7dbe6; }
html[data-theme="dark"] .table-wrap th, html[data-theme="dark"] .table-wrap td { border-color: #2a2e3d; }
html[data-theme="dark"] .storage-bar .storage-track { background: #2a2e3d; }
html[data-theme="dark"] .fcard button, html[data-theme="dark"] .fcard .ops a { background: #232736; color: #c3c9da; }
html[data-theme="dark"] .fcard button:hover, html[data-theme="dark"] .fcard .ops a:hover { background: #2e3448; }
html[data-theme="dark"] .bottom-nav { background: #1c1f2b; border-top-color: #2a2e3d; }
html[data-theme="dark"] .bottom-nav a { color: #8a93a8; }
html[data-theme="dark"] .bottom-nav a.active { color: #7b8cf5; }
html[data-theme="dark"] .page-narrow { background: #12141c; }
html[data-theme="dark"] .toast { background: rgba(40, 44, 60, .96); color: #e8ebf5; }

/* ===== v8：灯箱打开动画 ===== */
.lightbox { animation: lbIn .18s ease; }
.lightbox-inner { animation: lbZoom .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { transform: scale(.9); } to { transform: scale(1); } }

/* ===== v9：列表头排序 / 缩略图 / 骨架屏 / 上传进度 / 下拉刷新 ===== */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.list-head .crumbs { margin-bottom: 0; }
.sort-btn {
    border: 1px solid #e2e7f5; background: #fff; color: #4f6ef2;
    padding: 6px 12px; border-radius: 999px; font-size: 13px; cursor: pointer;
    white-space: nowrap; transition: background .15s ease;
}
.sort-btn:active { background: #eef1ff; }

/* 图片缩略图：卡片顶部圆角大图，失败回退图标 */
.fcard .thumb {
    position: relative; margin: -16px -16px 0; border-radius: 12px 12px 0 0;
    overflow: hidden; background: #f2f4fb; aspect-ratio: 16 / 10;
}
.fcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard .thumb .thumb-fallback {
    position: absolute; inset: 0; display: none;
    align-items: center; justify-content: center; font-size: 34px;
}
.fcard .thumb.thumb-fail .thumb-fallback { display: flex; }

/* 骨架屏：加载时的占位卡片 */
.fcard.skeleton { pointer-events: none; }
.fcard.skeleton .sk-thumb {
    margin: -16px -16px 0; height: 110px; border-radius: 12px 12px 0 0;
    background: linear-gradient(100deg, #eef1f8 40%, #f7f9ff 50%, #eef1f8 60%);
    background-size: 200% 100%; animation: sk-shine 1.2s infinite;
}
.fcard.skeleton .sk-line {
    height: 13px; border-radius: 6px;
    background: linear-gradient(100deg, #eef1f8 40%, #f7f9ff 50%, #eef1f8 60%);
    background-size: 200% 100%; animation: sk-shine 1.2s infinite;
}
.fcard.skeleton .sk-line.w70 { width: 70%; }
.fcard.skeleton .sk-line.w45 { width: 45%; }
@keyframes sk-shine { to { background-position: -200% 0; } }

/* 上传进度条：悬浮在底部导航上方 */
.upload-progress {
    position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 10px);
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 32px));
    background: #fff; border-radius: 12px; padding: 12px 16px;
    box-shadow: 0 8px 28px rgba(30, 40, 90, .18); z-index: 90;
}
.upload-progress .up-info { display: flex; justify-content: space-between; font-size: 13px; color: #4a5468; margin-bottom: 8px; gap: 10px; }
.upload-progress .up-info span:last-child { color: #4f6ef2; font-weight: 600; }
.upload-progress .up-info span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress .up-track { height: 6px; border-radius: 3px; background: #eef1f8; overflow: hidden; }
.upload-progress .up-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #4f6ef2, #6a8bff); transition: width .2s ease; }

/* 下拉刷新指示器 */
.pull-indicator {
    position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; transform: translate(-50%, -42px); opacity: 0;
    pointer-events: none; z-index: 95;
    transition: transform .18s ease, opacity .18s ease;
    box-shadow: 0 5px 18px rgba(30, 40, 90, .18), 0 1px 0 rgba(255,255,255,.8) inset;
    border: 1px solid #e7e9f4;
}
.pull-indicator .pull-ring {
    width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box;
    border: 3px solid #4f6ef2; border-right-color: transparent;
    transform: rotate(0deg); transition: transform .05s linear;
}
.pull-indicator.armed .pull-ring { border-right-color: #4f6ef2; }
.pull-indicator.refreshing .pull-ring {
    animation: pull-spin .75s linear infinite;
    border-right-color: transparent;
}
@keyframes pull-spin { to { transform: rotate(360deg); } }

/* 深色模式适配 */
html[data-theme="dark"] .sort-btn { background: #232736; border-color: #2e3448; color: #8fa0ff; }
html[data-theme="dark"] .fcard .thumb { background: #1d2130; }
html[data-theme="dark"] .fcard.skeleton .sk-thumb,
html[data-theme="dark"] .fcard.skeleton .sk-line {
    background: linear-gradient(100deg, #232736 40%, #2b3044 50%, #232736 60%);
    background-size: 200% 100%;
}
html[data-theme="dark"] .upload-progress { background: #232736; }
html[data-theme="dark"] .upload-progress .up-info { color: #c3c9da; }
html[data-theme="dark"] .upload-progress .up-track { background: #1a1e2c; }

/* ===== v11：个人中心 + 管理后台 ===== */
/* 个人中心资料卡 */
.profile-main { max-width: 640px; }
.profile-card {
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0);
    color: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 8px 24px rgba(79, 110, 242, .28);
}
.profile-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,.24); border: 2px solid rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700; flex: 0 0 auto;
}
.profile-nick { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.nick-edit { background: rgba(255,255,255,.2); border: none; border-radius: 6px; padding: 2px 6px; cursor: pointer; font-size: 12px; }
.profile-user { font-size: 13px; opacity: .85; margin-top: 2px; }
.profile-level { font-size: 13px; margin-top: 6px; background: rgba(255,255,255,.18); display: inline-block; padding: 3px 10px; border-radius: 999px; }

.profile-storage { background: #fff; border-radius: 12px; padding: 14px 16px; margin-top: 12px; box-shadow: 0 2px 8px rgba(30,40,90,.06); }
.ps-row { display: flex; justify-content: space-between; font-size: 13px; color: #4a5468; margin-bottom: 8px; }
.ps-track { height: 8px; border-radius: 4px; background: #eef1f8; overflow: hidden; }
.ps-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f6ef2, #7a5cf0); }

/* 菜单组 */
.menu-group { background: #fff; border-radius: 14px; margin-top: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(30,40,90,.06); }
.menu-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 15px 16px; border: none; background: transparent;
    font-size: 15px; color: #333a4d; cursor: pointer; text-decoration: none;
    border-bottom: 1px solid #f2f4fa; text-align: left;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .m-arrow { margin-left: auto; color: #c0c7d6; font-size: 18px; }
.menu-item:active { background: #f5f6ff; }
.menu-item.danger { color: #e05252; }

/* 底部弹层面板（分享/签到/改密码） */
.panel { position: fixed; inset: 0; z-index: 200; background: rgba(15,18,30,.5); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .18s ease; }
.panel-card {
    background: #fff; width: min(560px, 100%); max-height: 78vh;
    border-radius: 18px 18px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto; animation: slideUp .24s cubic-bezier(.2,.8,.3,1);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.panel-close { border: none; background: #f2f4fa; border-radius: 50%; width: 32px; height: 32px; font-size: 14px; cursor: pointer; color: #6a7389; }
.panel-tip { color: #98a1b3; font-size: 13px; line-height: 1.7; }
.panel-card input[type="password"], .panel-card input[type="text"] {
    width: 100%; min-height: 46px; margin-bottom: 10px;
    border: 1px solid #eef1f7; border-radius: 10px; padding: 10px 14px; font-size: 15px;
}
.panel-btn {
    width: 100%; min-height: 46px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff;
    font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 4px;
}

/* 我的分享行 */
.share-row { border-bottom: 1px solid #f2f4fa; padding: 12px 0; }
.share-row:last-child { border-bottom: none; }
.share-name { font-size: 14px; font-weight: 600; word-break: break-all; }
.share-meta { font-size: 12px; color: #98a1b3; margin: 4px 0 8px; }
.share-ops { display: flex; gap: 8px; }
.share-ops button { border: 1px solid #e2e7f5; background: #f7f8ff; color: #4f6ef2; padding: 6px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.share-ops button.warn { color: #e05252; border-color: #f3d7d7; background: #fdf5f5; }

/* 签到格子 */
.checkin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.checkin-cell { border-radius: 10px; padding: 8px 4px; text-align: center; background: #f5f6fa; }
.checkin-cell.on { background: #eef1ff; color: #4f6ef2; }
.checkin-cell b { display: block; font-size: 12px; }
.checkin-cell span { font-size: 11px; opacity: .8; }

/* 管理后台 */
.admin-main { max-width: 860px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button {
    border: 1px solid #e2e7f5; background: #fff; color: #4a5568;
    padding: 9px 16px; border-radius: 999px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.admin-tabs button.active { background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79,110,242,.28); }
.stats .wide { grid-column: span 2; }
.tag-warn { color: #e0852a; font-weight: 600; }
.dim { color: #98a1b3; text-align: center; }
#userTable td small { display: block; color: #98a1b3; font-size: 11px; }
.row-more, .row-del {
    border: 1px solid #e2e7f5; background: #f7f8ff; color: #4f6ef2;
    padding: 6px 14px; border-radius: 8px; font-size: 12px; cursor: pointer; min-height: 32px;
}
.row-del { color: #e05252; border-color: #f3d7d7; background: #fdf5f5; }
.admin-pane input[type="search"] {
    width: 100%; min-height: 42px; margin-bottom: 10px;
    border: 1px solid #eef1f7; border-radius: 10px; padding: 8px 14px; font-size: 15px;
}

/* 深色模式：v11 组件 */
html[data-theme="dark"] .profile-card { box-shadow: 0 8px 24px rgba(0,0,0,.4); }
html[data-theme="dark"] .profile-storage, html[data-theme="dark"] .menu-group { background: #1c1f2b; }
html[data-theme="dark"] .ps-row { color: #c3c9da; }
html[data-theme="dark"] .ps-track { background: #232736; }
html[data-theme="dark"] .menu-item { color: #d7dbe6; border-bottom-color: #262b3d; }
html[data-theme="dark"] .menu-item:active { background: #232736; }
html[data-theme="dark"] .panel { background: rgba(0,0,0,.65); }
html[data-theme="dark"] .panel-card { background: #1c1f2b; }
html[data-theme="dark"] .panel-head { color: #e8ebf5; }
html[data-theme="dark"] .panel-close { background: #232736; color: #c3c9da; }
html[data-theme="dark"] .panel-card input { background: #232736; border-color: #333850; color: #d7dbe6; }
html[data-theme="dark"] .share-row { border-bottom-color: #262b3d; }
html[data-theme="dark"] .share-ops button { background: #232736; border-color: #333850; color: #8fa0ff; }
html[data-theme="dark"] .share-ops button.warn { color: #ff8a8a; border-color: #4a2e2e; background: #2a1d1d; }
html[data-theme="dark"] .checkin-cell { background: #232736; }
html[data-theme="dark"] .checkin-cell.on { background: #26305a; color: #8fa0ff; }
html[data-theme="dark"] .admin-tabs button { background: #1c1f2b; border-color: #2a2e3d; color: #c3c9da; }
html[data-theme="dark"] .admin-tabs button.active { background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff; }
html[data-theme="dark"] .row-more { background: #232736; border-color: #333850; color: #8fa0ff; }
html[data-theme="dark"] .row-del { background: #2a1d1d; border-color: #4a2e2e; color: #ff8a8a; }
html[data-theme="dark"] .admin-pane input[type="search"] { background: #232736; border-color: #333850; color: #d7dbe6; }

/* ===== v12：面板化交互 + 布局补全 ===== */
/* 列表头右侧按钮组 */
.list-head-right { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.sort-btn.danger-btn { color: #e05252; border-color: #f3d7d7; background: #fdf5f5; }
.sort-btn.danger-btn:active { background: #f7e3e3; }

/* 表单字段（面板内） */
.field-label { display: block; font-size: 13px; color: #6a7389; margin: 10px 0 6px; }
.field-input {
    width: 100%; min-height: 46px; margin-bottom: 4px;
    border: 1px solid #eef1f7; border-radius: 10px; padding: 10px 14px;
    font-size: 15px; outline: none; font-family: inherit; resize: vertical;
}
.field-input:focus { border-color: #4f6ef2; }
.panel-btn.danger { background: linear-gradient(135deg, #e05252, #c73e3e); }

/* 文件夹/操作选择列表 */
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; margin-bottom: 10px; }
.pick-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 46px; padding: 8px 14px;
    border: 1px solid #eef1f7; border-radius: 10px; background: #fafbff;
    font-size: 14px; color: #333a4d; cursor: pointer; text-align: left;
}
.pick-item.on { border-color: #4f6ef2; background: #eef1ff; color: #4f6ef2; font-weight: 600; }
.pick-item.danger { color: #e05252; }
/* v1.4.3：所有 VIP 功能统一金色文字 */
.pick-item.vip-gold { color: #b17a12; background: #fffaf0; border-color: #ecd8a6; }
.pick-item.vip-gold .pick-name { color: #b17a12; font-weight: 650; }
.pick-item.vip-gold .pick-ico { filter: sepia(0.35) saturate(1.15); }
.pick-ico { flex: 0 0 auto; font-size: 17px; }
.pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 天数选择段 */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.seg button {
    min-height: 42px; border: 1px solid #eef1f7; border-radius: 10px;
    background: #fafbff; color: #4a5568; font-size: 14px; cursor: pointer;
}
.seg button.on { border-color: #4f6ef2; background: #eef1ff; color: #4f6ef2; font-weight: 600; }

/* 分享结果 */
.share-done input {
    width: 100%; min-height: 44px; margin-bottom: 8px;
    border: 1px dashed #c9d2f0; border-radius: 10px; padding: 8px 12px;
    font-size: 13px; color: #4f6ef2; background: #f7f8ff;
}

/* 文件夹/普通图标头：与图片缩略图同尺寸对齐 */
.fcard .thumb.thumb-folder, .fcard .thumb.thumb-plain {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 10; font-size: 40px;
    background: linear-gradient(135deg, #eef1ff, #f3efff);
}
.fcard .thumb.thumb-plain { background: #f2f4fb; }

/* 灯箱：文件名 + 左右切换 */
.lightbox-cap {
    color: rgba(255,255,255,.88); font-size: 13px;
    max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    width: 48px; height: 64px; border: none; border-radius: 12px;
    background: rgba(255,255,255,.14); color: #fff; font-size: 30px;
    cursor: pointer; z-index: 1000;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav:active { background: rgba(255,255,255,.28); }

/* 深色模式：v12 组件 */
html[data-theme="dark"] .field-input { background: #232736; border-color: #333850; color: #d7dbe6; }
html[data-theme="dark"] .field-label { color: #8a93a8; }
html[data-theme="dark"] .pick-item { background: #1c2030; border-color: #2a2e3d; color: #d7dbe6; }
html[data-theme="dark"] .pick-item.on { background: #26305a; border-color: #4f6ef2; color: #8fa0ff; }
html[data-theme="dark"] .pick-item.vip-gold { background: #2a2418; border-color: #443821; color: #e6c15a; }
html[data-theme="dark"] .pick-item.vip-gold .pick-name { color: #e6c15a; }
html[data-theme="dark"] .pick-item.danger { color: #ff8a8a; }
html[data-theme="dark"] .seg button { background: #1c2030; border-color: #2a2e3d; color: #c3c9da; }
html[data-theme="dark"] .seg button.on { background: #26305a; border-color: #4f6ef2; color: #8fa0ff; }
html[data-theme="dark"] .share-done input { background: #1c2030; border-color: #3a4468; color: #8fa0ff; }
html[data-theme="dark"] .fcard .thumb.thumb-folder { background: linear-gradient(135deg, #232745, #2b2340); }
html[data-theme="dark"] .fcard .thumb.thumb-plain { background: #1d2130; }
html[data-theme="dark"] .sort-btn.danger-btn { background: #2a1d1d; border-color: #4a2e2e; color: #ff8a8a; }

/* ===== v13：按类型分色图标块（图片蓝/视频紫/音频粉/文档橙/笔记绿/压缩灰紫） ===== */
.fcard .thumb.thumb-plain.type-image { background: linear-gradient(135deg, #e8f0ff, #d6e4ff); }
.fcard .thumb.thumb-plain.type-video { background: linear-gradient(135deg, #f0e8ff, #e2d6ff); }
.fcard .thumb.thumb-plain.type-audio { background: linear-gradient(135deg, #ffe8f3, #ffd6e8); }
.fcard .thumb.thumb-plain.type-doc { background: linear-gradient(135deg, #fff1e2, #ffe4c8); }
.fcard .thumb.thumb-plain.type-note { background: linear-gradient(135deg, #e5f8ec, #ccf0da); }
.fcard .thumb.thumb-plain.type-app { background: linear-gradient(135deg, #e7f8ef, #d2f1e1); }
.fcard .thumb.thumb-plain.type-archive { background: linear-gradient(135deg, #f1eefb, #e4def8); }
.fcard .thumb.thumb-plain.type-pdf { background: linear-gradient(135deg, #ffe9e9, #ffd9d9); }
.fcard .thumb.thumb-plain.type-sheet { background: linear-gradient(135deg, #e9f7ee, #d5f0df); }
.fcard .thumb.thumb-plain.type-slide { background: linear-gradient(135deg, #fff0e4, #ffe2cc); }
.fcard .thumb.thumb-plain.type-code { background: linear-gradient(135deg, #e9eefc, #dbe3fb); }
.fcard .thumb.thumb-plain.type-text { background: linear-gradient(135deg, #eef2f7, #e0e7f0); }
.fcard .thumb.thumb-folder { background: linear-gradient(135deg, #fff4dd, #ffe9c2); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-image { background: linear-gradient(135deg, #26305a, #223a6e); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-video { background: linear-gradient(135deg, #3a2a5e, #452a6e); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-audio { background: linear-gradient(135deg, #5e2a44, #6e2a52); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-doc { background: linear-gradient(135deg, #5e4326, #6e522a); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-note { background: linear-gradient(135deg, #1f5236, #26613e); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-app { background: linear-gradient(135deg, #1d4e38, #236046); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-archive { background: linear-gradient(135deg, #3c345e, #4a3f72); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-pdf { background: linear-gradient(135deg, #5e2a2a, #6e3030); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-sheet { background: linear-gradient(135deg, #1d4e35, #236043); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-slide { background: linear-gradient(135deg, #5e4226, #6e502a); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-code { background: linear-gradient(135deg, #26305a, #2d3d70); }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-text { background: linear-gradient(135deg, #2b3444, #344156); }
html[data-theme="dark"] .fcard .thumb.thumb-folder { background: linear-gradient(135deg, #5e4a26, #6e5a2a); }

/* ===== v13：超长文件名不再撑破布局 ===== */
/* 网格卡片最小宽度归零，内容再长也不把列撑宽 */
.grid > .fcard { min-width: 0; overflow: hidden; }
.fcard .name { max-width: 100%; }
/* 底部面板标题过长时省略，不顶坏圆角 */
.panel-head { gap: 10px; }
.panel-head > span:first-child {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel-head .panel-close { flex: 0 0 auto; }
/* 面包屑过长省略 */
.list-head .crumbs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== v14：全站深度视觉优化 ===== */
/* --- 认证页（登录/注册）：渐变背景 + 品牌头 + 图标输入框 --- */
.auth-page {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #eef1ff 0%, #f6f2ff 55%, #f2f4f8 100%);
}
.auth-page::before, .auth-page::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: .55; pointer-events: none;
}
.auth-page::before { width: 360px; height: 360px; background: #b9c6ff; top: -90px; right: -90px; }
.auth-page::after { width: 300px; height: 300px; background: #ddc9ff; bottom: -70px; left: -80px; }
.auth-card { position: relative; z-index: 1; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 6px; text-align: center; }
.auth-logo {
    width: 64px; height: 64px; border-radius: 20px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 30px;
    box-shadow: 0 12px 26px rgba(79, 110, 242, .35);
}
.auth-brand h1 { border: none; padding: 0; margin: 0; }
.auth-sub { font-size: 13px; color: #8a94a6; text-align: center; margin: -12px 0 18px; }
.auth-card input[type="text"], .auth-card input[type="password"] {
    background-repeat: no-repeat; background-position: 14px center; background-size: 18px 18px;
    padding-left: 42px;
}
.auth-card input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5aec2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}
.auth-card input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5aec2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .auth-page { background: linear-gradient(160deg, #171a26 0%, #14161f 100%); }
html[data-theme="dark"] .auth-page::before { background: #2a3560; opacity: .5; }
html[data-theme="dark"] .auth-page::after { background: #3a2a5e; opacity: .5; }

/* --- 搜索框放大镜 --- */
.topbar-row2 input {
    padding-left: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d88a0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 12px center; background-size: 17px 17px;
}
html[data-theme="dark"] .topbar-row2 input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a93a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 12px center; background-size: 17px 17px;
}

/* --- 列表类型图标：SVG 线性图标替代 emoji --- */
.fcard .thumb.thumb-plain svg, .fcard .thumb.thumb-folder svg,
.fcard .thumb .thumb-fallback svg { width: 26px; height: 26px; display: block; }
.fcard .thumb.thumb-plain.type-image { color: #4f7df0; }
.fcard .thumb.thumb-plain.type-video { color: #8b6cf0; }
.fcard .thumb.thumb-plain.type-audio { color: #f06fa8; }
.fcard .thumb.thumb-plain.type-doc { color: #f0a35b; }
.fcard .thumb.thumb-plain.type-note { color: #3fb27f; }
.fcard .thumb.thumb-plain.type-app { color: #22a06b; }
.fcard .thumb.thumb-plain.type-archive { color: #7b6bd6; }
.fcard .thumb.thumb-plain.type-pdf { color: #e05b5b; }
.fcard .thumb.thumb-plain.type-sheet { color: #2f9e63; }
.fcard .thumb.thumb-plain.type-slide { color: #e08a45; }
.fcard .thumb.thumb-plain.type-code { color: #4f6ef2; }
.fcard .thumb.thumb-plain.type-text { color: #6b7a90; }
.fcard .thumb.thumb-folder { color: #e8a23b; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-image { color: #8fa8ff; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-video { color: #b39aff; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-audio { color: #ff9ec6; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-doc { color: #ffc38a; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-note { color: #7ddfae; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-app { color: #79e0b2; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-archive { color: #c1b3ff; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-pdf { color: #ff9e9e; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-sheet { color: #7fe0a8; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-slide { color: #ffb87a; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-code { color: #9db2ff; }
html[data-theme="dark"] .fcard .thumb.thumb-plain.type-text { color: #b9c6da; }
html[data-theme="dark"] .fcard .thumb.thumb-folder { color: #ffd07e; }

/* --- 空状态：线性插图 --- */
.empty .empty-ico { display: flex; justify-content: center; margin-bottom: 14px; }
.empty .empty-ico svg { width: 68px; height: 68px; color: #b9c2d8; animation: emptyFloat 2.6s ease-in-out infinite; }
html[data-theme="dark"] .empty .empty-ico svg { color: #4a5470; }

/* --- 后台统计数字渐变 + 表格行悬停 --- */
.stats b {
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.table-wrap tbody tr { transition: background .15s ease; }
.table-wrap tbody tr:hover { background: #f8f9ff; }
html[data-theme="dark"] .table-wrap tbody tr:hover { background: #20242f; }

/* --- 头像描边 --- */
.avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }

/* ===== v15 触控流水反馈层 ===== */
/* 弹性回弹：按下缩小、松手带过冲弹回 */
button, .icon-btn, .btn, .upload-strip, .fcard .ops button, .fcard .ops a, .toolbar button,
.menu-item, .sort-btn, .seg button, .pick-item, .avatar, .tools-drawer button, .tools-drawer a, .tools-drawer label,
.lightbox-close, .lb-nav, .panel-close, .panel-btn, .bottom-nav a, .bottom-nav label {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), filter .2s ease,
        background .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
}
button:active, .icon-btn:active, .btn:active, .upload-strip:active, .fcard .ops button:active, .fcard .ops a:active,
.toolbar button:active, .menu-item:active, .sort-btn:active, .seg button:active, .pick-item:active,
.tools-drawer button:active, .tools-drawer a:active, .tools-drawer label:active,
.lightbox-close:active, .lb-nav:active, .panel-close:active, .panel-btn:active,
.bottom-nav a:active, .bottom-nav label:active {
    transform: scale(.93);
}

/* 文件卡片：按压下沉、松手弹回 */
.fcard { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.fcard:active { transform: scale(.97); }

/* 列表流水入场：卡片/表格行依次浮现 */
@keyframes card-in {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.grid .fcard, .table-wrap tbody tr {
    animation: card-in .45s cubic-bezier(.22,.9,.36,1) backwards;
}
.grid .fcard:nth-child(1), .table-wrap tbody tr:nth-child(1) { animation-delay: .02s; }
.grid .fcard:nth-child(2), .table-wrap tbody tr:nth-child(2) { animation-delay: .06s; }
.grid .fcard:nth-child(3), .table-wrap tbody tr:nth-child(3) { animation-delay: .10s; }
.grid .fcard:nth-child(4), .table-wrap tbody tr:nth-child(4) { animation-delay: .14s; }
.grid .fcard:nth-child(5), .table-wrap tbody tr:nth-child(5) { animation-delay: .18s; }
.grid .fcard:nth-child(6), .table-wrap tbody tr:nth-child(6) { animation-delay: .22s; }
.grid .fcard:nth-child(7), .table-wrap tbody tr:nth-child(7) { animation-delay: .26s; }
.grid .fcard:nth-child(8), .table-wrap tbody tr:nth-child(8) { animation-delay: .30s; }
.grid .fcard:nth-child(9), .table-wrap tbody tr:nth-child(9) { animation-delay: .34s; }
.grid .fcard:nth-child(n+10), .table-wrap tbody tr:nth-child(n+10) { animation-delay: .38s; }

/* 涟漪配色：浅底用品牌色，深底用白色 */
.ripple-brand { background: rgba(79, 110, 242, .42); }

/* 上传条：流光扫过 */
.upload-strip { position: relative; overflow: hidden; }
.upload-strip::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(79, 110, 242, .14), transparent);
    transform: translateX(-130%);
    animation: strip-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes strip-shimmer {
    55%, 100% { transform: translateX(330%); }
}

/* 存储条：流水条纹滚动 */
.storage-fill { position: relative; overflow: hidden; }
.storage-fill::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.28) 0 8px, transparent 8px 18px);
    background-size: 18px 100%;
    animation: fill-flow 1.1s linear infinite;
}
@keyframes fill-flow { to { background-position: 18px 0; } }

/* 分类胶囊：选中渐变浮起，按压缩小 */
.toolbar button.active {
    background: linear-gradient(135deg, #4f6ef2, #7b5cf0);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 110, 242, .35);
}

/* 底部导航：图标点按弹跳 */
.bottom-nav .t-ico, .bottom-nav a, .bottom-nav label { display: inline-block; }
.bottom-nav a:active, .bottom-nav label:active { transform: scale(.92) translateY(-2px); }

/* Toast：弹性滑入 */
.toast { transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }

/* 深色模式适配 */
html[data-theme="dark"] .ripple-brand { background: rgba(143, 168, 255, .45); }
html[data-theme="dark"] .upload-strip::after {
    background: linear-gradient(100deg, transparent, rgba(143, 168, 255, .16), transparent);
}
html[data-theme="dark"] .storage-fill::after {
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.22) 0 8px, transparent 8px 18px);
    background-size: 18px 100%;
}

/* v15 补：深色下分类胶囊与上传条底色 */
html[data-theme="dark"] .toolbar button { background: #232736; border-color: #333850; color: #c3c9da; }
html[data-theme="dark"] .upload-strip { background: #1c2130; border-color: #3a4360; color: #8fa0ff; }

/* ===== v16：个人中心 + 大厅深度改写 ===== */
/* --- 个人中心 Hero --- */
.pf-hero {
    position: relative; overflow: hidden; text-align: center; color: #fff;
    background: linear-gradient(135deg, #4f6ef2 0%, #7a5cf0 60%, #9a5cf0 100%);
    border-radius: 20px; padding: 28px 20px 24px;
    box-shadow: 0 10px 30px rgba(79, 110, 242, .30);
}
.pf-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.pf-orb1 { width: 150px; height: 150px; background: rgba(255,255,255,.14); top: -55px; right: -40px; animation: orb-float 7s ease-in-out infinite; }
.pf-orb2 { width: 95px; height: 95px; background: rgba(255,255,255,.10); bottom: -35px; left: -20px; animation: orb-float 9s ease-in-out infinite reverse; }
@keyframes orb-float { 50% { transform: translateY(-12px); } }
.pf-avatar {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px;
    background: rgba(255,255,255,.22); border: 3px solid rgba(255,255,255,.6);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700;
    box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 8px 20px rgba(0,0,0,.15);
    position: relative; overflow: hidden;
}
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pf-nick { font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pf-user { font-size: 13px; opacity: .85; margin-top: 3px; }
.pf-level {
    display: inline-block; margin-top: 10px; font-size: 13px;
    background: rgba(255,255,255,.2); padding: 4px 14px; border-radius: 999px;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* 统计三卡 */
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pf-stat {
    background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center;
    box-shadow: 0 2px 8px rgba(30, 40, 90, .06);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.pf-stat:hover { transform: translateY(-2px); }
.pf-stat b {
    display: block; font-size: 17px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-stat span { font-size: 12px; color: #98a1b3; }

.pf-storage { background: #fff; border-radius: 14px; padding: 14px 16px; margin-top: 12px; box-shadow: 0 2px 8px rgba(30,40,90,.06); }
.pf-storage .ps-fill { position: relative; overflow: hidden; }
.pf-storage .ps-fill::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(115deg, rgba(255,255,255,.28) 0 8px, transparent 8px 18px);
    background-size: 18px 100%;
    animation: fill-flow 1.1s linear infinite;
}

/* 菜单彩色图标底 */
.menu-item .m-ico {
    width: 32px; height: 32px; border-radius: 9px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.m-ico.ico-blue { background: #eef1ff; }
.m-ico.ico-orange { background: #fff3e6; }
.m-ico.ico-green { background: #e8f8f0; }
.m-ico.ico-purple { background: #f3edff; }
.m-ico.ico-navy { background: #e9edf7; }
.m-ico.ico-red { background: #fdeeee; }
.menu-item.danger .m-ico { background: #fdeeee; }

/* --- 大厅：气泡聊天 --- */
.lb-page { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0; }
.lb-head { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.lb-head h1 { font-size: 20px; }
.lb-head-txt { display: flex; flex-direction: column; }
.lb-sub { font-size: 12px; color: #98a1b3; }
.lb-list { flex: 1; overflow-y: auto; padding: 6px 0 12px; }
.lb-row { display: flex; gap: 10px; margin-bottom: 14px; animation: card-in .4s cubic-bezier(.22,.9,.36,1) backwards; }
.lb-row.mine { flex-direction: row-reverse; }
.lb-ava {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
    background: linear-gradient(135deg, #7a8ff5, #9a7cf0); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; margin-top: 2px;
}
.lb-row.mine .lb-ava { background: linear-gradient(135deg, #4f6ef2, #6a5cf0); }
.lb-bubble {
    max-width: 76%; background: #fff; border-radius: 4px 14px 14px 14px;
    padding: 9px 13px; box-shadow: 0 2px 8px rgba(30, 40, 90, .07);
}
.lb-row.mine .lb-bubble {
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff;
    border-radius: 14px 4px 14px 14px;
}
.lb-info { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.lb-info b { font-size: 12px; color: #4f6ef2; }
.lb-row.mine .lb-info b { color: rgba(255,255,255,.9); }
.lb-info span { font-size: 11px; color: #b3bac9; }
.lb-row.mine .lb-info span { color: rgba(255,255,255,.65); }
.lb-bubble p { font-size: 14px; line-height: 1.55; word-break: break-all; }
.lb-empty { text-align: center; color: #98a1b3; padding: 60px 0; font-size: 15px; line-height: 2; }
.lb-send { padding: 10px 0 16px; border-top: 1px solid #eef1f7; margin-top: 6px; }

/* --- 全局：顶栏毛玻璃 --- */
.topbar {
    background: linear-gradient(135deg, rgba(79, 110, 242, .92), rgba(122, 92, 240, .92));
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* --- v16 深色适配 --- */
html[data-theme="dark"] .pf-stat, html[data-theme="dark"] .pf-storage { background: #1c1f2b; }
html[data-theme="dark"] .pf-stat span { color: #8a93a8; }
html[data-theme="dark"] .m-ico.ico-blue { background: #26305a; }
html[data-theme="dark"] .m-ico.ico-orange { background: #3a2d1d; }
html[data-theme="dark"] .m-ico.ico-green { background: #1d3328; }
html[data-theme="dark"] .m-ico.ico-purple { background: #2f2647; }
html[data-theme="dark"] .m-ico.ico-navy { background: #232b3f; }
html[data-theme="dark"] .m-ico.ico-red, html[data-theme="dark"] .menu-item.danger .m-ico { background: #3a2222; }
html[data-theme="dark"] .lb-bubble { background: #1c1f2b; }
html[data-theme="dark"] .lb-info b { color: #8fa8ff; }
html[data-theme="dark"] .lb-info span { color: #6b7386; }
html[data-theme="dark"] .lb-send { border-top-color: #2a2e3d; }
html[data-theme="dark"] .topbar {
    background: linear-gradient(135deg, rgba(28, 31, 43, .92), rgba(24, 27, 40, .92));
    border-bottom: 1px solid #2a2e3d;
}

/* ===== v17：欢迎横幅 + 最近文件横滑（市面云盘布局） ===== */
.hero-welcome {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(120deg, #4f6ef2 0%, #7a5cf0 55%, #a55cf0 100%);
    border-radius: 18px; padding: 22px 24px; margin-bottom: 14px; color: #fff;
    box-shadow: 0 10px 28px rgba(79, 110, 242, .30);
}
.hw-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hw-orb1 { width: 170px; height: 170px; background: rgba(255,255,255,.13); top: -70px; right: 8%; animation: orb-float 8s ease-in-out infinite; }
.hw-orb2 { width: 100px; height: 100px; background: rgba(255,255,255,.10); bottom: -45px; left: 30%; animation: orb-float 10s ease-in-out infinite reverse; }
.hw-left { position: relative; }
.hw-greet { font-size: 21px; font-weight: 700; letter-spacing: .3px; }
.hw-date { font-size: 13px; opacity: .85; margin-top: 4px; }
.hw-actions { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.hw-btn {
    display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px;
    font-size: 14px; cursor: pointer; text-decoration: none; border: none;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .2s ease;
}
.hw-btn.primary { background: #fff; color: #4f6ef2; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.hw-btn.ghost { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hw-btn:active { transform: scale(.94); }
.hw-btn.primary:active { transform: scale(.94); }

/* 最近文件横滑 */
.recent-strip { margin-bottom: 14px; }
.rs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rs-head b { font-size: 15px; color: #3a4258; }
.rs-more { border: none; background: transparent; color: #4f6ef2; font-size: 13px; cursor: pointer; padding: 4px 6px; }
.rs-row {
    display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rs-card {
    flex: 0 0 128px; min-width: 0; scroll-snap-align: start;
    background: #fff; border-radius: 12px; padding: 10px;
    box-shadow: 0 2px 8px rgba(30, 40, 90, .07); cursor: pointer;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
    animation: card-in .4s cubic-bezier(.22,.9,.36,1) backwards;
}
.rs-card:nth-child(2) { animation-delay: .05s; } .rs-card:nth-child(3) { animation-delay: .1s; }
.rs-card:nth-child(4) { animation-delay: .15s; } .rs-card:nth-child(n+5) { animation-delay: .2s; }
.rs-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(30, 40, 90, .13); }
.rs-thumb {
    width: 108px; height: 72px; border-radius: 8px; overflow: hidden;
    background: #f2f4fa; display: flex; align-items: center; justify-content: center;
}
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-thumb.rs-ico svg { width: 30px; height: 30px; }
.rs-thumb.rs-ico.type-image { color: #4f7df0; } .rs-thumb.rs-ico.type-video { color: #8b6cf0; }
.rs-thumb.rs-ico.type-audio { color: #f06fa8; } .rs-thumb.rs-ico.type-doc { color: #f0a35b; }
.rs-thumb.rs-ico.type-note { color: #3fb27f; }
.rs-thumb.rs-ico.type-app { color: #22a06b; } .rs-thumb.rs-ico.type-archive { color: #7b6bd6; }
.rs-thumb.rs-ico.type-pdf { color: #e05b5b; } .rs-thumb.rs-ico.type-sheet { color: #2f9e63; }
.rs-thumb.rs-ico.type-slide { color: #e08a45; } .rs-thumb.rs-ico.type-code { color: #4f6ef2; }
.rs-thumb.rs-ico.type-text { color: #6b7a90; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-app { color: #79e0b2; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-archive { color: #c1b3ff; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-pdf { color: #ff9e9e; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-sheet { color: #7fe0a8; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-slide { color: #ffb87a; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-code { color: #9db2ff; }
html[data-theme="dark"] .rs-thumb.rs-ico.type-text { color: #b9c6da; }
.rs-name {
    font-size: 12px; font-weight: 600; margin-top: 7px; color: #333a4d;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rs-meta { font-size: 11px; color: #98a1b3; margin-top: 2px; }

/* v17 深色适配 */
html[data-theme="dark"] .hero-welcome {
    background: linear-gradient(120deg, #26305a 0%, #2c2454 55%, #3a2454 100%);
    border: 1px solid #2e3448;
}
html[data-theme="dark"] .hw-btn.primary { background: #eef1ff; color: #26305a; }
html[data-theme="dark"] .rs-head b { color: #d7dbe6; }
html[data-theme="dark"] .rs-card { background: #1c1f2b; }
html[data-theme="dark"] .rs-name { color: #d7dbe6; }
html[data-theme="dark"] .rs-thumb { background: #232736; }

/* ===== v18：大厅气泡方向修复 + 底部导航美化 + 滑动返回 ===== */
/* 大厅页为纵向弹性布局，子元素需撑满整行（覆盖 page-narrow 的 flex-start 收缩） */
.lb-page { align-items: stretch; }
/* 自己的消息：气泡靠右、头像在最右 */
.lb-row.mine { flex-direction: row; justify-content: flex-end; }
.lb-row.mine .lb-ava { order: 2; }
.lb-row.mine .lb-bubble { order: 1; }

/* 边缘滑动返回指示器 */
.swipe-back {
    position: fixed; left: 14px; top: 50%; margin-top: -24px; z-index: 300;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(30, 36, 60, .78); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; line-height: 1; padding-bottom: 4px;
    opacity: 0; pointer-events: none;
    transition: opacity .15s ease;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] .swipe-back { background: rgba(200, 210, 255, .25); color: #e8ebf5; }

/* ===== v23：管理后台概览最近动态 + 用户操作面板 ===== */
.admin-recent { margin-top: 16px; }
.recent-title { font-size: 14px; color: #6a7389; margin: 12px 0 8px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 9px 12px; margin-bottom: 6px;
    background: #f7f8fc; border-radius: 10px; font-size: 13px;
}
.recent-list .rc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2c3247; font-weight: 500; }
.recent-list .rc-meta { flex: 0 0 auto; color: #98a1b3; font-size: 12px; }
html[data-theme="dark"] .recent-list li { background: #1c1f2b; }
html[data-theme="dark"] .recent-list .rc-name { color: #d7dbe6; }
html[data-theme="dark"] .recent-title { color: #8a93a8; }
.admin-pane .panel-btn { display: block; width: 100%; margin-bottom: 10px; }

/* ===== v24：后台布局翻新 + 用户信息卡 + 动作反馈 ===== */
.stats-v24 div { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; }
.stats-v24 .st-ico {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 18px; font-style: normal;
}
.stats-v24 b { display: block; font-size: 19px; line-height: 1.15; }
.stats-v24 span { font-size: 12px; }
.admin-tabs { position: sticky; top: 0; z-index: 30; padding: 8px 0; background: linear-gradient(#f5f6fb, #f5f6fb 88%, transparent); }
html[data-theme="dark"] .admin-tabs { background: linear-gradient(#12141c, #12141c 88%, transparent); }
.admin-pane .table-wrap { background: #fff; border-radius: 14px; padding: 4px 10px; box-shadow: 0 2px 10px rgba(30,40,90,.05); }
.admin-pane .table-wrap tr:not(:first-child) { border-radius: 10px; }
.admin-pane .table-wrap tr:nth-child(odd):not(:first-child) { background: #fafbfe; }
html[data-theme="dark"] .admin-pane .table-wrap { background: #1c1f2b; box-shadow: none; }
html[data-theme="dark"] .admin-pane .table-wrap tr:nth-child(odd):not(:first-child) { background: #20242f; }
.u-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.u-ava {
    flex: 0 0 34px; width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
}
.u-info { min-width: 0; display: flex; flex-direction: column; }
.u-info b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-info small { color: #98a1b3; font-size: 11px; }
.u-lv { display: inline-block; padding: 1px 7px; border-radius: 8px; background: #fff4e5; color: #c07a00; font-size: 11px; font-weight: 600; }
.u-pts { color: #98a1b3; font-size: 11px; }
.u-files { color: #98a1b3; font-size: 11px; }
.tag-admin { display: inline-block; padding: 1px 8px; border-radius: 8px; background: #eef1ff; color: #4f6ef2; font-size: 11px; font-weight: 600; }
html[data-theme="dark"] .u-lv { background: #3a2f1c; color: #e8b45a; }
html[data-theme="dark"] .tag-admin { background: #232a4a; color: #9db1ff; }
.up-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 10px; }
.up-meta div { background: #f5f6fb; border-radius: 10px; padding: 8px 6px; text-align: center; }
.up-meta small { display: block; color: #98a1b3; font-size: 11px; margin-bottom: 2px; }
.up-meta b { font-size: 13px; color: #2c3247; }
html[data-theme="dark"] .up-meta div { background: #232736; }
html[data-theme="dark"] .up-meta b { color: #d7dbe6; }
.panel-card { animation: panelUp .22s ease; }
@keyframes panelUp { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.panel-btn:disabled { opacity: .55; cursor: wait; }
.toast.ok { background: linear-gradient(135deg, #22a06b, #1b8a5a); }
.toast.err { background: linear-gradient(135deg, #e05252, #c73e3e); }

/* ===== v24：首页横幅存储条 ===== */
.hw-storage { margin-top: 10px; max-width: 240px; }
.hw-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,.28); overflow: hidden; }
.hw-track i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #fff, #d9e2ff); transition: width .5s ease; }
.hw-storage-text { display: block; margin-top: 5px; font-size: 11px; color: rgba(255,255,255,.85); }

/* ===== v25：登录/注册全新界面 + 安装页数据库表单 ===== */
.auth-body {
    min-height: 100vh; margin: 0;
    background: linear-gradient(135deg, #4f6ef2 0%, #7a5cf0 55%, #b44df0 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
}
.auth-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.auth-orb.o1 { width: 260px; height: 260px; background: rgba(255,255,255,.14); top: -80px; left: -60px; animation: orb-float 9s ease-in-out infinite; }
.auth-orb.o2 { width: 180px; height: 180px; background: rgba(255,255,255,.10); bottom: -60px; right: -40px; animation: orb-float 11s ease-in-out infinite reverse; }
.auth-orb.o3 { width: 90px; height: 90px; background: rgba(255,255,255,.16); top: 22%; right: 12%; animation: orb-float 7s ease-in-out infinite; }
.auth-wrap { position: relative; z-index: 1; width: min(400px, 92vw); padding: 28px 0; }
.auth-card {
    background: rgba(255,255,255,.96); border-radius: 22px; padding: 30px 26px 22px;
    box-shadow: 0 18px 50px rgba(20,20,70,.35);
    animation: panelUp .3s ease;
}
.auth-card.shake { animation: authShake .4s ease; }
@keyframes authShake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-9px); } 40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; border-radius: 20px; font-size: 30px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff;
    box-shadow: 0 8px 22px rgba(79,110,242,.4); margin-bottom: 10px;
}
.auth-brand h1 { font-size: 22px; margin: 0; color: #23283c; }
.auth-sub { font-size: 13px; color: #98a1b3; margin: 6px 0 0; }
.auth-msg { border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.auth-msg.error { background: #fdeef2; color: #c73e3e; }
.auth-msg.ok { background: #e8f7ef; color: #1b8a5a; }
.field {
    display: flex; align-items: center; gap: 10px;
    background: #f5f6fb; border: 1.5px solid transparent; border-radius: 14px;
    padding: 0 14px; margin-bottom: 12px; transition: border-color .15s, background .15s;
}
.field:focus-within { border-color: #4f6ef2; background: #fff; box-shadow: 0 0 0 3px rgba(79,110,242,.12); }
.f-ico { flex: 0 0 auto; font-size: 15px; }
.field input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    padding: 14px 0; font-size: 15px; color: #23283c;
}
.f-eye {
    flex: 0 0 auto; border: none; background: transparent; cursor: pointer;
    font-size: 15px; opacity: .45; padding: 6px;
}
.f-eye.on { opacity: 1; }
.auth-btn {
    width: 100%; border: none; border-radius: 14px; padding: 14px;
    background: linear-gradient(135deg, #4f6ef2, #7a5cf0); color: #fff;
    font-size: 16px; font-weight: 600; cursor: pointer;
    box-shadow: 0 8px 20px rgba(79,110,242,.35);
    transition: transform .12s, opacity .12s;
}
.auth-btn:active { transform: scale(.97); }
.auth-btn:disabled { opacity: .7; cursor: wait; }
.auth-foot { text-align: center; font-size: 13px; color: #6a7389; margin: 16px 0 0; }
.auth-foot a { color: #4f6ef2; font-weight: 600; text-decoration: none; }
.auth-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 16px; }
.auth-copy a { color: #fff; }
.auth-strength { display: flex; align-items: center; gap: 5px; margin: -4px 0 12px; padding: 0 4px; }
.auth-strength i { flex: 1; height: 4px; border-radius: 3px; background: #e3e6f0; transition: background .2s; }
.auth-strength i.on.s1 { background: #e05252; }
.auth-strength i.on.s2 { background: #e8930c; }
.auth-strength i.on.s3 { background: #22a06b; }
.auth-strength span { flex: 0 0 auto; font-size: 11px; color: #98a1b3; }
/* 安装页数据库选择 */
.db-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.db-opt {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    border: 1.5px solid #e3e6f0; border-radius: 14px; padding: 12px;
    transition: border-color .15s, background .15s;
}
.db-opt:has(input:checked) { border-color: #4f6ef2; background: #eef1ff; }
.db-opt input { accent-color: #4f6ef2; }
.db-opt span { display: flex; flex-direction: column; }
.db-opt b { font-size: 14px; color: #23283c; }
.db-opt small { font-size: 11px; color: #98a1b3; }
#mysqlFields input { margin-bottom: 10px; }
#testBtn { margin: 4px 0 8px; }
html[data-theme="dark"] .auth-card { background: rgba(28,31,43,.97); }
html[data-theme="dark"] .auth-brand h1 { color: #e8ebf5; }
html[data-theme="dark"] .field { background: #232736; }
html[data-theme="dark"] .field input { color: #d7dbe6; }
html[data-theme="dark"] .field:focus-within { background: #232736; }
html[data-theme="dark"] .auth-msg.error { background: #3a2028; color: #ff8f9d; }
html[data-theme="dark"] .auth-msg.ok { background: #1c3328; color: #6fd9a5; }
html[data-theme="dark"] .db-opt { border-color: #333850; }
html[data-theme="dark"] .db-opt:has(input:checked) { background: #232a4a; border-color: #4f6ef2; }
html[data-theme="dark"] .db-opt b { color: #d7dbe6; }

/* ==================== v26：大厅文件分发 + 布局收敛 ==================== */
/* 大厅：📎 发文件按钮 */
.lb-attach {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid #dfe4f2; background: #fff; font-size: 19px; cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.lb-attach:active { transform: scale(.92); border-color: #4f6ef2; }

/* 大厅：文件消息卡片 */
.lb-file {
    display: flex; align-items: center; gap: 10px;
    background: #f5f7ff; border: 1px solid #e3e8fb; border-radius: 12px;
    padding: 10px 12px; margin: 2px 0 6px; max-width: 100%;
}
.lb-row.mine .lb-file { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.lbf-ico { font-size: 26px; flex: 0 0 auto; }
.lbf-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lbf-name { font-size: 13.5px; color: #2b3145; word-break: break-all; }
.lb-row.mine .lbf-name { color: #fff; }
.lbf-size { font-size: 11px; color: #98a1b3; }
.lb-row.mine .lbf-size { color: rgba(255,255,255,.72); }
.lbf-dl {
    flex: 0 0 auto; padding: 7px 14px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
    background: linear-gradient(135deg, #4f6ef2, #6a5cf0); color: #fff !important; text-decoration: none;
}
.lbf-dl:active { transform: scale(.94); }

/* 大厅：发文件上传进度 */
.lb-up { padding: 8px 0 4px; }
.lb-up-txt { display: flex; justify-content: space-between; font-size: 12px; color: #6b7286; margin-bottom: 4px; }
.lb-up-track { height: 6px; border-radius: 3px; background: #e9edf7; overflow: hidden; }
.lb-up-fill { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #4f6ef2, #6a5cf0); transition: width .2s; }

/* 首页：区块间距统一，视觉更整齐 */
.main > * { margin-bottom: 14px; }
.main > .list-head { margin-bottom: 10px; }
.notice { display: flex; align-items: center; gap: 8px; }

html[data-theme="dark"] .lb-file { background: #232736; border-color: #333850; }
html[data-theme="dark"] .lbf-name { color: #d7dbe6; }
html[data-theme="dark"] .lb-attach { background: #232736; border-color: #333850; }
html[data-theme="dark"] .lb-up-track { background: #2b3040; }

/* ===== v27：首页布局收敛 ===== */
/* 顶栏改浅色：紫色只留给欢迎横幅，页面从上到下「白顶栏 → 紫横幅 → 白卡片」层次清晰 */
.topbar {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: #252b3d;
    box-shadow: 0 1px 0 #edf0f7;
}
.topbar .brand { color: #252b3d; }
.topbar .icon-btn { background: #f2f4fa; color: #4a5568; }
.topbar .icon-btn:hover { background: #e6eaf6; }
.topbar .avatar { background: #4f6ef2; color: #fff; }
.topbar-row2 input { background: #f2f4fa; color: #252b3d; }
.topbar-row2 input::placeholder { color: #9aa3b8; }
.tools-drawer button, .tools-drawer label, .tools-drawer a { background: #f2f4fa; color: #4a5568; }
.tools-drawer button:hover, .tools-drawer label:hover, .tools-drawer a:hover { background: #e6eaf6; }

/* 公告并入欢迎横幅：一行半透明小字，不再单独占一层 */
.hw-notice {
    position: relative; flex: 1 1 100%;
    display: flex; align-items: center;
    background: rgba(255,255,255,.16); color: #fff;
    padding: 7px 12px; border-radius: 9px;
    font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 最近文件横滑：隐藏滚动条，减少一根横线 */
.rs-row { scrollbar-width: none; }
.rs-row::-webkit-scrollbar { display: none; }

/* 深色适配 */
html[data-theme="dark"] .topbar {
    background: rgba(28,31,43,.94);
    box-shadow: 0 1px 0 #2a2e3d;
}
html[data-theme="dark"] .topbar .brand { color: #d7dbe6; }
html[data-theme="dark"] .topbar .icon-btn { background: #232736; color: #c3c9da; }
html[data-theme="dark"] .topbar .icon-btn:hover { background: #2a2f42; }
html[data-theme="dark"] .topbar-row2 input { background: #232736; color: #d7dbe6; }
html[data-theme="dark"] .tools-drawer button,
html[data-theme="dark"] .tools-drawer label,
html[data-theme="dark"] .tools-drawer a { background: #232736; color: #c3c9da; }

/* ===== v28：布局C 标签页极简式 ===== */
.toolbar-c { display: block; overflow: visible; margin-bottom: 6px; }
.page-tabs { display: flex; gap: 22px; padding: 2px 16px 0; border-bottom: 1px solid #eef0f6; }
.page-tabs button {
    border: none; background: none; padding: 8px 2px 10px;
    font-size: 15px; color: #8a94a6; border-radius: 0;
    border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.page-tabs button.active {
    color: #252b3d; font-weight: 700; border-bottom-color: #4f6ef2;
    background: none; box-shadow: none;
}
/* 防旧 .toolbar 悬停/选中规则干扰大标签 */
.page-tabs button:hover { background: none; border-color: transparent; box-shadow: none; color: #4a5568; }
.page-tabs button.active, .page-tabs button.active:hover {
    background: none; box-shadow: none; color: #252b3d; font-weight: 700;
    border-bottom-color: #4f6ef2; border-left: none; border-right: none; border-top: none;
}
html[data-theme="dark"] .page-tabs button:hover { background: none; border-color: transparent; box-shadow: none; color: #8a94a6; }
html[data-theme="dark"] .page-tabs button.active, html[data-theme="dark"] .page-tabs button.active:hover {
    background: none; box-shadow: none; color: #d7dbe6; border-bottom-color: #4f6ef2;
}
.type-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 8px; scrollbar-width: none; }
.type-chips::-webkit-scrollbar { display: none; }
.type-chips button {
    border: 1px solid #e5e9f4; background: #fff; color: #4a5568;
    padding: 6px 13px; border-radius: 999px; font-size: 13px;
    white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.type-chips button.active { background: #4f6ef2; border-color: #4f6ef2; color: #fff; font-weight: 600; }
/* 列表模式：全端生效，通栏细行 */
.grid.list-mode { grid-template-columns: 1fr; gap: 0; }
.grid.list-mode .fcard { border-radius: 0; box-shadow: none; border-bottom: 1px solid #f0f2f8; }
/* 深色适配 */
html[data-theme="dark"] .page-tabs { border-bottom-color: #2a2e3d; }
html[data-theme="dark"] .page-tabs button { color: #6b7386; }
html[data-theme="dark"] .page-tabs button.active { color: #d7dbe6; }
html[data-theme="dark"] .type-chips button { background: #232736; border-color: #333850; color: #c3c9da; }
html[data-theme="dark"] .type-chips button.active { background: #26305a; border-color: #4f6ef2; color: #8fa0ff; }
html[data-theme="dark"] .grid.list-mode .fcard { border-bottom-color: #262b3d; }

/* ===== v29：触控反馈强化 ===== */
/* 按压缩放：按钮、大标签、类型小签、图标钮 */
.toolbar-c .page-tabs button, .type-chips button, .icon-btn, .sort-btn,
.seg button, .menu-item, .tools-drawer button, .tools-drawer label, .tools-drawer a,
.bottom-nav a, .bottom-nav label, .btn, .upload-strip {
    transition: transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.toolbar-c .page-tabs button:active, .type-chips button:active, .icon-btn:active,
.sort-btn:active, .seg button:active, .menu-item:active, .tools-drawer button:active,
.tools-drawer label:active, .tools-drawer a:active, .btn:active {
    transform: scale(.94);
}
.bottom-nav a:active, .bottom-nav label:active { transform: scale(.9); }
/* 文件卡片按下：底色轻染，松手即回 */
.grid .fcard:active { background: #f4f5fc; }
html[data-theme="dark"] .grid .fcard:active { background: #222636; }
/* 涟漪更跟手：更快收尾 */
.ripple { animation: ripple-grow .38s ease-out forwards; }
@keyframes ripple-grow { to { transform: scale(2.2); opacity: 0; } }

/* ===== v30：大厅未读红点 + 个人页升级进度 + 大厅新消息提示 ===== */
.bn-ico-wrap { position: relative; display: inline-block; }
.bn-badge {
    position: absolute; top: -4px; right: -9px; width: 9px; height: 9px;
    border-radius: 50%; background: #f5455c; border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(245, 69, 92, .5);
}
html[data-theme="dark"] .bn-badge { border-color: #1c1f2b; }
.tools-drawer .drawer-badge {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #f5455c; margin-left: 4px; vertical-align: 2px;
}
.js-lobby-badge[hidden] { display: none; }
/* 个人页升级进度 */
.pf-upgrade { margin: 12px auto 0; width: min(300px, 86%); text-align: left; }
.pf-up-txt { font-size: 12px; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.18); margin-bottom: 5px; }
.pf-up-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.32); overflow: hidden; }
.pf-up-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ffd86b, #ff9d5c); }
/* 大厅新消息提示 */
.lb-newpill {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 92px; z-index: 60; padding: 7px 16px; border: none; border-radius: 999px;
    background: #4f6ef2; color: #fff; font-size: 13px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(79, 110, 242, .4);
}
.lb-newpill:active { transform: translateX(-50%) scale(.94); }
html[data-theme="dark"] .lb-newpill { background: #3a4fd0; }

/* ---------- v31：大厅管理员标识与删除 ---------- */
.lb-admin {
  flex: none;
  font-size: 10px;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f7b733, #fc913a);
  color: #fff;
  font-weight: 600;
}
.lb-del {
  margin-top: 8px;
  border: none;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  background: rgba(229, 72, 77, .1);
  color: #e5484d;
  cursor: pointer;
}
.lb-del:active { transform: scale(.94); }
html[data-theme="dark"] .lb-del { background: rgba(229, 72, 77, .18); }
.lb-row.mine .lb-del { background: rgba(255,255,255,.16); color: #ffd7d8; }

/* ===== v2.1 APP 更新中心（后台） ===== */
.appup-hero{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#f3f1ff,#fbf9ff);border:1px solid #e9e5ff;border-radius:18px;padding:16px 18px;margin-bottom:12px;box-shadow:0 8px 24px rgba(79,70,229,.06)}
.appup-cover{width:48px;height:48px;border-radius:15px;background:linear-gradient(135deg,#4f6ef2,#7a5cf0);display:flex;align-items:center;justify-content:center;font-size:23px;box-shadow:0 8px 18px rgba(79,110,242,.22);flex:none}
.appup-hero-text{flex:1;min-width:0}.appup-hero-text h3{font-size:17px;color:#14172a;margin-bottom:4px}.appup-hero-text p{font-size:12px;color:#7f869c;line-height:1.5}
.appup-version-badge{font-size:12px;font-weight:700;color:#4f46e5;background:#fff;border:1px solid #e5e0ff;border-radius:99px;padding:6px 12px;white-space:nowrap}
.appup-status{font-size:12px;color:#4a5568;background:#fff;border:1px solid #ececf4;border-radius:12px;padding:10px 14px;margin-bottom:10px;display:flex;align-items:center;gap:7px}
.appup-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.appup-dot.on{background:#22a06b;box-shadow:0 0 0 3px rgba(34,160,107,.12)}
.appup-dot.off{background:#e5484d;box-shadow:0 0 0 3px rgba(229,72,77,.10)}
.appup-current{background:#fff;border:1px solid #ececf4;border-radius:14px;padding:13px 15px;margin-bottom:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;font-size:11px;color:#7f869c}
.appup-current>div{display:flex;flex-direction:column;gap:3px;min-width:0}.appup-current b{font-size:12.5px;color:#14172a;font-weight:600}.appup-current .wide{grid-column:1/-1}.appup-current b.sha{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:10.5px;word-break:break-all;line-height:1.45;color:#5b6176}
.appup-current .appup-link{grid-column:1/-1;justify-self:start;font-size:11px;color:#4f46e5;text-decoration:none;background:#f3f1ff;border:1px solid #e5e0ff;border-radius:9px;padding:6px 10px}
.appup-form{background:#fff;border:1px solid #ececf4;border-radius:16px;padding:16px 18px;box-shadow:0 6px 20px rgba(30,40,90,.04)}
.appup-form>label{display:block;font-size:11px;color:#7f869c;margin-bottom:1px}
.appup-form input[type=number],.appup-form input[type=text],.appup-form textarea{display:block;width:100%;border:1px solid #e1e5f0;border-radius:10px;padding:10px 12px;font-size:13px;color:#14172a;background:#fbfcff;outline:none;margin:5px 0 12px}
.appup-form input:focus,.appup-form textarea:focus{border-color:#b7b1ff;box-shadow:0 0 0 3px rgba(122,92,240,.08)}
.appup-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.appup-notes-label{display:block;font-size:11px;color:#7f869c}
.appup-drop{display:flex;align-items:center;gap:11px;border:1.5px dashed #c9c2ff;background:#f7f5ff;border-radius:13px;padding:12px 14px;cursor:pointer;transition:background .18s,border-color .18s}
.appup-drop:hover{background:#f1efff;border-color:#a99dff}
.appup-drop-icon{width:38px;height:38px;border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;flex:none}
.appup-drop-text{flex:1;min-width:0}.appup-drop-text b{display:block;font-size:12.5px;color:#14172a}.appup-drop-text small{display:block;font-size:10.5px;color:#7f869c;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.appup-drop-btn{font-size:11px;color:#4f46e5;background:#fff;border:1px solid #e0dbff;border-radius:8px;padding:6px 10px;white-space:nowrap}
.appup-actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.appup-actions .appup-publish{flex:1;min-width:150px;border:0;border-radius:11px;background:linear-gradient(135deg,#4f6ef2,#7a5cf0);color:#fff;font-size:13px;font-weight:700;padding:12px 16px;cursor:pointer;box-shadow:0 7px 16px rgba(79,110,242,.22)}
.appup-actions .appup-delete{border:1px solid #f1dada;border-radius:11px;background:#fff7f7;color:#c94b4b;font-size:12px;padding:11px 14px;cursor:pointer}
html[data-theme="dark"] .appup-hero{background:linear-gradient(135deg,#1e1c33,#211f30);border-color:#343049}
html[data-theme="dark"] .appup-hero-text h3{color:#eef0ff}
html[data-theme="dark"] .appup-status,html[data-theme="dark"] .appup-current,html[data-theme="dark"] .appup-form{background:#1c1f2b;border-color:#2c3042}
html[data-theme="dark"] .appup-current b{color:#eef0ff}
html[data-theme="dark"] .appup-form input,html[data-theme="dark"] .appup-form textarea{background:#232736;border-color:#333850;color:#eef0ff}
html[data-theme="dark"] .appup-drop{background:#211f30;border-color:#4b426a}
html[data-theme="dark"] .appup-drop-text b{color:#eef0ff}
html[data-theme="dark"] .appup-drop-btn{background:#26233a;border-color:#4b426a;color:#a89aff}


/* ===== v2.1 首页 APP 更新横幅 ===== */
.app-promo{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,243,255,.92));border:1px solid rgba(255,255,255,.95);border-radius:18px;padding:13px 15px;margin:0 0 14px;box-shadow:0 8px 24px rgba(47,58,120,.07);backdrop-filter:blur(14px)}
.app-promo .ap-ico{width:42px;height:42px;border-radius:14px;background:#f0edff;display:flex;align-items:center;justify-content:center;font-size:19px;flex:none}
.app-promo .ap-text{flex:1;min-width:0}.app-promo .ap-text b{display:block;font-size:13.5px;color:#14172a}.app-promo .ap-text span{display:block;font-size:10.5px;color:#7f869c;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-promo .ap-btn{flex:none;background:linear-gradient(135deg,#4f6ef2,#7a5cf0);color:#fff;text-decoration:none;font-size:11.5px;font-weight:700;border-radius:99px;padding:8px 13px;box-shadow:0 6px 14px rgba(79,110,242,.18)}
html[data-theme="dark"] .app-promo{background:linear-gradient(135deg,#1e2030,#241f36);border-color:#343049}
html[data-theme="dark"] .app-promo .ap-text b{color:#eef0ff}
@media (max-width:640px){.app-promo{padding:11px 12px;border-radius:15px}.app-promo .ap-text span{white-space:normal;line-height:1.45}.app-promo .ap-btn{font-size:10.5px;padding:8px 10px}}

/* v2.2 强制更新复选框 */
.appup-force{display:flex;align-items:flex-start;gap:8px;background:#f7f5ff;border:1px solid #e9e5ff;border-radius:11px;padding:9px 11px;margin:0 0 11px;font-size:11px;color:#7f869c;line-height:1.5;cursor:pointer}
.appup-force input{margin-top:2px;accent-color:#4f46e5;flex:none}
.appup-force b{color:#14172a}

/* ===== v36：管理后台白色化重排 ===== */
body { background: #f7f8fc; }
.admin-topbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #eceef5;
    box-shadow: none;
    backdrop-filter: blur(14px);
}
.admin-main { max-width: 980px; padding-top: 18px; padding-bottom: 40px; }
.admin-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
    background: #fff; border: 1px solid #e9ebf3; border-radius: 20px;
    padding: 20px 22px; margin-bottom: 14px;
}
.admin-head-copy .admin-eyebrow {
    font-size: 10px; letter-spacing: .16em; color: #9aa1b2;
    font-weight: 700; margin-bottom: 6px;
}
.admin-head-copy h1 { font-size: 24px; line-height: 1.2; color: #1c2130; margin: 0 0 6px; }
.admin-head-copy p:not(.admin-eyebrow) { font-size: 12px; color: #858da2; }
.admin-live {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; color: #6c7387; background: #f8f9fc;
    border: 1px solid #e9ebf3; border-radius: 999px; padding: 7px 11px;
    white-space: nowrap;
}
.admin-live i { width: 7px; height: 7px; border-radius: 50%; background: #39a675; display: inline-block; }
.admin-tabs {
    position: static; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px; overflow: visible; padding: 5px;
    background: #fff; border: 1px solid #e9ebf3; border-radius: 16px;
    margin-bottom: 16px;
}
.admin-tabs button {
    border: 0; border-radius: 11px; background: transparent;
    color: #626b80; font-size: 13px; font-weight: 500;
    padding: 10px 6px; min-height: 40px;
}
.admin-tabs button.active {
    background: #f1efff; color: #4f46e5; border-color: transparent;
    box-shadow: none; font-weight: 700;
}
.admin-panel {
    background: #fff; border: 1px solid #e9ebf3; border-radius: 18px;
    padding: 18px 20px; margin-bottom: 14px;
}
.admin-section-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding-bottom: 14px; border-bottom: 1px solid #eff1f6; margin-bottom: 14px;
}
.admin-section-head h3 { font-size: 16px; color: #1c2130; margin: 0 0 4px; }
.admin-section-head p {
    font-size: 11.5px; color: #939bad; margin: 0;
}
.admin-section-note {
    font-size: 10.5px; color: #7b8499; background: #f7f8fc;
    border: 1px solid #eaedf4; border-radius: 999px; padding: 5px 9px;
}
.overview-panel { padding-bottom: 20px; }
.stats-clean {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px; margin: 0;
}
.stats-clean > div {
    display: block; text-align: left; padding: 14px 14px 13px;
    background: #fbfcfe; border: 1px solid #eceff5; border-radius: 14px;
}
.stats-clean .wide { grid-column: auto; }
.stats-clean .stat-label {
    display: block; font-size: 10.5px; color: #9098aa; letter-spacing: .04em;
    margin-bottom: 7px;
}
.stats-clean b {
    display: block; font-size: 22px; line-height: 1.1; color: #202536;
    background: none; -webkit-text-fill-color: #202536;
    margin-bottom: 4px; word-break: break-all;
}
.stats-clean .stat-foot { display: block; font-size: 10.5px; color: #a1a8b8; }
.admin-tip { margin: 0 0 14px; padding: 0 6px; text-align: left; font-size: 11.5px; }
.admin-recent { padding-bottom: 8px; }
.recent-block { margin-top: 2px; }
.recent-block + .recent-block { margin-top: 16px; }
.recent-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: #343b4d; font-weight: 600; margin: 0 0 6px;
}
.recent-title span { font-size: 10.5px; color: #9aa1b2; font-weight: 400; }
.recent-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 2px; margin: 0; background: transparent;
    border-bottom: 1px solid #f0f2f7; border-radius: 0; font-size: 12.5px;
}
.recent-list li:last-child { border-bottom: 0; }
.recent-list .rc-name { color: #2a3042; font-weight: 500; }
.recent-list .rc-meta { color: #929aac; }
.appup-hero {
    background: #fff; border: 1px solid #e9ebf3; border-radius: 18px;
    box-shadow: none;
}
.appup-cover {
    background: #f1efff; border: 1px solid #e5e0ff;
    box-shadow: none;
}
.appup-form { box-shadow: none; border-color: #e9ebf3; }
html[data-theme="dark"] .admin-head,
html[data-theme="dark"] .admin-tabs,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .stats-clean > div { background: #1c1f2b; border-color: #2a2f40; }
html[data-theme="dark"] .admin-head-copy h1,
html[data-theme="dark"] .admin-section-head h3,
html[data-theme="dark"] .stats-clean b,
html[data-theme="dark"] .recent-list .rc-name { color: #eef0f8; }
html[data-theme="dark"] .admin-tabs button { background: transparent; color: #b8c0d4; }
html[data-theme="dark"] .admin-tabs button.active { background: #282444; color: #a79cff; }
html[data-theme="dark"] .recent-list li { border-color: #262b3d; }

/* v3.5 压缩包在线查看 / 崩溃日志 */
.archive-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 2px 10px; font-size:13px; color:#2a3042; }
.archive-head span { font-size:11px; color:#929aac; font-weight:400; }
.archive-list { border:1px solid #eceef5; border-radius:14px; overflow:hidden; background:#fff; }
.archive-row { display:flex; align-items:center; gap:9px; padding:10px 12px; border-bottom:1px solid #f2f4f9; font-size:12.5px; }
.archive-row:last-child { border-bottom:0; }
.archive-ico { width:22px; text-align:center; flex:0 0 auto; }
.archive-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#303748; }
.archive-size { color:#9aa1b2; font-size:11px; flex:0 0 auto; }
.archive-open { color:#5b50d6; text-decoration:none; font-size:11.5px; flex:0 0 auto; }
.archive-dir { cursor:pointer; }
.archive-dir:hover { background:#f8f7ff; }
.archive-up { border:0; background:#f2f0ff; color:#5b50d6; border-radius:8px; font-size:11.5px; padding:6px 10px; margin:0 0 8px; cursor:pointer; }
html[data-theme="dark"] .archive-up { background:#2a2440; color:#c8c0ff; }
.crash-stack { max-height:260px; overflow:auto; white-space:pre-wrap; word-break:break-all; font-size:11px; line-height:1.55; background:#f7f8fc; padding:10px; border-radius:10px; margin:6px 0 0; color:#3a4152; }
html[data-theme="dark"] .archive-list { background:#1c1f2b; border-color:#2a2f40; }
html[data-theme="dark"] .archive-row { border-color:#262b3d; }
html[data-theme="dark"] .archive-name,
html[data-theme="dark"] .archive-head { color:#eef0f8; }
html[data-theme="dark"] .crash-stack { background:#141722; color:#d8deec; }

/* v1.3.0 会员金色标识 / 个人中心会员卡 */
.gold-name, .vip-name { color:#b17a12 !important; }
.vip-gold-badge {
  display:inline-block; font-size:9px; line-height:1; color:#fff; font-weight:800;
  background:linear-gradient(135deg,#f0cd79,#b17a12); border-radius:999px;
  padding:3px 7px; margin-left:5px; vertical-align:1px; letter-spacing:.5px;
  box-shadow:0 2px 7px rgba(177,122,18,.20);
}
.pf-member-card {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin:12px 0 0; padding:15px 16px; border-radius:17px;
  background:linear-gradient(135deg,#fffaf0,#fbf4df); border:1px solid #ecdcb2;
  box-shadow:0 10px 28px rgba(120,88,20,.08);
}
.pf-member-card .pmc-title { font-size:14px; font-weight:800; color:#6f4d0b; }
.pf-member-card .pmc-sub { font-size:10.5px; color:#92794c; margin-top:3px; }
.pf-member-card .pmc-right { text-align:right; flex:0 0 auto; }
.pf-member-card .pmc-right b { display:block; font-size:12px; color:#7a5410; }
.pf-member-card .pmc-right a { display:inline-block; margin-top:5px; font-size:11px; color:#9a6b11; text-decoration:none; background:#fff; border:1px solid #e6d3a4; border-radius:999px; padding:4px 9px; }
.menu-item .ico-gold { background:#fbf1d8 !important; }
html[data-theme="dark"] .pf-member-card { background:#211d14; border-color:#3c3220; }
html[data-theme="dark"] .pf-member-card .pmc-title,
html[data-theme="dark"] .pf-member-card .pmc-right b { color:#e5c16c; }
html[data-theme="dark"] .pf-member-card .pmc-sub { color:#b39a64; }

/* v1.3.3：APK 真实 launcher 图标（网页列表 / 分享页 / 最近文件） */
.real-file-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: transparent;
}
.fcard .thumb.thumb-plain .real-file-icon { width: 70%; height: 70%; margin: 15%; border-radius: 12px; }
.rs-card .rs-thumb .real-file-icon { width: 100%; height: 100%; border-radius: 12px; }
.big-ico.real-app-icon { background: linear-gradient(135deg, #f4f6ff, #e9edff); }
.big-ico .ico-box.real-ico-box { background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.big-ico .ico-box.real-ico-box .real-file-icon { width: 76%; height: 76%; border-radius: 18px; }

/* v1.3.3 后台加速节点 */
.tag-ok { color: #12805c; font-weight: 700; background: #e8f8ef; padding: 3px 8px; border-radius: 999px; }
.node-ops { white-space: nowrap; }
.node-ops button { margin: 2px 3px; padding: 5px 9px; border: 1px solid #dfe4f2; border-radius: 8px; background: #fff; color: #445; font-size: 12px; cursor: pointer; }
.node-ops button:hover { border-color: #6d7cff; color: #3d4ef0; }
.node-ops button.danger { color: #c0392b; border-color: #f0d3d0; }
.node-guide details { margin: 10px 0 14px; border: 1px solid #e8ecf5; border-radius: 12px; padding: 0 14px; background: #fbfcff; }
.node-guide summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: #2c3552; }
.node-guide p, .node-guide li { line-height: 1.85; color: #4a536b; font-size: 13.5px; }
.node-guide ol, .node-guide ul { padding-left: 22px; }
.node-guide code { background: #eef1fb; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; color: #3d4ef0; }
.node-code { overflow: auto; background: #171b2b; color: #dfe6ff; padding: 14px 16px; border-radius: 12px; font: 12.5px/1.7 ui-monospace, Menlo, Consolas, monospace; }

/* v1.3.3：VIP 金色极速上传进度条 */
.upload-progress.vip { border: 1px solid rgba(201,154,46,.28); box-shadow: 0 10px 32px rgba(177,122,18,.16); }
.upload-progress.vip .up-info span { color: #b17a12; }
.upload-progress.vip .up-track { background: #fbf3dd; }
.upload-progress.vip .up-fill { background: linear-gradient(90deg, #c99a2e, #f0d27a 55%, #b8860b); box-shadow: 0 0 12px rgba(201,154,46,.35); }
html[data-theme="dark"] .upload-progress.vip { background: #2a2418; border-color: rgba(230,193,90,.3); }
html[data-theme="dark"] .upload-progress.vip .up-track { background: #3a2f18; }

/* v1.4 VIP 入口：统一金色 */
.vip-drawer-link, .hw-btn.vip, .vip-admin-entry { color:#b8860b !important; }
.hw-btn.vip { border:1px solid #ecd8a6; background:#fffaf0; font-weight:650; }
.hw-btn.vip:hover { background:#fff5dd; border-color:#e2c77d; }
.vip-admin-entry { border:1px solid #ecd8a6; background:#fffaf0; }

/* v1.4.2 大厅已读人数 */
.lb-info .lb-read {
    margin-left: auto;
    flex: none;
    font-size: 10.5px;
    color: #8d95a8;
    background: #f2f4fa;
    border-radius: 999px;
    padding: 2px 7px;
    line-height: 1.55;
}
.lb-row.mine .lb-info .lb-read {
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.16);
}
