/* ==========================================================================
   松松网盘 · 样式（浅色主题）
   ========================================================================== */

:root {
  --bg: #f2f4f8;
  --panel: #ffffff;
  --panel-2: #fafbfd;
  --border: #e4e7ee;
  --border-strong: #d3d8e3;
  --text: #1e2430;
  --text-2: #5b6474;
  --text-3: #8b94a5;
  --accent: #3d63f5;
  --accent-soft: #eaf0ff;
  --accent-2: #7a5cf5;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --ok: #2f9e6f;
  --ok-soft: #e8f7f0;
  --warn: #d98a09;
  --warn-soft: #fdf3e0;
  --shadow-sm: 0 1px 2px rgba(20, 30, 60, .06), 0 1px 3px rgba(20, 30, 60, .04);
  --shadow-md: 0 4px 14px rgba(20, 30, 60, .10);
  --shadow-lg: 0 18px 50px rgba(20, 30, 60, .18);
  --radius: 10px;
  --radius-lg: 14px;
  --topbar-h: 58px;
}

* { box-sizing: border-box; }

/* hidden 属性必须始终生效（否则会被下面的 display:flex 等规则覆盖） */
[hidden] { display: none !important; }

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd3df; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b3bccc; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 通用控件 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px;
  border-radius: 8px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 500;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
  white-space: nowrap;
}
.btn:hover { background: #f6f8fc; border-color: #c3cad8; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #3355e0; border-color: #3355e0; }
.btn.danger { color: var(--danger); border-color: #f2c3c4; background: #fff; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #eef1f7; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.icon { width: 34px; padding: 0; justify-content: center; }
.btn svg { width: 15px; height: 15px; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.input, select.input {
  height: 38px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 99, 245, .13); }
select.input { cursor: pointer; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: #eef1f7; color: var(--text-2);
}
.chip.vip { background: linear-gradient(135deg, #fff1d6, #ffe2b0); color: #9a6100; }
.chip.admin { background: var(--accent-soft); color: #2c46c0; }
.chip.off { background: var(--danger-soft); color: #b3353a; }

/* ---------------- 应用骨架 ---------------- */
.app { display: flex; flex-direction: column; height: 100vh; }

.topbar {
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--border);
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: .2px; flex: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #4b6cf7, #7a5cf5);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 3px 10px rgba(75, 108, 247, .32);
}
.brand .logo svg { width: 17px; height: 17px; }

.searchbox { flex: 1; max-width: 460px; position: relative; }
.searchbox input {
  width: 100%; height: 36px; padding: 0 34px 0 34px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2);
  outline: none; transition: .15s;
}
.searchbox input:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 99, 245, .12); }
.searchbox .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.searchbox .ico svg { width: 15px; height: 15px; }
.searchbox .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: none; }
.searchbox.has-value .clear { display: flex; }

.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.userpill {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px 0 5px;
  border-radius: 20px; border: 1px solid var(--border); background: #fff;
}
.userpill:hover { background: #f6f8fc; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #4b6cf7, #7a5cf5); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
}
.userpill .nm { font-size: 13px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.body { flex: 1; display: flex; min-height: 0; }

/* ---------------- 侧边栏 ---------------- */
.sidebar {
  width: 226px; flex: none; background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 4px; overflow-y: auto;
}
.side-title { font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .6px; padding: 12px 10px 5px; text-transform: uppercase; }
.navitem {
  display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 10px;
  border-radius: 9px; color: var(--text-2); font-weight: 500; cursor: pointer; user-select: none;
  transition: background .13s, color .13s;
}
.navitem:hover { background: #f3f6fc; color: var(--text); }
.navitem.active { background: var(--accent-soft); color: #2c46c0; font-weight: 600; }
.navitem svg { width: 17px; height: 17px; flex: none; }
.navitem .count { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.navitem.active .count { color: #4a63d8; }

.storage-card { margin-top: auto; padding: 12px 11px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--border); }
.storage-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.storage-head b { font-size: 12.5px; color: var(--text); }
.bar { height: 7px; border-radius: 5px; background: #e6eaf3; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4b6cf7, #7a5cf5); transition: width .4s; }
.bar.warn > i { background: linear-gradient(90deg, #f0a92a, #e5484d); }
.storage-foot { margin-top: 7px; font-size: 11.5px; color: var(--text-3); }
.storage-foot .link { color: var(--primary, #3d63f5); font-weight: 600; }

/* ---------------- 积分卡片（侧边栏） ---------------- */
.points-card {
  margin: 10px 0 8px; padding: 11px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef3ff, #f6f2ff);
  border: 1px solid #dfe5fa;
}
.points-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); }
.points-head b { font-size: 17px; color: #3d63f5; font-variant-numeric: tabular-nums; }
.points-btn { width: 100%; justify-content: center; margin: 8px 0 7px; height: 30px; }
.points-note { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.points-note .link { font-size: 11.5px; }

/* ---------------- 积分中心弹窗 ---------------- */
.pt-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; margin-bottom: 12px;
  background: linear-gradient(135deg, #3d63f5, #7a5cf5); color: #fff;
}
.pt-hero .n { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-hero .t { font-size: 12px; opacity: .9; }
.pt-box { border: 1px solid var(--border); border-radius: 11px; padding: 12px 13px; margin-bottom: 12px; background: var(--panel-2); }
.pt-box h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; color: var(--text-2); }
.pt-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.pt-row .g { color: #2f9e6f; font-weight: 700; }
.pt-row .r { color: var(--danger); font-weight: 700; }
.pt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pt-log { max-height: 190px; overflow: auto; font-size: 12px; }
.pt-log div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); color: var(--text-2); }
.pt-log div:last-child { border-bottom: 0; }
.pt-log .d { font-variant-numeric: tabular-nums; font-weight: 700; }
.pt-log .d.plus { color: #2f9e6f; }
.pt-log .d.minus { color: var(--danger); }
.pt-rule { font-size: 12.5px; line-height: 1.85; color: var(--text-2); }
.pt-rule h5 { font-size: 13px; color: var(--text); margin: 12px 0 4px; }
.pt-rule h5:first-child { margin-top: 0; }
.pt-rule ul { padding-left: 18px; }
.pt-rule li { margin-bottom: 2px; }
.pt-rule b { color: #3d63f5; }
.pt-rule .warn { color: #a92f34; font-weight: 600; }

.exp-plan {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1.5px solid var(--line, #e5e8f0);
  border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: 13px;
}
.exp-plan b { margin-left: auto; }
.exp-plan input { accent-color: var(--primary, #3d63f5); }
.exp-plan:has(input:checked) { border-color: var(--primary, #3d63f5); background: rgba(61, 99, 245, .07); }

/* ---------------- 主区 ---------------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.toolbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.crumbs .crumb {
  padding: 5px 8px; border-radius: 7px; color: var(--text-2); font-weight: 500; white-space: nowrap;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.crumbs .crumb:hover { background: #f1f4fa; color: var(--text); }
.crumbs .crumb.last { color: var(--text); font-weight: 600; }
.crumbs .sep { color: #c2c9d8; flex: none; }
.tools { display: flex; align-items: center; gap: 6px; flex: none; }
.seg { display: flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg button { height: 32px; padding: 0 11px; font-size: 12.5px; color: var(--text-2); background: #fff; display: flex; align-items: center; gap: 5px; }
.seg button + button { border-left: 1px solid var(--border-strong); }
.seg button.on { background: var(--accent-soft); color: #2c46c0; font-weight: 600; }
.seg button svg { width: 14px; height: 14px; }

.selbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: var(--accent-soft); border-bottom: 1px solid #d8e2ff;
  font-size: 13px; color: #2c46c0;
}
.selbar b { font-weight: 700; }
.selbar .sp { margin-left: auto; display: flex; gap: 6px; }

.content { flex: 1; overflow: auto; padding: 14px 16px 40px; position: relative; }

.statusbar {
  flex: none; height: 30px; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; border-top: 1px solid var(--border); background: #fff;
  font-size: 12px; color: var(--text-3);
}

/* ---------------- 网格视图 ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: default; user-select: none; position: relative;
  transition: background .13s, border-color .13s;
}
.card:hover { background: #fff; border-color: var(--border); box-shadow: var(--shadow-sm); }
.card.sel { background: var(--accent-soft); border-color: #b9caff; }
.card .thumb { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; }
.card .thumb svg { width: 52px; height: 52px; }
.card .thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.card .nm {
  font-size: 12.5px; text-align: center; line-height: 1.35; color: var(--text);
  word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%;
}
.card .sz { font-size: 11px; color: var(--text-3); }
.card .star { position: absolute; top: 6px; right: 8px; color: #f0b429; display: none; }
.card .star.on { display: block; }
.card .star svg { width: 14px; height: 14px; }

/* ---------------- 列表视图 ---------------- */
.list { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-head, .row {
  display: grid; grid-template-columns: 1fr 130px 100px 165px 90px;
  align-items: center; gap: 10px; padding: 0 14px;
}
.list-head {
  height: 38px; background: var(--panel-2); border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-3); font-weight: 600;
}
.list-head > div { cursor: pointer; display: flex; align-items: center; gap: 4px; user-select: none; }
.list-head > div:hover { color: var(--text-2); }
.row { height: 44px; border-bottom: 1px solid #f0f2f7; cursor: default; user-select: none; }
.row:last-child { border-bottom: none; }
.row:hover { background: #f8fafd; }
.row.sel { background: var(--accent-soft); }
.row .c-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.row .c-name svg { width: 20px; height: 20px; flex: none; }
.row .c-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .c-dim { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 空状态 ---------------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--text-3); }
.empty svg { width: 74px; height: 74px; opacity: .5; }
.empty .t { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty .d { font-size: 12.5px; }

/* ---------------- 右键菜单 ---------------- */
.ctxmenu {
  position: fixed; z-index: 200; min-width: 176px; padding: 5px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg);
}
.ctxmenu .mi {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 10px;
  border-radius: 7px; font-size: 13px; color: var(--text); cursor: pointer;
}
.ctxmenu .mi:hover { background: #f1f4fa; }
.ctxmenu .mi.danger { color: var(--danger); }
.ctxmenu .mi.danger:hover { background: var(--danger-soft); }
.ctxmenu .mi svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.ctxmenu .mi .k { margin-left: auto; font-size: 11px; color: var(--text-3); }
.ctxmenu .div { height: 1px; background: var(--border); margin: 4px 6px; }

/* ---------------- 上传队列 ---------------- */
.uploads {
  position: fixed; right: 18px; bottom: 18px; width: 340px; z-index: 150;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.uploads .uh { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.uploads .uh .sp { margin-left: auto; display: flex; gap: 4px; }
.uploads .ul { max-height: 260px; overflow-y: auto; padding: 6px; }
.uitem { padding: 8px 9px; border-radius: 8px; }
.uitem:hover { background: var(--panel-2); }
.uitem .r1 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.uitem .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uitem .st { font-size: 11.5px; color: var(--text-3); flex: none; }
.uitem .st.err { color: var(--danger); }
.uitem .st.ok { color: var(--ok); }
.uitem .pb { margin-top: 6px; height: 4px; border-radius: 3px; background: #eef1f7; overflow: hidden; }
.uitem .pb > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(22, 28, 45, .38); backdrop-filter: blur(2px); }
.dialog {
  width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 60px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: pop .16s ease-out;
}
.dialog.wide { width: 680px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dialog .dh { padding: 16px 18px 12px; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dialog .db { padding: 0 18px 6px; overflow-y: auto; }
.dialog .df { padding: 14px 18px 16px; display: flex; justify-content: flex-end; gap: 8px; }
.hint { font-size: 12.5px; color: var(--text-3); line-height: 1.6; }
.alert { padding: 10px 12px; border-radius: 9px; font-size: 12.5px; line-height: 1.6; background: var(--warn-soft); color: #8a5a00; margin-bottom: 12px; }
.alert.err { background: var(--danger-soft); color: #a92f34; }
.alert.ok { background: var(--ok-soft); color: #1f7a54; }

/* 目录选择器 */
.treepick { max-height: 280px; overflow: auto; border: 1px solid var(--border-strong); border-radius: 9px; padding: 6px; background: #fff; }
.tnode { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 8px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.tnode:hover { background: #f1f4fa; }
.tnode.on { background: var(--accent-soft); color: #2c46c0; font-weight: 600; }
.tnode svg { width: 16px; height: 16px; flex: none; }
.tnode .tw { width: 14px; text-align: center; color: var(--text-3); font-size: 10px; }

/* ---------------- 提示条 ---------------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 16px; border-radius: 10px; background: #232935; color: #fff; font-size: 13px;
  box-shadow: var(--shadow-md); animation: pop .16s ease-out; max-width: 460px;
}
.toast.err { background: #c8383d; }
.toast.ok { background: #22805c; }

/* ---------------- 拖拽层 ---------------- */
.dropzone {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  background: rgba(61, 99, 245, .10); border: 3px dashed var(--accent); border-radius: 4px;
  color: var(--accent); font-size: 17px; font-weight: 700; pointer-events: none;
}

/* ---------------- 管理后台 ---------------- */
.admin-wrap { padding: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.stat .k { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.stat .v { font-size: 20px; font-weight: 700; }
.stat .v small { font-size: 12px; color: var(--text-3); font-weight: 500; }

.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 12px; text-align: left; font-size: 12.5px; border-bottom: 1px solid #f0f2f7; vertical-align: middle; }
.table th { background: var(--panel-2); color: var(--text-3); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table td.actions { white-space: nowrap; display: flex; gap: 5px; }
.table .who { display: flex; flex-direction: column; gap: 2px; }
.table .who b { font-size: 13px; }
.table .who span { font-size: 11.5px; color: var(--text-3); }
.table select { height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border-strong); background: #fff; font-size: 12px; }

/* ==========================================================================
   登录页 / 分享页 / 扫码页
   ========================================================================== */
.center-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 600px at 15% -10%, #e7edff 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 110%, #f0eaff 0%, transparent 55%), var(--bg);
}
.cardbox {
  width: 400px; max-width: 100%; background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden;
}
.cardbox .mid { padding: 30px 30px 8px; text-align: center; }
.cardbox .mid .logo {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 14px;
  background: linear-gradient(135deg, #4b6cf7, #7a5cf5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(75, 108, 247, .3);
}
.cardbox .mid .logo svg { width: 28px; height: 28px; }
.cardbox h1 { font-size: 20px; margin: 0 0 6px; }
.cardbox .sub { font-size: 12.5px; color: var(--text-3); margin: 0 0 20px; }
.cardbox .form { padding: 0 30px 26px; }
.cardbox .foot { padding: 14px 30px; border-top: 1px solid var(--border); background: var(--panel-2); font-size: 12.5px; color: var(--text-3); text-align: center; }
.tabs { display: flex; gap: 4px; background: #eef1f7; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.tabs button { flex: 1; height: 34px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tabs button.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.qr-panel { text-align: center; }
.qr-box { width: 218px; height: 218px; margin: 0 auto 12px; border: 1px solid var(--border); border-radius: 12px; padding: 9px; background: #fff; position: relative; }
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-box .mask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(255, 255, 255, .94); border-radius: 12px; font-size: 13px; color: var(--text-2); }
.link { color: var(--accent); cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }
.who-confirm { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); margin-bottom: 16px; }

/* 免责声明勾选 + 弹窗 */
.agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 2px; font-size: 12.5px; line-height: 1.6; color: var(--text-2); cursor: pointer; user-select: none; }
.agree-row input[type="checkbox"] { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; flex: none; }
.dlg-mask { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 26, 38, .5); backdrop-filter: blur(2px); }
.dlg { width: 560px; max-width: 100%; max-height: 86vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.dlg-head { flex: none; padding: 15px 20px; font-size: 15.5px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); }
.dlg-body { flex: 1; overflow-y: auto; padding: 16px 20px; font-size: 13px; line-height: 1.8; color: var(--text-2); }
.dlg-body p { margin: 0 0 12px; }
.dlg-body b { color: var(--text); }
.dlg-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--border); background: var(--panel-2); }

/* 分页面 */
.pane { max-width: 860px; margin: 0 auto; }
.pagehead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pagehead h2 { margin: 0; font-size: 18px; }
.pagehead .sp { margin-left: auto; }
.listcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f0f2f7; }
.lrow:last-child { border-bottom: none; }
.lrow:hover { background: var(--panel-2); }
.lrow .ico { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; }
.lrow .ico svg { width: 32px; height: 32px; }
.lrow .meta { flex: 1; min-width: 0; }
.lrow .meta .n { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .meta .d { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.lrow .act { flex: none; display: flex; gap: 6px; }

@media (max-width: 780px) {
  .sidebar { display: none; }
  .searchbox { max-width: none; }
  .userpill .nm { display: none; }
  .list-head, .row { grid-template-columns: 1fr 86px; }
  .list-head > div:nth-child(n+3), .row > div:nth-child(n+3) { display: none; }
  .uploads { right: 10px; left: 10px; width: auto; }
  .brand span.tx { display: none; }
}
