/* ============================================================
   云枢 FileHub — 设计系统（暗色玻璃拟态 + 极光渐变）
   ============================================================ */

:root {
  --bg: #07090f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ebf4;
  --text-2: #9aa3b8;
  --text-3: #5d6579;
  --accent-1: #6366f1;
  --accent-2: #22d3ee;
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #22d3ee 130%);
  --danger: #f43f5e;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 背景极光 */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(99, 102, 241, 0.20), transparent 60%),
    radial-gradient(800px 600px at 105% 15%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(700px 700px at 50% 120%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

::selection { background: rgba(99, 102, 241, 0.45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.13); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

.hidden { display: none !important; }

/* ---------------- 通用组件 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 12px; border: 1px solid transparent;
  font: 600 13.5px var(--font); color: var(--text); cursor: pointer;
  background: var(--surface-2); transition: all .18s ease; white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: rgba(255, 255, 255, 0.11); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }

.btn-primary {
  background: var(--accent-grad); color: #fff; border: none;
  box-shadow: 0 4px 22px rgba(99, 102, 241, 0.38);
}
.btn-primary:hover { filter: brightness(1.12); background: var(--accent-grad); box-shadow: 0 6px 26px rgba(99, 102, 241, 0.5); }

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

.btn-danger { background: rgba(244, 63, 94, 0.13); color: #fb7185; border-color: rgba(244, 63, 94, 0.3); }
.btn-danger:hover { background: rgba(244, 63, 94, 0.22); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  width: 34px; height: 34px; padding: 0; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--text-2);
  cursor: pointer; transition: all .15s ease;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.input, select.input, textarea.input {
  width: 100%; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  color: var(--text); font: 500 14px var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: rgba(99, 102, 241, 0.8); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22); }
.input::placeholder { color: var(--text-3); }
select.input option { background: #12141c; }

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; letter-spacing: .02em; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.chip svg { width: 13px; height: 13px; }
.chip.accent { color: #a5b4fc; border-color: rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.12); }
.chip.ok { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.1); }
.chip.warn { color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.1); }
.chip.danger { color: #fda4af; border-color: rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.1); }

/* 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* 徽标 */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}
.brand .logo svg { width: 18px; height: 18px; }
.brand em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { color: var(--text-3); font-weight: 600; font-size: 11px; margin-top: 5px; }

/* ---------------- 登录页 ---------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; padding: 40px 36px 32px; animation: pop .45s cubic-bezier(.2,.9,.3,1.2); }
.login-card .brand { justify-content: center; margin-bottom: 8px; font-size: 20px; }
.login-sub { text-align: center; color: var(--text-2); font-size: 13px; margin-bottom: 28px; }
.login-card .btn-block { margin-top: 4px; padding: 11px; font-size: 14.5px; }
.login-hint { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--warn); min-height: 18px; }
.login-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--text-3); }

/* ---------------- 主界面布局 ---------------- */
.app { max-width: 1180px; margin: 0 auto; padding: 18px 22px 90px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 18px; }
.top-right { display: flex; align-items: center; gap: 10px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search { width: 210px; padding: 8px 14px 8px 34px; border-radius: 11px; background-image: none; }
.search-wrap { position: relative; }
.search-wrap > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }

/* 面包屑 */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13.5px; }
.crumb-item {
  padding: 6px 11px; border-radius: 10px; color: var(--text-2); cursor: pointer;
  font-weight: 600; transition: all .15s; border: 1px solid transparent;
}
.crumb-item:hover { color: var(--text); background: var(--surface-2); }
.crumb-item.current { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.crumb-sep { color: var(--text-3); display: flex; } .crumb-sep svg { width: 14px; height: 14px; }

/* ---------------- 文件列表 ---------------- */
.list-shell { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(18px); overflow: hidden; }
.list-head, .file-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px 150px 120px 52px;
  align-items: center; gap: 8px; padding: 0 10px 0 6px;
}
.list-head {
  padding-top: 11px; padding-bottom: 11px; font-size: 12px; font-weight: 700; color: var(--text-3);
  border-bottom: 1px solid var(--border); letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}
.file-row {
  padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  cursor: default; transition: background .13s; position: relative;
}
.file-row:last-child { border-bottom: none; }
.file-row:hover { background: rgba(255, 255, 255, 0.045); }
.file-row.selected { background: rgba(99, 102, 241, 0.13); }
.file-row.drop-target { background: rgba(34, 211, 238, 0.14); box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, 0.55); }
.file-row.dragging { opacity: .45; }

.row-check { display: flex; align-items: center; justify-content: center; }
.checkbox {
  width: 17px; height: 17px; border-radius: 5.5px; border: 1.5px solid var(--border-strong);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .14s; background: transparent; flex: none;
}
.checkbox svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.4); transition: all .14s; }
.checkbox.checked { background: var(--accent-grad); border-color: transparent; }
.checkbox.checked svg { opacity: 1; transform: scale(1); }

