:root {
  --brand: #ff7a18;
  --brand-2: #ffa751;
  --brand-soft: #fff3e8;
  --ink: #14161d;
  --ink-2: #5b6270;
  --ink-3: #8d94a3;
  --line: rgba(20, 22, 29, .08);
  --card: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(24, 32, 64, .05);
  --shadow: 0 10px 30px rgba(24, 32, 64, .08);
  --shadow-lg: 0 18px 50px rgba(24, 32, 64, .14);
}

* { box-sizing: border-box; }

/* hidden 必须压倒所有 display 设定 */
[hidden] { display: none !important; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f6f7fb;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 620px; height: 620px;
  top: -260px; right: -160px;
  background: radial-gradient(circle, rgba(255, 138, 61, .30), rgba(255, 138, 61, 0) 70%);
}
.bg-glow-2 {
  width: 560px; height: 560px;
  top: 180px; left: -240px;
  background: radial-gradient(circle, rgba(90, 140, 255, .22), rgba(90, 140, 255, 0) 70%);
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(255, 122, 24, .32);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 17px; letter-spacing: .3px; }
.brand-text span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

.topbar-actions { display: flex; align-items: center; gap: 12px; }
.stat-pill {
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s;
  padding: 11px 18px;
  line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(255, 122, 24, .30);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255, 122, 24, .38); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--brand); border-color: rgba(255, 122, 24, .35); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .28); }
.icon-btn {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); width: 32px; height: 32px;
  border-radius: 9px; display: grid; place-items: center;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }

/* ---------- 页面 ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 80px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -.4px;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), #ff5f8f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 560px; line-height: 1.6; }

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  height: 48px;
  min-width: 290px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-3);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: rgba(255, 122, 24, .5); box-shadow: 0 0 0 4px rgba(255, 122, 24, .10); }
.search-box input {
  border: 0; outline: 0; background: transparent; font-family: inherit;
  font-size: 14px; color: var(--ink); width: 100%;
}

/* ---------- 上传区 ---------- */
.uploader {
  position: relative;
  border: 1.5px dashed rgba(255, 122, 24, .38);
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdfb, #fff8f2);
  padding: 26px 28px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
  margin-bottom: 28px;
  overflow: hidden;
}
.uploader::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 120px at 20% 0%, rgba(255, 168, 84, .16), transparent 70%);
  pointer-events: none;
}
.uploader:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 122, 24, .16); }
.uploader.dragover {
  border-color: var(--brand);
  border-style: solid;
  background: linear-gradient(180deg, #fff5ea, #ffe9d6);
  transform: scale(1.01);
}
.uploader-inner { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.uploader-icon {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: #fff;
  color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(255, 122, 24, .22);
  flex: none;
  transition: transform .25s;
}
.uploader:hover .uploader-icon { transform: translateY(-3px) rotate(-4deg); }
.uploader-copy { flex: 1; min-width: 220px; }
.uploader-copy h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.uploader-copy p { margin: 0; font-size: 13px; color: var(--ink-2); }
.uploader-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.uploader-tags span {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: #c2621c;
  background: #fff;
  border: 1px solid rgba(255, 122, 24, .22);
  border-radius: 8px;
  padding: 5px 9px;
}

/* ---------- 工具栏 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2);
  padding: 9px 17px; border-radius: 9px;
  transition: background .18s, color .18s, box-shadow .18s;
  white-space: nowrap;
}
.tab:hover { color: var(--brand); }
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px rgba(255, 122, 24, .28);
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .24s cubic-bezier(.2, .8, .3, 1), box-shadow .24s;
  animation: cardIn .38s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f3f5fa, #e9edf6);
  cursor: zoom-in;
  overflow: hidden;
  flex: none;
}
.thumb img, .thumb video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thumb video { pointer-events: none; background: #12141a; }
.thumb .thumb-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: #fff;
}
.thumb .thumb-fallback .ext {
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
}

.kind-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(6px);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
}
.kind-badge.image { background: rgba(255, 122, 24, .92); }
.kind-badge.video { background: rgba(20, 22, 29, .72); }
.kind-badge.audio { background: rgba(120, 80, 255, .88); }
.kind-badge.doc, .kind-badge.other { background: rgba(60, 110, 255, .88); }

.play-badge {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  z-index: 1;
  pointer-events: none;
}
.play-badge i {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s, background .2s;
}
.card:hover .play-badge i { transform: scale(1.08); background: rgba(255, 122, 24, .8); border-color: transparent; }
.play-badge svg { width: 18px; height: 18px; }

.card-body { padding: 13px 15px 8px; flex: 1; display: flex; flex-direction: column; }
.card-name {
  font-size: 14px; font-weight: 700;
  line-height: 1.45;
  margin: 0 0 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 38px;
  gap: 6px;
  padding: 10px 13px 13px;
}
.act {
  border: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600;
  border-radius: 10px;
  padding: 9px 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: #f4f6fb;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .18s, color .18s, transform .15s;
  white-space: nowrap;
}
.act svg { width: 14px; height: 14px; flex: none; }
.act:hover { transform: translateY(-1px); }
.act-view:hover { background: var(--brand-soft); color: var(--brand); }
.act-link:hover { background: #eef3ff; color: #3563ff; }
.act-del { background: transparent; color: var(--ink-3); padding: 9px 4px; }
.act-del:hover { background: #fff1f0; color: #f04438; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 70px 20px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-art { margin-bottom: 12px; opacity: .95; }
.empty h4 { margin: 8px 0 6px; font-size: 17px; }
.empty p { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 上传进度面板 ---------- */
.upload-panel {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 336px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  overflow: hidden;
  animation: panelIn .28s ease both;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.upload-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 12px 12px 16px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.upload-list { max-height: 260px; overflow-y: auto; padding: 6px 8px 10px; }
.upl-item { padding: 9px 8px; }
.upl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 7px; }
.upl-name { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl-pct { color: var(--ink-3); flex: none; font-variant-numeric: tabular-nums; }
.upl-bar { height: 5px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.upl-bar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 99px;
  transition: width .2s ease;
}
.upl-item.done .upl-pct { color: #12b76a; }
.upl-item.done .upl-bar span { background: #12b76a; }
.upl-item.error .upl-pct { color: #f04438; }
.upl-item.error .upl-bar span { background: #f04438; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(16, 19, 28, .42);
  backdrop-filter: blur(6px);
  z-index: 60;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 560px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(12, 18, 40, .28);
  padding: 22px 24px 20px;
  animation: modalIn .26s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { margin: 0 0 5px; font-size: 18px; }
.modal-sub { margin: 0; font-size: 12.5px; color: var(--ink-3); word-break: break-all; }
.link-row { margin-bottom: 16px; }
.link-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.link-input { display: flex; gap: 8px; align-items: center; }
.link-input input {
  flex: 1; min-width: 0;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f9fc;
  padding: 0 13px;
  font-family: inherit; font-size: 12.5px;
  color: var(--ink-2);
  outline: none;
}
.link-input input:focus { border-color: rgba(255, 122, 24, .5); background: #fff; }
.modal-tip {
  margin: 6px 0 0;
  font-size: 12px; color: var(--ink-3);
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.6;
}

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(9, 11, 17, .9);
  backdrop-filter: blur(12px);
  z-index: 70;
  display: flex; flex-direction: column;
  animation: fadeIn .22s ease both;
}
.lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  z-index: 2;
  transition: background .2s, transform .2s;
}
.lb-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.lb-stage {
  flex: 1;
  display: grid; place-items: center;
  padding: 60px 24px 20px;
  min-height: 0;
}
.lb-stage img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-stage video { max-width: 100%; max-height: 100%; border-radius: 14px; background: #000; }
.lb-stage audio { width: min(560px, 90vw); }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px 20px;
  color: #fff; font-size: 13px;
  flex-wrap: wrap;
}
.lb-bar #lbName { opacity: .82; word-break: break-all; max-width: 60%; }
.lb-actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(20, 22, 29, .92);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 90;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .hero h1 { font-size: 24px; }
  .search-box { min-width: 100%; }
  .hero { gap: 16px; }
  .brand-text span { display: none; }
  .stat-pill { display: none; }
  .uploader { padding: 20px; }
  .uploader-icon { width: 52px; height: 52px; }
  .uploader-copy h3 { font-size: 15.5px; }
  .uploader-tags { display: none; }
}
@media (max-width: 620px) {
  .page { padding: 22px 14px 70px; }
  .topbar-inner { padding: 12px 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 16px; }
  .card-body { padding: 10px 11px 6px; }
  .card-name { font-size: 12.5px; -webkit-line-clamp: 1; }
  .card-meta { font-size: 11px; gap: 5px; }
  .card-actions { padding: 8px 9px 10px; gap: 5px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; }
  .act { font-size: 11.5px; padding: 8px 4px; min-width: 0; overflow: hidden; }
  .act span { overflow: hidden; text-overflow: ellipsis; }
  .act svg { display: none; }
  .act-del svg { display: block; }
  .toolbar-right { display: none; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1; padding: 9px 10px; }
  .upload-panel { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .modal { padding: 18px 16px 16px; border-radius: 18px; }
  .link-input { flex-wrap: wrap; }
  .link-input input { flex: 1 1 100%; }
  .link-input .btn { flex: 1; }
  .lb-stage { padding: 56px 10px 10px; }
  .lb-bar { padding: 12px 14px 18px; }
}

/* ---------- PHP 版补充 ---------- */
.upload-hint {
  margin: 0 8px 10px;
  font-size: 12px;
  line-height: 1.65;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #fdd8d2;
  border-radius: 10px;
  padding: 10px 12px;
  word-break: break-all;
}
.card-actions.no-del { grid-template-columns: 1fr 1fr; }
/* 只有一个按钮时（未登录只剩「查看」）横跨整行 */
.card-actions > :only-child { grid-column: 1 / -1; }

/* ---------- 用户区（前台顶栏） ---------- */
.user-area { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 5px 4px 4px; box-shadow: var(--shadow-sm);
}
.u-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-size: 12.5px; font-weight: 800;
  display: grid; place-items: center; flex: none;
  box-shadow: 0 3px 10px rgba(255, 122, 24, .3);
}
.u-name {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.u-out {
  border: 0; background: #f4f5f7; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 600; color: #6b7280; padding: 5px 10px;
  border-radius: 999px; transition: .16s;
}
.u-out:hover { color: #d92d20; background: #fff1f0; }

/* ---------- 登录弹窗 ---------- */
.auth-mask { background: rgba(16, 19, 28, .5); }
.auth-card {
  display: flex; width: 100%; max-width: 720px;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(12, 18, 40, .32);
  animation: modalIn .3s cubic-bezier(.2, .8, .3, 1) both;
}
.auth-aside {
  width: 286px; flex: none; position: relative;
  background: linear-gradient(150deg, #ff7a18, #ffa24b 55%, #ff6a3d);
  color: #fff; padding: 34px 28px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.auth-aside-inner { position: relative; z-index: 2; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 15px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .34);
  display: grid; place-items: center; margin-bottom: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(180, 70, 0, .25);
}
.auth-aside h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: .4px; }
.aside-slogan {
  margin: 0 0 26px; font-size: 15px; line-height: 1.6;
  color: rgba(255, 255, 255, .88); font-weight: 600;
}
.aside-points {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12.5px; color: rgba(255, 255, 255, .92);
}
.aside-points li { display: flex; align-items: center; gap: 9px; }
.aside-points i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18);
}
.auth-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-1 {
  width: 240px; height: 240px; right: -112px; top: -112px;
  background: radial-gradient(circle, rgba(255, 255, 255, .32), transparent 62%);
}
.orb-2 {
  width: 210px; height: 210px; left: -84px; bottom: -96px;
  background: radial-gradient(circle, rgba(255, 255, 255, .26), transparent 74%);
}
.auth-grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 85%);
}

.auth-form { flex: 1; padding: 34px 34px 26px; position: relative; min-width: 0; }
.auth-form h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; }
.auth-sub { margin: 0 0 22px; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.auth-close { position: absolute; top: 15px; right: 15px; }
.auth-err {
  margin-bottom: 14px; font-size: 12.5px; color: #b42318;
  background: #fff4f2; border: 1px solid #fdd8d2; border-radius: 10px;
  padding: 9px 12px; animation: authShake .34s ease;
}
@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.auth-form label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--ink-2); margin-bottom: 7px;
}
.auth-field {
  display: flex; align-items: center; gap: 9px;
  height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #f7f9fc; padding: 0 12px; margin-bottom: 16px;
  color: var(--ink-3); transition: border-color .2s, background .2s, box-shadow .2s, color .2s;
}
.auth-field:focus-within {
  border-color: rgba(255, 122, 24, .55); background: #fff; color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, .1);
}
.auth-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0;
  background: transparent; font-family: inherit; font-size: 13.5px; color: var(--ink);
}
.eye-btn {
  border: 0; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 11.5px; color: var(--ink-3); padding: 4px 2px; flex: none;
}
.eye-btn:hover { color: var(--brand); }
.auth-submit { width: 100%; height: 46px; margin-top: 4px; font-size: 14.5px; border-radius: 12px; }
.auth-submit[disabled] { opacity: .7; cursor: default; box-shadow: none; }
.auth-foot {
  margin: 16px 0 0; font-size: 11.5px; color: var(--ink-3);
  text-align: center; line-height: 1.65;
}