.row-name { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.file-ico {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.file-ico svg { width: 18px; height: 18px; }
.file-ico.folder { color: #a5b4fc; background: rgba(99, 102, 241, 0.14); border-color: rgba(99, 102, 241, 0.3); }
.file-ico.image { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.28); }
.file-ico.video { color: #f0abfc; background: rgba(232, 121, 249, 0.12); border-color: rgba(232, 121, 249, 0.28); }
.file-ico.audio { color: #fcd34d; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
.file-ico.archive { color: #fda4af; background: rgba(244, 63, 94, 0.11); border-color: rgba(244, 63, 94, 0.26); }
.file-ico.code { color: #7dd3fc; background: rgba(125, 211, 252, 0.1); border-color: rgba(125, 211, 252, 0.26); }
.file-ico.uploading { color: var(--warn); }
.name-text { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-sub { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cell.dim { color: var(--text-3); font-size: 12px; }
.row-flags { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.row-flags .chip { padding: 2px 8px; font-size: 11px; }
.row-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity .15s; }
.file-row:hover .row-actions { opacity: 1; }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px 80px; color: var(--text-3); }
.empty svg { width: 62px; height: 62px; opacity: .5; margin-bottom: 14px; }
.empty .t { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.empty .s { font-size: 12.5px; }

/* 底部多选操作条 */
.sel-bar {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 20px;
  background: rgba(16, 18, 28, 0.92); border: 1px solid var(--border-strong);
  border-radius: 16px; backdrop-filter: blur(20px); box-shadow: var(--shadow);
  z-index: 60; animation: rise .25s ease;
}
.sel-bar .cnt { font-size: 13.5px; color: var(--text-2); }
.sel-bar .cnt b { color: var(--text); }

/* ---------------- 右键菜单 ---------------- */
.ctx {
  position: fixed; z-index: 90; min-width: 186px; padding: 6px;
  background: rgba(20, 22, 33, 0.97); border: 1px solid var(--border-strong);
  border-radius: 14px; backdrop-filter: blur(22px); box-shadow: var(--shadow);
  animation: pop .14s ease;
}
.ctx-item {
  display: flex; align-items: center; gap: 10px; padding: 8.5px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .12s;
}
.ctx-item svg { width: 15px; height: 15px; color: var(--text-2); flex: none; }
.ctx-item:hover { background: var(--surface-2); }
.ctx-item.danger { color: #fb7185; } .ctx-item.danger svg { color: #fb7185; }
.ctx-item.danger:hover { background: rgba(244, 63, 94, 0.13); }
.ctx-sep { height: 1px; margin: 5px 8px; background: var(--border); }

/* ---------------- 弹窗 ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 5, 10, 0.62); backdrop-filter: blur(10px); padding: 22px;
  animation: fade .18s ease;
}
.modal {
  width: 100%; max-width: 500px; max-height: 88vh; overflow: auto;
  background: rgba(19, 21, 32, 0.97); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px;
  animation: rise .28s cubic-bezier(.2,.9,.3,1.1);
}
.modal-lg { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.modal-title svg { width: 18px; height: 18px; color: #a5b4fc; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.modal .hint { font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.6; }
.modal .err { color: #fb7185; font-size: 12.5px; margin-top: 8px; min-height: 17px; }

/* 分享弹窗 */
.link-box { display: flex; gap: 8px; }
.link-box .input { font-family: var(--mono); font-size: 12.5px; padding: 9px 12px; }
.pw-row { display: flex; gap: 8px; }
.pw-row .input { flex: 1; }
.section-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 20px 0 10px; color: var(--text); }
.section-label svg { width: 15px; height: 15px; color: #a5b4fc; }
.section-label .chip { margin-left: auto; }
.temp-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; font-size: 13px;
}
.temp-item code { font-family: var(--mono); font-weight: 700; color: #6ee7b7; }
.temp-item .meta { color: var(--text-3); font-size: 12px; margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.temp-item .meta svg { width: 13px; height: 13px; flex: none; }
.temp-list { max-height: 190px; overflow: auto; }
.ttl-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.ttl-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border-strong); color: var(--text-2); transition: all .14s; background: transparent;
}
.ttl-chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.ttl-chip.active { background: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.65); color: #c7d2fe; }

/* 新建文件夹树选择 */
.tree-pick { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.tree-node { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.tree-node:hover { background: var(--surface-2); }
.tree-node.current { background: rgba(99, 102, 241, 0.16); color: #c7d2fe; }
.tree-node svg { width: 16px; height: 16px; color: #a5b4fc; flex: none; }

/* ---------------- 上传抽屉 ---------------- */
.drawer {
  position: fixed; right: 22px; bottom: 22px; width: 392px; max-width: calc(100vw - 44px);
  background: rgba(17, 19, 29, 0.97); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(22px);
  z-index: 80; overflow: hidden; animation: rise .3s ease;
}
.drawer-head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13.5px; }
.drawer-head svg { width: 16px; height: 16px; color: #a5b4fc; }
.drawer-head .x { margin-left: auto; }
.drawer-body { max-height: 330px; overflow: auto; padding: 8px 12px 12px; }
.task { padding: 10px 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.task:last-child { border-bottom: none; }
.task-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.task-top svg { width: 15px; height: 15px; color: var(--text-2); flex: none; }
.task-name { font-size: 12.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-size { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.task-cancel { width: 22px; height: 22px; border-radius: 7px; border: none; background: transparent; color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.task-cancel:hover { background: rgba(244, 63, 94, 0.16); color: #fb7185; }
.task-cancel svg { width: 12px; height: 12px; }
.pbar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.pbar > div { height: 100%; border-radius: 4px; background: var(--accent-grad); width: 0%; transition: width .25s ease; }
.pbar.err > div { background: linear-gradient(90deg, #f43f5e, #fb7185); }
.pbar.done > div { background: linear-gradient(90deg, #10b981, #34d399); }
.task-sub { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.task-sub .st-ok { color: #6ee7b7; font-weight: 700; }
.task-sub .st-err { color: #fb7185; font-weight: 700; }

/* 拖放遮罩 */
.drop-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(9px);
}
.drop-overlay-inner {
  position: absolute; inset: 18px; border: 2.5px dashed rgba(129, 140, 248, 0.65);
  border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(99, 102, 241, 0.07); animation: pop .2s ease;
}
.drop-overlay-inner svg { width: 58px; height: 58px; color: #a5b4fc; animation: bob 1.6s ease-in-out infinite; }
.drop-overlay-inner .t { font-size: 21px; font-weight: 800; }
.drop-overlay-inner .s { color: var(--text-2); font-size: 13.5px; }

/* ---------------- Toast ---------------- */
.toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 13px;
  background: rgba(20, 22, 33, 0.96); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(18px);
  animation: drop .3s cubic-bezier(.2,.9,.3,1.2); max-width: min(90vw, 560px);
}
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.ok svg { color: var(--ok); } .toast.err svg { color: var(--danger); } .toast.info svg { color: #a5b4fc; }
.toast.leaving { animation: fadeout .25s ease forwards; }

/* ---------------- 下载进度弹窗 ---------------- */
.dlprog { text-align: center; padding: 6px 4px 2px; }
.dlprog .pct { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.dlprog .bar { height: 9px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin: 18px 0 12px; }
.dlprog .bar > div { height: 100%; background: var(--accent-grad); border-radius: 6px; width: 0%; transition: width .3s ease; }
.dlprog .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.dlprog .file { margin-top: 12px; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 分享页 ---------------- */
.share-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 18px 60px; }
.share-card { width: 100%; max-width: 880px; padding: 34px 34px 30px; animation: rise .4s ease; }
.share-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.share-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--accent-grad); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45); flex: none; }
.share-ico svg { width: 34px; height: 34px; }
.share-title { font-size: 21px; font-weight: 800; word-break: break-all; line-height: 1.35; }
.share-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 6px; }
.share-actions .btn { padding: 11px 20px; font-size: 14px; border-radius: 13px; }
.divider { height: 1px; background: var(--border); margin: 22px 0 18px; }
.share-list-head { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.share-list-head svg { width: 15px; height: 15px; color: #a5b4fc; }
.share-files { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-height: 380px; overflow-y: auto; }
.share-frow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 96px; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .13s; }
.share-frow:hover { background: rgba(255,255,255,.035); }
.share-frow:last-child { border-bottom: none; }
.share-frow .p { min-width: 0; }
.share-frow .p .n { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-frow .p .d { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-frow .dl { text-align: right; }
.lockview { text-align: center; padding: 26px 10px 10px; }
.lockview .lock-ico { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.4); display: flex; align-items: center; justify-content: center; color: #a5b4fc; }
.lockview .lock-ico svg { width: 30px; height: 30px; }
.lockview .t { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.lockview .s { color: var(--text-2); font-size: 13px; margin-bottom: 20px; }
.lockview form { display: flex; gap: 9px; max-width: 380px; margin: 0 auto; }
.script-note { font-size: 12px; color: var(--text-3); margin-top: 14px; line-height: 1.7; }
.script-note code { font-family: var(--mono); background: var(--surface-2); padding: 1.5px 7px; border-radius: 6px; font-size: 11.5px; }
.share-foot { margin-top: 26px; color: var(--text-3); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.share-foot svg { width: 14px; height: 14px; }

/* ---------------- 顶部站点导航 ---------------- */
.site-nav {
  max-width: 1180px; margin: 0 auto; padding: 18px 22px 6px;
  display: flex; align-items: center; gap: 22px;
}
.nav-tabs { display: flex; gap: 6px; }
.nav-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: 13.5px;
  text-decoration: none; border: 1px solid transparent; transition: all .16s;
}
.nav-tab svg { width: 15px; height: 15px; }
.nav-tab:hover { color: var(--text); background: var(--surface-2); }
.nav-tab.active { color: #c7d2fe; background: rgba(99, 102, 241, 0.16); border-color: rgba(99, 102, 241, 0.45); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ---------------- 链接跳转页 ---------------- */
.link-grid-wrap { min-height: 55vh; }
.link-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 14px;
}
.link-card {
  display: flex; align-items: center; gap: 15px; padding: 16px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  cursor: pointer; transition: all .16s ease; position: relative; backdrop-filter: blur(14px);
  user-select: none;
}
.link-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.18); }
.link-card.dragging { opacity: .45; }
.link-card.drop-target { border-color: rgba(34, 211, 238, 0.7); box-shadow: 0 0 0 1.5px rgba(34, 211, 238, 0.55); }
.lk-avatar {
  width: 56px; height: 56px; border-radius: 15px; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.lk-avatar svg { width: 26px; height: 26px; }
.lk-avatar.folder { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); box-shadow: none; }
.lk-body { min-width: 0; flex: 1; }
.lk-name {
  font-weight: 700; font-size: 14.5px; line-height: 1.45;
  overflow: hidden; word-break: break-all;
}
.lk-sub { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.lk-more { flex: none; opacity: 0; transition: opacity .15s; }
.link-card:hover .lk-more { opacity: 1; }

.ip-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ip-code { font-family: var(--mono); background: var(--surface-2); padding: 2px 9px; border-radius: 7px; font-size: 12.5px; color: #a5b4fc; }
.ip-list .temp-item code { color: var(--text); }

@media (max-width: 780px) {
  .site-nav { flex-wrap: wrap; gap: 10px; padding-bottom: 2px; }
  .link-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
  .lk-avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 20px; }
  .lk-avatar svg { width: 22px; height: 22px; }
}

/* ---------------- 动画 ---------------- */
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; transform: translateY(-8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.sel-bar { animation-name: selbar; }
@keyframes selbar { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

@media (max-width: 780px) {
  .app { padding: 14px 12px 90px; }
  .list-head, .file-row { grid-template-columns: 40px minmax(0, 1fr) 96px 46px; }
  .col-date, .col-size2 { display: none !important; }
  .share-card { padding: 24px 18px; }
  .share-head { flex-direction: column; text-align: center; }
  .share-meta { justify-content: center; }
  .share-actions { justify-content: center; }
  .share-frow { grid-template-columns: minmax(0, 1fr) 90px; }
  .share-frow .cell-size { display: none; }
}