@media (max-width: 820px) {
  .user-area .u-name { display: none; }
  .user-chip { padding: 3px; gap: 4px; }
  .u-out { padding: 5px 5px; font-size: 11px; }
}
@media (max-width: 700px) {
  .auth-card { flex-direction: column; max-width: 400px; }
  .auth-aside { display: none; }
  .auth-form { padding: 30px 22px 22px; }
  .auth-form h3 { font-size: 20px; }
}

/* ---------- 首页分页（每页 20 条） ---------- */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 26px 0 6px; flex-wrap: wrap;
}
.pg {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 700;
  min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px;
  cursor: pointer; transition: .16s; box-shadow: var(--shadow-sm);
}
.pg:hover:not(:disabled):not(.on) { border-color: #ffd9ba; color: var(--brand); }
.pg.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent; cursor: default;
  box-shadow: 0 6px 16px rgba(255, 122, 24, .28);
}
.pg:disabled { opacity: .4; cursor: not-allowed; }
.pg-dots { color: var(--ink-3); padding: 0 2px; font-size: 13px; }
.pg-info { margin-left: 8px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 700px) {
  /* 手机端不再显示顶栏「上传文件」，上传走下面的上传区 */
  #topUploadBtn { display: none !important; }
  .pager { margin: 18px 0 4px; gap: 5px; }
  .pg { min-width: 32px; height: 32px; font-size: 12.5px; padding: 0 8px; }
  .pg-info { flex: 1 0 100%; text-align: center; margin: 6px 0 0; }
}

/* ---------- 前台底部备案信息（后台填了才显示） ---------- */
.site-footer { padding: 6px 16px 30px; }
.site-beian {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--ink-3);
}
.beian-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-3); text-decoration: none;
  padding: 6px 10px; border-radius: 8px; transition: .16s;
}
.beian-item:hover { color: var(--brand); background: rgba(255, 122, 24, .07); }
.beian-item img { width: 15px; height: 15px; object-fit: contain; display: block; opacity: .92; }
.beian-item svg { opacity: .85; flex: none; }
.beian-sep { width: 1px; height: 12px; background: var(--line); display: inline-block; }

@media (max-width: 700px) {
  .site-footer { padding: 4px 14px 24px; }
  .site-beian { gap: 2px; font-size: 12px; }
  .beian-sep { display: none; }
}

/* 底部版权说明两行 */
.site-copy { text-align: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.85; margin: 0 0 10px; }
.site-copy p { margin: 0; }
@media (max-width: 700px) {
  .site-copy { font-size: 11px; line-height: 1.8; margin-bottom: 8px; padding: 0 2px; color: #71798a; }
}
