/* =========================================================================
   云匣 CloudBox — 设计系统
   暖纸底 + 墨黑 + 松绿单主色；发丝描边；8pt 栅格
   ========================================================================= */
:root {
  /* 色彩 */
  --bg: #f4f3ef;
  --bg-2: #eeece6;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --ink: #15171b;
  --ink-2: #3d424a;
  --muted: #7c828c;
  --muted-2: #9aa0a8;
  --line: #e6e3da;
  --line-strong: #d5d1c5;
  --accent: #1e6b58;
  --accent-ink: #14503f;
  --accent-2: #2e8d74;
  --accent-soft: #e9f2ee;
  --danger: #b0442e;
  --danger-soft: #fbeeea;
  --amber: #9a6b1f;
  --amber-soft: #f8f0dd;

  /* 形状 */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(21, 23, 27, 0.05);
  --sh-2: 0 4px 14px -6px rgba(21, 23, 27, 0.14);
  --sh-3: 0 20px 48px -18px rgba(21, 23, 27, 0.28);
  --ring: 0 0 0 3px rgba(30, 107, 88, 0.16);

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --fast: 140ms;
  --base: 220ms;

  --rail-w: 252px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --num: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(30, 107, 88, 0.16); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }

.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 24px; height: 24px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent);
  box-shadow: 0 1px 2px rgba(20, 80, 63, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover { --btn-bg: var(--accent-ink); --btn-bd: var(--accent-ink); }

.btn-ghost { --btn-bd: transparent; --btn-bg: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(21, 23, 27, 0.05); --btn-bd: transparent; }

.btn-danger { color: var(--danger); --btn-bd: #edd9d2; --btn-bg: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); }

.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: var(--r-xs); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-xs);
  border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; transition: all var(--fast) var(--ease);
}
.icon-btn:hover { background: rgba(21, 23, 27, 0.06); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.01em; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease);
  font-size: 14px;
}
.textarea { height: auto; padding: 10px 13px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:hover, .select:hover { border-color: #c4bfb1; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: var(--ring);
}
.select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c828c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-sm { height: 34px; font-size: 13px; padding: 0 10px; }

.input-affix { position: relative; border-radius: var(--r-sm); }
.input-affix .i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); pointer-events: none;
}
.input-affix .input { padding-left: 38px; }

.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; user-select: none; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-strong);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--fast) var(--ease); flex: none;
}
.check .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; opacity: 0; transition: opacity var(--fast); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { box-shadow: var(--ring); }

/* 开关 */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: #d9d5c9; border-radius: var(--r-pill);
  transition: background var(--base) var(--ease); cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform var(--base) var(--ease);
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }

/* ---------------------------------------------------------------- 通用件 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.01em;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-ok { background: var(--accent-soft); color: var(--accent-ink); border-color: #cfe3da; }
.badge-off { background: #f1efea; color: var(--muted); border-color: var(--line); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #f0d9d2; }
.badge-amber { background: var(--amber-soft); color: var(--amber); border-color: #ecdfc2; }
.badge-admin { background: #eef1f7; color: #3d4f74; border-color: #dde3ef; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 72px 24px; text-align: center; color: var(--muted);
}
.empty .glyph {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted-2);
  box-shadow: var(--sh-1);
}
.empty h3 { color: var(--ink); font-size: 15px; }
.empty p { font-size: 13px; max-width: 320px; }

.skeleton {
  background: linear-gradient(90deg, #eeece6 25%, #f6f5f1 37%, #eeece6 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================================================================ 登录页 */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}

.auth-brand {
  position: relative; overflow: hidden;
  background: #101418;
  color: #f0eee8;
  padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(120% 90% at 8% 6%, rgba(46, 141, 116, 0.34) 0%, transparent 55%),
    radial-gradient(80% 70% at 92% 96%, rgba(154, 107, 31, 0.22) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, 0.55) 100%);
}
.auth-brand > * { position: relative; }

.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, #2e8d74, #175647);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px -8px rgba(0, 0, 0, 0.8);
  display: grid; place-items: center; color: #eaf5f1;
}
.brand-mark svg { width: 21px; height: 21px; stroke-width: 1.7; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.brand-sub { font-size: 11.5px; color: rgba(240, 238, 232, 0.5); letter-spacing: 0.14em; text-transform: uppercase; }

.auth-headline {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.14; letter-spacing: -0.035em; font-weight: 600;
  max-width: 13ch;
}
.auth-headline em {
  font-style: normal; color: #8fd3bd;
  display: inline-block;
}
.auth-lede {
  margin-top: 18px; max-width: 34ch;
  font-size: 14.5px; line-height: 1.7; color: rgba(240, 238, 232, 0.62);
}
.auth-points { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.auth-point {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: rgba(240, 238, 232, 0.78);
}
.auth-point .i { color: #8fd3bd; margin-top: 2px; }
.auth-point b { color: #f0eee8; font-weight: 600; }

.auth-foot {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(240, 238, 232, 0.42);
  font-family: var(--num);
}
.auth-foot .dot { background: #4ec29e; box-shadow: 0 0 0 3px rgba(78, 194, 158, 0.18); }

.auth-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: var(--bg);
  position: relative;
}
.auth-card {
  width: 100%; max-width: 388px;
  animation: rise 420ms var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.auth-card h2 { font-size: 24px; letter-spacing: -0.03em; }
.auth-card .lede { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin: 26px 0 22px;
  background: var(--bg-2); border-radius: var(--r-sm); border: 1px solid var(--line);
}
.tab {
  height: 34px; border: 0; background: transparent; border-radius: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-1); border: 1px solid var(--line);
  margin: -1px;
}

.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; align-items: center; justify-content: space-between; }
.hint { font-size: 12px; color: var(--muted-2); }
.form-error {
  display: none; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--r-xs);
  background: var(--danger-soft); border: 1px solid #f0d9d2; color: var(--danger);
  font-size: 12.5px;
}
.form-error.show { display: flex; animation: shake 300ms var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ================================================================ 应用框架 */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.rail {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh;
  z-index: 20;
}
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 6px; }
.rail-lockup { display: flex; align-items: center; gap: 10px; }
.rail-lockup .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.rail-lockup .brand-mark svg { width: 18px; height: 18px; }
.rail-lockup .brand-name { font-size: 14px; }
.rail-lockup .brand-sub { font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); }

.rail-upload {
  display: flex; align-items: center; gap: 9px; justify-content: center;
  height: 40px; width: 100%;
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent-ink); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 80, 63, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: all var(--fast) var(--ease);
}
.rail-upload:hover { background: var(--accent-ink); }
.rail-upload:active { transform: translateY(1px); }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted-2); padding: 0 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px; border-radius: var(--r-xs);
  color: var(--ink-2); font-size: 13.5px; cursor: pointer;
  border: 1px solid transparent; background: transparent; width: 100%; text-align: left;
  transition: all var(--fast) var(--ease);
}
.nav-item:hover { background: rgba(21, 23, 27, 0.045); color: var(--ink); }
.nav-item .i { color: var(--muted); }
.nav-item .count {
  margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-family: var(--num);
}
.nav-item.active {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  box-shadow: var(--sh-1); font-weight: 500;
}
.nav-item.active .i { color: var(--accent); }
.nav-item.active .count { color: var(--accent); }

.rail-spacer { flex: 1; }

.quota-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-md); padding: 14px;
  display: flex; flex-direction: column; gap: 11px;
}
.quota-top { display: flex; align-items: center; justify-content: space-between; }
.quota-title { font-size: 12px; color: var(--muted); }
.quota-value { font-size: 12px; font-family: var(--num); color: var(--ink-2); }
.quota-bar { height: 5px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.quota-fill {
  height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 500ms var(--ease), background var(--base);
}
.quota-fill.warn { background: linear-gradient(90deg, #d0a24b, #a97a24); }
.quota-fill.full { background: linear-gradient(90deg, #cb6a52, var(--danger)); }
.quota-meta { font-size: 11.5px; color: var(--muted-2); font-family: var(--num); }

.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer;
  width: 100%; background: transparent; text-align: left;
  transition: all var(--fast) var(--ease);
}
.user-chip:hover { background: var(--surface); border-color: var(--line); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2e8d74, #1a5c4c);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.user-meta { min-width: 0; flex: 1; }
.user-name {
  font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: var(--muted-2); }

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

.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: rgba(244, 243, 239, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  min-height: 66px;
}
.topbar h1 { font-size: 17px; letter-spacing: -0.02em; }
.topbar .sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search {
  position: relative; width: 236px; max-width: 30vw;
}
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r-sm); font-size: 13px;
  transition: all var(--fast) var(--ease);
}
.search input::placeholder { color: var(--muted-2); }
.search input:hover { border-color: #c4bfb1; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.seg {
  display: inline-flex; padding: 3px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-sm); gap: 2px;
}
.seg button {
  height: 28px; width: 30px; border: 0; background: transparent; border-radius: 6px;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: all var(--fast) var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

.content { padding: 22px 28px 64px; flex: 1; }

.dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.25));
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
  transition: all var(--base) var(--ease);
  cursor: pointer;
}
.dropzone:hover { border-color: #bfc7bd; background: rgba(255, 255, 255, 0.85); }
.dropzone.drag {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: var(--ring);
}
.dropzone .dz-icon {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
}
.dropzone .dz-title { font-size: 13.5px; font-weight: 500; }
.dropzone .dz-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.dropzone .btn { margin-left: auto; }

/* ---------------------------------------------------------------- 文件网格 */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
}
.file-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease),
    border-color var(--base) var(--ease);
  animation: cardIn 320ms var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.file-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--line-strong);
}
.file-card .thumb {
  position: relative; aspect-ratio: 16 / 11;
  background:
    linear-gradient(180deg, #faf9f6, #f2f0ea);
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}
.file-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 420ms var(--ease);
}
.file-card:hover .thumb img { transform: scale(1.035); }
.kind-glyph {
  display: grid; place-items: center; gap: 7px;
}
.kind-glyph .badge-ext {
  font-size: 10.5px; font-family: var(--num); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.kind-glyph .i { width: 28px; height: 28px; stroke-width: 1.4; }

.tone-image { color: var(--accent); }
.tone-video { color: #4a5f8a; }
.tone-doc { color: var(--amber); }
.tone-audio { color: #2a7a8c; }
.tone-archive { color: #7a6a53; }
.tone-other { color: var(--muted); }

.file-card .tools {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line); border-radius: var(--r-xs);
  backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-4px);
  transition: all var(--fast) var(--ease);
  box-shadow: var(--sh-1);
}
.file-card:hover .tools, .file-card:focus-within .tools { opacity: 1; transform: none; }
.file-card .tools .icon-btn { width: 28px; height: 28px; }
.file-card .tools .icon-btn .i { width: 15px; height: 15px; }

.file-body { padding: 11px 13px 12px; }
.file-name {
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-all; line-height: 1.42;
  min-height: 37px;
}
.file-meta {
  margin-top: 6px; display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted-2); font-family: var(--num);
}
.file-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* 列表视图 */
.file-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.list-head, .list-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 108px 132px 96px 96px;
  align-items: center; gap: 12px;
  padding: 0 16px;
}
.list-head {
  height: 40px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted-2);
}
.list-row {
  height: 54px; border-bottom: 1px solid var(--line);
  transition: background var(--fast) var(--ease);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.list-name { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.list-name .glyph {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.list-name .glyph .i { width: 17px; height: 17px; }
.list-name .txt { min-width: 0; }
.list-name .txt b {
  display: block; font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.list-name .txt span { font-size: 11.5px; color: var(--muted-2); font-family: var(--num); }
.list-cell { font-size: 12.5px; color: var(--muted); font-family: var(--num); }
.list-actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity var(--fast); }
.list-row:hover .list-actions { opacity: 1; }

/* ---------------------------------------------------------------- 上传面板 */
.uploads {
  position: fixed; right: 20px; bottom: 20px; width: 330px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  overflow: hidden;
  animation: popIn 240ms var(--ease) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.uploads-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.uploads-head b { font-size: 12.5px; font-weight: 600; }
.uploads-head .icon-btn { margin-left: auto; width: 26px; height: 26px; }
.uploads-body { max-height: 220px; overflow-y: auto; padding: 6px; }
.up-row { padding: 8px 8px 9px; border-radius: var(--r-xs); }
.up-row + .up-row { margin-top: 2px; }
.up-top { display: flex; align-items: center; gap: 8px; }
.up-name {
  font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
.up-state { font-size: 11px; font-family: var(--num); color: var(--muted-2); }
.up-state.ok { color: var(--accent); }
.up-state.err { color: var(--danger); }
.up-bar { height: 3px; background: var(--bg-2); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.up-fill { height: 100%; width: 0; background: var(--accent); transition: width 220ms var(--ease); }
.up-fill.err { background: var(--danger); }

/* ---------------------------------------------------------------- 弹层 */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(18, 20, 24, 0.42);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 24px;
  animation: fadeIn 180ms var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  animation: modalIn 220ms var(--ease) both;
  overflow: hidden;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { padding: 20px 22px 0; }
.modal-head h3 { font-size: 16px; }
.modal-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.modal-body { padding: 18px 22px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2);
}

.preview-modal {
  width: min(1080px, 94vw); max-height: 90vh;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--sh-3);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modalIn 220ms var(--ease) both;
}
.preview-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.preview-head .t { min-width: 0; flex: 1; }
.preview-head .t b {
  display: block; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-head .t span { font-size: 11.5px; color: var(--muted-2); font-family: var(--num); }
.preview-body {
  flex: 1; min-height: 240px; overflow: auto;
  background:
    repeating-conic-gradient(#f7f6f2 0% 25%, #f1efe9 0% 50%) 50% / 18px 18px;
  display: grid; place-items: center; padding: 18px;
}
.preview-body img { max-width: 100%; max-height: 68vh; border-radius: var(--r-xs); box-shadow: var(--sh-2); }
.preview-body video, .preview-body audio { max-width: 100%; max-height: 68vh; border-radius: var(--r-xs); }
.preview-body iframe { width: 100%; height: 68vh; border: 0; background: #fff; border-radius: var(--r-xs); }
.preview-body pre {
  margin: 0; width: 100%; height: 60vh; overflow: auto; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xs);
  font-family: var(--num); font-size: 12.5px; line-height: 1.65; white-space: pre-wrap;
  word-break: break-word;
}

/* 菜单 */
.menu {
  position: fixed; z-index: 90; min-width: 176px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: var(--sh-3);
  animation: popIn 140ms var(--ease) both;
}
.menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  height: 34px; padding: 0 9px; border: 0; background: transparent;
  border-radius: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer;
  text-align: left; transition: background var(--fast);
}
.menu-item:hover { background: var(--surface-2); color: var(--ink); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-soft); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* Toast */
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 15px; border-radius: var(--r-pill);
  background: #1a1d22; color: #f2f0ea; font-size: 13px;
  box-shadow: var(--sh-3);
  animation: toastIn 240ms var(--ease) both;
  max-width: 88vw;
}
.toast.ok .i { color: #6dd3b4; }
.toast.err .i { color: #f0a08c; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast.leaving { animation: toastOut 200ms var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* ================================================================ 管理后台 */
.admin { display: grid; grid-template-columns: 226px 1fr; min-height: 100vh; }
.admin-rail {
  background: #101418; color: #e9e7e1;
  padding: 20px 12px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh;
}
.admin-rail .brand-sub { color: rgba(233, 231, 225, 0.42); }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(233, 231, 225, 0.34); padding: 0 12px 7px; font-weight: 600;
}
.admin-nav button {
  display: flex; align-items: center; gap: 10px;
  height: 37px; padding: 0 11px; border-radius: var(--r-xs);
  background: transparent; border: 1px solid transparent;
  color: rgba(233, 231, 225, 0.66); font-size: 13.5px; cursor: pointer;
  width: 100%; text-align: left; transition: all var(--fast) var(--ease);
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.admin-nav button.active {
  background: rgba(46, 141, 116, 0.18);
  border-color: rgba(46, 141, 116, 0.4);
  color: #a8e3ce; font-weight: 500;
}
.admin-nav button .i { width: 17px; height: 17px; }
.admin-rail .rail-spacer { flex: 1; }
.admin-back {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  border-radius: var(--r-xs); font-size: 12.5px; color: rgba(233, 231, 225, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
  cursor: pointer; width: 100%; transition: all var(--fast) var(--ease);
}
.admin-back:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.admin-main { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.admin-top {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px; height: 64px;
  background: rgba(244, 243, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-top h1 { font-size: 17px; }
.admin-body { padding: 24px 28px 56px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 15px 16px 16px;
  transition: box-shadow var(--base) var(--ease), transform var(--base) var(--ease);
}
.stat:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.stat .k {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em;
}
.stat .k .i { width: 14px; height: 14px; color: var(--muted-2); }
.stat .v {
  margin-top: 9px; font-size: 26px; font-weight: 600; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat .v small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat .d { margin-top: 3px; font-size: 11.5px; color: var(--muted-2); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel-head h2 { font-size: 13.5px; font-weight: 600; }
.panel-head .sub { font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 18px; }

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-family: var(--num); font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.table .actions { display: flex; justify-content: flex-end; gap: 3px; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-user .avatar { width: 30px; height: 30px; font-size: 12px; }
.cell-user .u-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-user .u-mail { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.usage-mini { display: flex; flex-direction: column; gap: 5px; min-width: 104px; }
.usage-mini .bar { height: 4px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.usage-mini .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.usage-mini .bar i.warn { background: #c9963c; }
.usage-mini .bar i.full { background: var(--danger); }
.usage-mini .t { font-size: 10.5px; color: var(--muted-2); font-family: var(--num); }

.setting-row {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: 0; }
.setting-row .info { flex: 1; min-width: 0; }
.setting-row .info b { display: block; font-size: 13.5px; font-weight: 500; }
.setting-row .info span { font-size: 12.5px; color: var(--muted); }
.setting-row .control { flex: none; width: 190px; }
.setting-row .control.wide { width: 260px; }

/* 抽屉 / 侧滑面板 */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100vw); z-index: 100;
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--sh-3);
  display: flex; flex-direction: column;
  animation: slideIn 260ms var(--ease) both;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 15px; flex: 1; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot {
  display: flex; gap: 9px; padding: 14px 20px;
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.drawer-foot .btn { flex: 1; }

/* 登出遮罩 / 维护提示 */
.maintenance-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 28px; background: var(--amber-soft);
  border-bottom: 1px solid #ecdfc2; color: #7d5511; font-size: 12.5px;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1040px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; }
  .file-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .list-head, .list-row { grid-template-columns: minmax(0, 2fr) 92px 96px; }
  .list-head > :nth-child(4), .list-row > :nth-child(4),
  .list-head > :nth-child(3), .list-row > :nth-child(3) { display: none; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed; left: 0; top: 0; height: 100vh; width: 268px;
    transform: translateX(-102%);
    transition: transform var(--base) var(--ease);
    box-shadow: var(--sh-3); background: var(--surface);
    z-index: 70;
  }
  .rail.open { transform: none; }
  .rail-scrim {
    position: fixed; inset: 0; z-index: 65; background: rgba(18, 20, 24, 0.4);
    animation: fadeIn 160ms var(--ease);
  }
  .topbar { padding: 12px 16px; gap: 10px; }
  .content { padding: 16px 16px 56px; }
  .search { width: 100%; max-width: none; }
  .menu-toggle { display: inline-flex !important; }
  .topbar-actions .search { display: none; }
  .file-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .dropzone { padding: 13px; }
  .dropzone .dz-sub { display: none; }
  .uploads { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .list-head, .list-row { grid-template-columns: 1fr 84px; }
  .list-head > :nth-child(n + 3), .list-row > :nth-child(n + 3) { display: none; }
  .admin { grid-template-columns: 1fr; }
  .admin-rail {
    position: fixed; left: 0; top: 0; height: 100vh; width: 236px; z-index: 70;
    transform: translateX(-102%); transition: transform var(--base) var(--ease);
  }
  .admin-rail.open { transform: none; }
  .admin-top { padding: 0 12px; height: 56px; gap: 10px; }
  .admin-top h1 { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  .admin-top .sub { display: none; }
  .admin-top #btnRefresh { display: none; }
  .admin-top #adminWho { display: none; }
  .admin-body { padding: 16px 16px 48px; }
  .setting-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .setting-row .control, .setting-row .control.wide { width: 100%; }
  .modal { max-width: 100%; }
  .auth-panel { padding: 28px 20px; }
}

@media (max-width: 520px) {
  .file-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .file-name { font-size: 12.5px; min-height: 35px; }
  .stat .v { font-size: 22px; }
  .topbar h1 { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d8d4c8; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #c2bdae; background-clip: content-box; }

/* =========================================================================
   v2 扩展组件：分享 / 回收站 / 多选 / 数据大屏 / 审计
   ========================================================================= */

/* ---------------------------------------------------------------- 公告条 */
.announce {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid #cfe3da;
  border-radius: var(--r-sm); color: var(--accent-ink); font-size: 12.5px;
}
.announce .i { color: var(--accent); }
.announce b { font-weight: 600; }

/* ---------------------------------------------------------------- 多选 */
.sel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 12px;
  background: var(--ink); color: #f0eee8;
  border-radius: var(--r-sm);
  animation: popIn 200ms var(--ease) both;
}
.sel-bar .n { font-family: var(--num); font-size: 12.5px; }
.sel-bar .spacer { flex: 1; }
.sel-bar .btn {
  --btn-bg: rgba(255,255,255,0.1); --btn-fg: #f0eee8;
  --btn-bd: rgba(255,255,255,0.18); height: 30px;
}
.sel-bar .btn:hover { --btn-bg: rgba(255,255,255,0.18); }
.sel-bar .btn-danger { --btn-fg: #f2b3a3; --btn-bd: rgba(240,160,140,0.35); }

.pick {
  position: absolute; top: 9px; left: 9px; z-index: 3;
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.94); border: 1px solid var(--line-strong);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: scale(0.9);
  transition: all var(--fast) var(--ease);
  box-shadow: var(--sh-1);
}
.pick .i { width: 13px; height: 13px; color: #fff; opacity: 0; stroke-width: 3; }
.file-card:hover .pick, .file-card.selected .pick { opacity: 1; transform: none; }
.file-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.file-card.selected .pick { background: var(--accent); border-color: var(--accent); }
.file-card.selected .pick .i { opacity: 1; }
.list-row.selected { background: var(--accent-soft); }

/* 卡片右下角分享标记 */
.share-mark {
  position: absolute; bottom: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(30,107,88,0.92); color: #eaf5f1;
  font-size: 10px; font-weight: 500; letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.share-mark .i { width: 11px; height: 11px; stroke-width: 2; }

/* ---------------------------------------------------------------- 分段筛选 */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 11px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--fast) var(--ease);
}
.chip:hover { border-color: #c4bfb1; background: var(--surface-2); }
.chip.active { background: var(--ink); color: #f0eee8; border-color: var(--ink); }
.chip .n { font-family: var(--num); font-size: 11px; opacity: 0.65; }

/* ---------------------------------------------------------------- 分享弹窗 */
.modal-wide { max-width: 560px; }
.share-hint {
  display: flex; gap: 9px; padding: 11px 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: 12.5px; color: var(--muted);
  line-height: 1.6;
}
.share-hint .i { color: var(--accent); flex: none; margin-top: 1px; }

.seg-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg-hours button {
  height: 36px; border-radius: var(--r-xs);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.seg-hours button:hover { border-color: #c4bfb1; background: var(--surface-2); }
.seg-hours button.active {
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 500;
  box-shadow: 0 0 0 3px rgba(30,107,88,0.08);
}

.link-out {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  overflow: hidden; background: var(--surface-2);
}
.link-out input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 0 12px; height: 42px;
  font-family: var(--num); font-size: 12px; color: var(--ink-2);
}
.link-out input:focus { outline: none; }
.link-out .btn {
  border-radius: 0; border: 0; border-left: 1px solid var(--line-strong);
  height: 42px;
}

.share-result { display: flex; flex-direction: column; gap: 14px; }
.qr-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.qr-wrap img {
  width: 92px; height: 92px; border-radius: 8px; flex: none;
  border: 1px solid var(--line); background: #fff;
}
.qr-wrap .qr-meta { min-width: 0; }
.qr-wrap .qr-meta b { display: block; font-size: 13px; }
.qr-wrap .qr-meta span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- 分享管理页 */
.page-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-head h2 { font-size: 15px; }
.page-head .spacer { flex: 1; }

.mini-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-bottom: 16px;
}
.mini-stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 15px;
}
.mini-stat .k { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mini-stat .k .i { width: 13px; height: 13px; color: var(--muted-2); }
.mini-stat .v {
  margin-top: 6px; font-size: 20px; font-weight: 600;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.mini-stat .v small { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 3px; }

.share-row-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.share-row-file .glyph {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.share-row-file .glyph .i { width: 16px; height: 16px; }
.share-row-file .t { min-width: 0; }
.share-row-file .t b {
  display: block; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
.share-row-file .t span { font-size: 11px; color: var(--muted-2); font-family: var(--num); }

.meter-mini { display: flex; align-items: center; gap: 7px; }
.meter-mini .b { height: 4px; width: 54px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter-mini .b i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter-mini .b i.warn { background: #c9963c; }
.meter-mini .b i.full { background: var(--danger); }
.meter-mini .t { font-size: 11px; font-family: var(--num); color: var(--muted); }

/* 访问明细时间线 */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.tl-item:last-child { border-bottom: 0; }
.tl-item .dot-mark {
  width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none;
  background: var(--accent);
}
.tl-item.dl .dot-mark { background: #4a5f8a; }
.tl-item .t { color: var(--ink-2); }
.tl-item .w { margin-left: auto; color: var(--muted-2); font-family: var(--num); font-size: 11px; }

/* ---------------------------------------------------------------- 回收站 */
.trash-tip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin-bottom: 14px;
  background: var(--amber-soft); border: 1px solid #ecdfc2;
  border-radius: var(--r-sm); color: #7d5511; font-size: 12.5px;
}
.trash-tip .i { flex: none; }

/* ---------------------------------------------------------------- 用户详情 */
.kv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
}
.kv .k { font-size: 11.5px; color: var(--muted-2); }
.kv .v { font-size: 13.5px; font-weight: 500; margin-top: 1px; }
.kv .v.num { font-family: var(--num); }

.detail-tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--line);
  margin: 4px 0 0;
}
.detail-tabs button {
  height: 34px; padding: 0 12px; border: 0; background: transparent;
  font-size: 13px; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--fast) var(--ease);
}
.detail-tabs button:hover { color: var(--ink-2); }
.detail-tabs button.active { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 500; }

/* ---------------------------------------------------------------- 公开分享页 */
.share-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(46,141,116,0.10) 0%, transparent 60%),
    var(--bg);
}
.share-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}
.share-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.share-card {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3);
  overflow: hidden;
  animation: rise 380ms var(--ease) both;
}
.share-card-top {
  padding: 26px 26px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
}
.share-file-icon {
  width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid #cfe3da;
}
.share-file-icon .i { width: 28px; height: 28px; }
.share-card-top h1 {
  font-size: 17px; letter-spacing: -0.02em; word-break: break-all;
  line-height: 1.4;
}
.share-card-top .meta {
  margin-top: 7px; font-size: 12px; color: var(--muted);
  font-family: var(--num);
}
.share-card-body { padding: 22px 26px 24px; }
.share-note {
  font-size: 13px; color: var(--ink-2); line-height: 1.65;
  padding: 11px 13px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin-bottom: 16px;
  border-left: 2px solid var(--accent);
}
.share-foot {
  margin-top: 22px; text-align: center;
  font-size: 11.5px; color: var(--muted-2);
}
.share-foot b { color: var(--muted); font-weight: 500; }

.share-dead {
  padding: 44px 26px; text-align: center;
}
.share-dead .glyph {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--danger-soft); border: 1px solid #f0d9d2; color: var(--danger);
}
.share-dead h2 { font-size: 16px; }
.share-dead p { margin-top: 7px; font-size: 13px; color: var(--muted); }

.share-progress {
  height: 4px; border-radius: 999px; background: var(--bg-2);
  overflow: hidden; margin-top: 10px;
}
.share-progress i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 400ms var(--ease);
}

.pwd-row { display: flex; gap: 8px; }
.pwd-row .input { flex: 1; }

/* =========================================================================
   数据大屏（深色 · 远距离观看）
   ========================================================================= */
.screen {
  --s-bg: #080c10;
  --s-panel: rgba(18, 26, 30, 0.72);
  --s-line: rgba(120, 200, 180, 0.14);
  --s-line-2: rgba(120, 200, 180, 0.28);
  --s-ink: #d7e6e0;
  --s-muted: #6c8783;
  --s-glow: #4ec9a5;
  --s-glow-2: #7de0c4;
  --s-warm: #d3a95e;
  position: fixed; inset: 0; z-index: 100;
  background: var(--s-bg);
  color: var(--s-ink);
  display: flex; flex-direction: column;
  padding: 18px 22px 14px;
  overflow: hidden;
  animation: fadeIn 300ms var(--ease);
}
.screen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,200,180,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,200,180,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 88%);
}
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(78,201,165,0.14), transparent 70%),
    radial-gradient(50% 40% at 92% 100%, rgba(211,169,94,0.09), transparent 70%);
}
.screen > * { position: relative; z-index: 1; }

.screen-top {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--s-line);
}
.screen-top .lockup { display: flex; align-items: center; gap: 11px; }
.screen-top .lockup .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, #2e8d74, #143a31);
  box-shadow: 0 0 22px -6px rgba(78,201,165,0.6);
}
.screen-top h1 { font-size: 16px; letter-spacing: 0.06em; font-weight: 600; }
.screen-top .sub {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--s-muted); font-family: var(--num);
}
.screen-top .spacer { flex: 1; }
.screen-clock {
  font-family: var(--num); font-size: 15px; letter-spacing: 0.06em;
  color: var(--s-glow-2); font-variant-numeric: tabular-nums;
}
.screen-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--s-muted); font-family: var(--num);
  padding: 5px 10px; border: 1px solid var(--s-line-2); border-radius: 999px;
}
.screen-live .dot {
  background: var(--s-glow); box-shadow: 0 0 0 3px rgba(78,201,165,0.16);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.screen-exit {
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--s-line-2);
  color: var(--s-muted); font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--fast) var(--ease);
}
.screen-exit:hover { color: var(--s-glow-2); border-color: var(--s-glow); }

.screen-kpis {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin: 14px 0;
}
.kpi {
  position: relative; overflow: hidden;
  padding: 13px 15px 14px;
  background: var(--s-panel); border: 1px solid var(--s-line);
  border-radius: 4px;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--s-glow), transparent);
  opacity: 0.7;
}
.kpi .k {
  font-size: 11px; color: var(--s-muted); letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 6px;
}
.kpi .k .i { width: 13px; height: 13px; }
.kpi .v {
  margin-top: 7px; font-size: 30px; font-weight: 600;
  letter-spacing: -0.02em; font-family: var(--num);
  color: #eaf5f1; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kpi .v small { font-size: 12px; color: var(--s-muted); margin-left: 5px; font-weight: 400; }

.screen-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 12px;
}
.sc-panel {
  background: var(--s-panel); border: 1px solid var(--s-line);
  border-radius: 4px; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.sc-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-bottom: 1px solid var(--s-line);
  font-size: 12px; letter-spacing: 0.1em; color: #a8c4bd;
}
.sc-panel-head .i { width: 14px; height: 14px; color: var(--s-glow); }
.sc-panel-head .spacer { flex: 1; }
.sc-panel-head .tag {
  font-size: 10px; color: var(--s-muted); font-family: var(--num);
  letter-spacing: 0.04em;
}
.sc-panel-body { flex: 1; min-height: 0; padding: 12px 13px; overflow: hidden; }

.chart-wrap { position: relative; width: 100%; height: 100%; min-height: 0; }
.chart-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }

.donut-wrap { display: flex; align-items: center; gap: 16px; height: 100%; }
.donut {
  width: 128px; height: 128px; border-radius: 50%; flex: none;
  position: relative;
  background: conic-gradient(var(--s-glow) 0deg, var(--s-glow) 0deg);
  transition: background 600ms var(--ease);
}
.donut::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  background: #0b1116; border: 1px solid var(--s-line);
}
.donut .center {
  position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; z-index: 2;
}
.donut .center b {
  font-size: 21px; font-family: var(--num); font-weight: 600; color: #eaf5f1;
  display: block; line-height: 1.1;
}
.donut .center span { font-size: 9.5px; color: var(--s-muted); letter-spacing: 0.12em; }

.legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #a8c4bd; }
.legend-item .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.legend-item .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend-item .vl { font-family: var(--num); color: #dfeee8; font-size: 11px; }

.rank { display: flex; flex-direction: column; gap: 11px; }
.rank-row { display: flex; align-items: center; gap: 9px; }
.rank-row .no {
  width: 17px; font-family: var(--num); font-size: 10.5px;
  color: var(--s-muted); flex: none;
}
.rank-row .no.top { color: var(--s-glow); }
.rank-row .body { flex: 1; min-width: 0; }
.rank-row .nm {
  font-size: 11.5px; color: #cfe3dc; display: flex; justify-content: space-between; gap: 8px;
}
.rank-row .nm span:last-child { font-family: var(--num); color: var(--s-muted); font-size: 10.5px; }
.rank-row .track {
  height: 3px; border-radius: 999px; background: rgba(255,255,255,0.06);
  margin-top: 5px; overflow: hidden;
}
.rank-row .track i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, rgba(78,201,165,0.35), var(--s-glow));
  transition: width 700ms var(--ease);
}

.feed { display: flex; flex-direction: column; gap: 0; overflow: hidden; height: 100%; }
.feed-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px dashed rgba(120,200,180,0.08);
  font-size: 11.5px; color: #a8c4bd;
  animation: feedIn 320ms var(--ease) both;
}
@keyframes feedIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.feed-item .i { width: 13px; height: 13px; flex: none; color: var(--s-glow); }
.feed-item .who { color: #dfeee8; }
.feed-item .what { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .tm { font-family: var(--num); font-size: 10px; color: var(--s-muted); flex: none; }

.health-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--s-line);
}
.health-strip .h {
  font-size: 10.5px; color: var(--s-muted); display: flex;
  align-items: center; gap: 6px; font-family: var(--num);
}
.health-strip .h b { color: #cfe3dc; font-weight: 500; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; min-height: 0; }
.bars .bar {
  flex: 1; border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, var(--s-glow), rgba(78,201,165,0.12));
  min-height: 2px; position: relative;
  transition: height 500ms var(--ease);
}
.bars .bar:hover { background: var(--s-glow-2); }

.screen-scroll-x { overflow: hidden; }

@media (max-width: 1180px) {
  .screen-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(0,1fr)); }
  .screen-kpis { grid-template-columns: repeat(3, 1fr); }
  .screen-grid > .sc-panel:nth-child(3) { grid-column: span 2; }
}
@media (max-width: 760px) {
  .screen { padding: 12px; }
  .screen-kpis { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; overflow-y: auto; }
  .screen-grid > .sc-panel:nth-child(3) { grid-column: auto; }
  .screen-top h1 { font-size: 13px; }
}

/* ---------------------------------------------------------------- 审计日志 */
.audit-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.audit-row:last-child { border-bottom: 0; }
.audit-row .tag {
  flex: none; width: 88px; font-family: var(--num); font-size: 10.5px;
  color: var(--muted-2); padding-top: 2px;
}
.audit-row .what { flex: 1; min-width: 0; }
.audit-row .what b { font-weight: 500; }
.audit-row .what span { color: var(--muted); }
.audit-row .tm { flex: none; font-family: var(--num); font-size: 10.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- 响应式补丁 */
@media (max-width: 860px) {
  .seg-hours { grid-template-columns: repeat(2, 1fr); }
  .kv-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .share-card { max-width: 100%; }
  .share-card-top, .share-card-body { padding-left: 18px; padding-right: 18px; }
  .pick { opacity: 1; transform: none; }
  .sel-bar { flex-wrap: wrap; }
}

/* 后台导航小标签 */
.admin-nav button { position: relative; }
.admin-nav .nav-tag {
  margin-left: auto; font-size: 8.5px; letter-spacing: 0.1em;
  font-family: var(--num); color: var(--accent-2);
  border: 1px solid rgba(46,141,116,0.4); border-radius: 3px;
  padding: 1px 4px; line-height: 1.4;
}
.admin-nav button.active .nav-tag { color: #a8e3ce; border-color: rgba(168,227,206,0.5); }

/* =========================================================================
   v3：暗色主题 / 内容审核 / 收件箱 / 世界大屏 / 主题切换
   ========================================================================= */
:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* 主题切换按钮：双图标按主题显隐 */
.theme-btn { position: relative; overflow: hidden; }
.theme-btn .i-sun, .theme-btn .i-moon { position: absolute; inset: 0; margin: auto; transition: transform var(--base) var(--ease), opacity var(--base) var(--ease); }
html[data-theme="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(90deg) scale(0.4); }
html[data-theme="light"] .theme-btn .i-moon { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-btn .i-sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-btn .i-moon { opacity: 0; transform: rotate(-90deg) scale(0.4); }

/* ---------------------------------------------------------------- 暗色主题令牌 */
html[data-theme="dark"] {
  --bg: #121416;
  --bg-2: #181b1d;
  --surface: #1c2023;
  --surface-2: #171a1c;
  --ink: #eceae4;
  --ink-2: #c6c4bd;
  --muted: #949a95;
  --muted-2: #6d7570;
  --line: #2a2f31;
  --line-strong: #3a4043;
  --accent: #2e8d74;
  --accent-ink: #58c9a6;
  --accent-2: #3aa987;
  --accent-soft: #17302a;
  --danger: #e0785c;
  --danger-soft: #32221c;
  --amber: #d3a95e;
  --amber-soft: #2e2716;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sh-2: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
  --sh-3: 0 20px 48px -18px rgba(0, 0, 0, 0.66);
  --ring: 0 0 0 3px rgba(88, 201, 166, 0.18);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(18, 20, 22, 0.86); }
html[data-theme="dark"] .admin-top { background: rgba(18, 20, 22, 0.88); }
html[data-theme="dark"] .dropzone { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); }
html[data-theme="dark"] .dropzone:hover { background: rgba(255, 255, 255, 0.05); }
html[data-theme="dark"] .file-card .thumb { background: linear-gradient(180deg, #1d2124, #191c1f); }
html[data-theme="dark"] .file-card .tools { background: rgba(28, 32, 35, 0.92); border-color: var(--line-strong); }
html[data-theme="dark"] .pick { background: rgba(40, 45, 48, 0.95); border-color: var(--line-strong); }
html[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #1d2124 25%, #23272a 37%, #1d2124 63%); background-size: 400% 100%; }
html[data-theme="dark"] .badge-off { background: #22262a; color: var(--muted); border-color: var(--line); }
html[data-theme="dark"] .badge-admin { background: #20293a; color: #9db4dd; border-color: #2c3a55; }
html[data-theme="dark"] .badge-ok { border-color: #24463c; }
html[data-theme="dark"] .badge-danger { border-color: #4a3129; }
html[data-theme="dark"] .badge-amber { border-color: #4a3f22; }
html[data-theme="dark"] .announce { border-color: #24463c; }
html[data-theme="dark"] .trash-tip { border-color: #4a3f22; color: var(--amber); }
html[data-theme="dark"] .btn-danger { --btn-bd: #4a3129; }
html[data-theme="dark"] .form-error { border-color: #4a3129; }
html[data-theme="dark"] .share-file-icon { border-color: #24463c; }
html[data-theme="dark"] .input:hover, html[data-theme="dark"] .select:hover,
html[data-theme="dark"] .chip:hover, html[data-theme="dark"] .seg-hours button:hover,
html[data-theme="dark"] .search input:hover { border-color: var(--line-strong); }
html[data-theme="dark"] .chip.active { background: var(--ink); color: #16181a; border-color: var(--ink); }
html[data-theme="dark"] .seg button.active { background: var(--bg-2); }
html[data-theme="dark"] .tab.active { background: var(--bg-2); }
html[data-theme="dark"] .switch .track { background: #3a4043; }
html[data-theme="dark"] .switch input:checked + .track { background: var(--accent); }
html[data-theme="dark"] .sel-bar { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
html[data-theme="dark"] .sel-bar .btn { --btn-bg: rgba(255,255,255,0.06); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
html[data-theme="dark"] .sel-bar .btn:hover { --btn-bg: rgba(255,255,255,0.12); }
html[data-theme="dark"] .sel-bar .btn-danger { --btn-fg: var(--danger); }
html[data-theme="dark"] .preview-body { background: repeating-conic-gradient(#1b1f22 0% 25%, #171a1d 0% 50%) 50% / 18px 18px; }
html[data-theme="dark"] .preview-body iframe { background: #fff; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #33383b; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #454b4f; background-clip: content-box; }
html[data-theme="dark"] .auth, html[data-theme="dark"] .share-page { background: var(--bg); }
html[data-theme="dark"] .share-page { background: radial-gradient(90% 60% at 50% 0%, rgba(46,141,116,0.14) 0%, transparent 60%), var(--bg); }
html[data-theme="dark"] .maintenance-bar { border-color: #4a3f22; }
html[data-theme="dark"] .admin-nav button.active { background: rgba(46, 141, 116, 0.22); }

/* ---------------------------------------------------------------- 概览英雄条 */
.hero-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 16px;
}
.hero-strip .mini-stat { position: relative; overflow: hidden; }
.hero-strip .mini-stat::after {
  content: ""; position: absolute; right: -22px; bottom: -26px;
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  opacity: 0.9; pointer-events: none;
}
.hero-strip .mini-stat .k { font-weight: 500; }
.hero-strip .mini-stat .v { font-size: 24px; }

/* ---------------------------------------------------------------- 审核组件 */
.badge-pending { background: var(--amber-soft); color: var(--amber); border-color: #ecdfc2; }
html[data-theme="dark"] .badge-pending { border-color: #4a3f22; }
.badge-review-approved { background: var(--accent-soft); color: var(--accent-ink); border-color: #cfe3da; }
html[data-theme="dark"] .badge-review-approved { border-color: #24463c; }

.review-flag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--amber); font-weight: 500;
}
.review-note {
  margin-top: 4px; font-size: 11.5px; color: var(--danger);
  display: flex; align-items: center; gap: 5px;
}
.review-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--amber-soft); border: 1px solid #ecdfc2; border-radius: var(--r-sm);
  color: #7d5511; font-size: 12.5px;
}
html[data-theme="dark"] .review-bar { border-color: #4a3f22; color: var(--amber); }
.review-bar b { font-weight: 600; }

/* 审核卡片（队列视图） */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.review-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column;
  animation: cardIn 300ms var(--ease) both;
}
.review-card .rc-head { display: flex; gap: 11px; padding: 14px 14px 10px; }
.review-card .rc-file { min-width: 0; flex: 1; }
.review-card .rc-file b {
  display: block; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.review-card .rc-file span { font-size: 11px; color: var(--muted-2); font-family: var(--num); }
.review-card .rc-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 0 14px 12px; font-size: 11.5px; color: var(--muted);
}
.review-card .rc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.review-card .rc-note {
  margin: 0 14px 12px; padding: 8px 11px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-xs); font-size: 12px; color: var(--ink-2);
  border-left: 2px solid var(--accent);
}
.review-card .rc-foot {
  margin-top: auto; display: flex; gap: 8px;
  padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.review-card .rc-foot .btn { flex: 1; }

/* ---------------------------------------------------------------- 收件箱 */
.inbox-actions { display: flex; gap: 3px; }
.unread-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(46,141,116,0.15);
}

/* ---------------------------------------------------------------- 封禁 */
.ban-reason {
  max-width: 200px; font-size: 11px; color: var(--danger);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge-banned { background: var(--danger-soft); color: var(--danger); border-color: #f0d9d2; }
html[data-theme="dark"] .badge-banned { border-color: #4a3129; }

/* ---------------------------------------------------------------- 世界大屏 */
.wscreen {
  --s-bg: #060a0d;
  --s-panel: rgba(15, 24, 28, 0.78);
  --s-line: rgba(96, 200, 180, 0.14);
  --s-glow: #4ec9a5;
  --s-glow-2: #8ee9cd;
  --s-warm: #d3a95e;
  position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(70% 55% at 50% 30%, rgba(46, 141, 116, 0.10) 0%, transparent 65%),
    var(--s-bg);
  color: #d7e6e0;
  display: flex; flex-direction: column;
  padding: 18px 22px 14px;
  overflow: hidden;
  animation: fadeIn 300ms var(--ease);
}
.wscreen::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96,200,180,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,200,180,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 30%, transparent 88%);
}
.wscreen > * { position: relative; z-index: 1; }

.ws-top {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--s-line);
}
.ws-top .lockup { display: flex; align-items: center; gap: 11px; }
.ws-top .lockup .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(150deg, #2e8d74, #143a31);
  box-shadow: 0 0 22px -6px rgba(78,201,165,0.6);
}
.ws-top h1 { font-size: 16px; letter-spacing: 0.06em; font-weight: 600; }
.ws-top .sub {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: #6c8783; font-family: var(--num);
}
.ws-top .spacer { flex: 1; }

.ws-body {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px; margin-top: 12px;
}
.ws-map-panel {
  position: relative; overflow: hidden;
  background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 6px;
  display: flex; flex-direction: column;
}
.ws-map-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-bottom: 1px solid var(--s-line);
  font-size: 12px; letter-spacing: 0.1em; color: #a8c4bd;
}
.ws-map-head .i { width: 14px; height: 14px; color: var(--s-glow); }
.ws-map-head .spacer { flex: 1; }
.ws-map-head .tag { font-size: 10px; color: #6c8783; font-family: var(--num); }
.ws-map-wrap { flex: 1; min-height: 0; position: relative; }
.ws-map-wrap svg { width: 100%; height: 100%; display: block; }

.ws-map-land { fill: rgba(46, 141, 116, 0.14); stroke: rgba(96, 200, 180, 0.35); stroke-width: 0.6; }
.ws-map-grat { stroke: rgba(96, 200, 180, 0.10); stroke-width: 0.8; fill: none; }

.src-dot { fill: var(--s-glow-2); }
.src-pulse {
  fill: none; stroke: var(--s-glow); stroke-width: 1.4;
  transform-box: fill-box; transform-origin: center;
  animation: srcPulse 2.6s ease-out var(--pd, 0s) infinite;
}
@keyframes srcPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.beam {
  fill: none; stroke: url(#beamGrad); stroke-width: 1.7; stroke-linecap: round;
  stroke-dasharray: 13 187;
  stroke-dashoffset: 200;
  animation: beamRun var(--dur, 4.2s) linear var(--delay, 0s) infinite;
  filter: drop-shadow(0 0 5px rgba(78, 201, 165, 0.75));
}
@keyframes beamRun {
  0% { stroke-dashoffset: 200; opacity: 0; }
  6% { opacity: 1; }
  82% { opacity: 1; }
  92% { stroke-dashoffset: 100; opacity: 0; }
  100% { stroke-dashoffset: 100; opacity: 0; }
}

.server-node { fill: var(--s-glow); }
.server-halo {
  fill: none; stroke: var(--s-glow); stroke-width: 1.6;
  transform-box: fill-box; transform-origin: center;
  animation: srcPulse 2.2s ease-out infinite;
}

.ws-side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ws-panel {
  background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 6px;
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.ws-panel.grow { flex: 1; }
.ws-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-bottom: 1px solid var(--s-line);
  font-size: 12px; letter-spacing: 0.1em; color: #a8c4bd;
}
.ws-panel-head .i { width: 14px; height: 14px; color: var(--s-glow); }
.ws-panel-head .spacer { flex: 1; }
.ws-panel-head .tag { font-size: 10px; color: #6c8783; font-family: var(--num); }
.ws-panel-body { flex: 1; min-height: 0; overflow: hidden; padding: 11px 13px; }

.ws-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ws-kpi {
  padding: 11px 13px; background: var(--s-panel);
  border: 1px solid var(--s-line); border-radius: 5px; position: relative; overflow: hidden;
}
.ws-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--s-glow), transparent); opacity: 0.7;
}
.ws-kpi .k { font-size: 11px; color: #6c8783; letter-spacing: 0.08em; }
.ws-kpi .v { margin-top: 5px; font-size: 21px; font-weight: 600; font-family: var(--num); color: #eaf5f1; }
.ws-kpi .v small { font-size: 11px; color: #6c8783; margin-left: 4px; }

.region-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px dashed rgba(96,200,180,0.09); }
.region-row:last-child { border-bottom: 0; }
.region-row .rank-no {
  width: 18px; font-family: var(--num); font-size: 10.5px; color: #6c8783; flex: none;
}
.region-row .rank-no.top { color: var(--s-glow); }
.region-row .flag {
  width: 20px; height: 14px; border-radius: 3px; flex: none;
  background: rgba(96,200,180,0.14); border: 1px solid rgba(96,200,180,0.3);
  display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #a8e3ce;
  letter-spacing: 0.04em;
}
.region-row .body { flex: 1; min-width: 0; }
.region-row .nm { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #cfe3dc; }
.region-row .nm span:last-child { font-family: var(--num); font-size: 10.5px; color: #6c8783; }
.region-row .track { height: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); margin-top: 4px; overflow: hidden; }
.region-row .track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(78,201,165,0.35), var(--s-glow)); }

.ws-feed { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.ws-feed-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 0; border-bottom: 1px dashed rgba(96,200,180,0.08);
  font-size: 11.5px; color: #a8c4bd; animation: feedIn 320ms var(--ease) both;
}
.ws-feed-item .i { width: 13px; height: 13px; flex: none; color: var(--s-glow); }
.ws-feed-item .who { color: #dfeee8; }
.ws-feed-item .what { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-feed-item .tm { font-family: var(--num); font-size: 10px; color: #6c8783; flex: none; }
.ws-empty { display: grid; place-items: center; height: 100%; color: #6c8783; font-size: 12px; text-align: center; line-height: 1.8; }

.ws-exit {
  height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(96,200,180,0.3);
  color: #6c8783; font-size: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all var(--fast) var(--ease);
}
.ws-exit:hover { color: var(--s-glow-2); border-color: var(--s-glow); }
.ws-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: #6c8783; font-family: var(--num);
  padding: 5px 10px; border: 1px solid rgba(96,200,180,0.3); border-radius: 999px;
}
.ws-live .dot { background: var(--s-glow); box-shadow: 0 0 0 3px rgba(78,201,165,0.16); animation: pulse 2s ease-in-out infinite; }

@media (max-width: 900px) {
  .ws-body { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 46vh) auto; overflow-y: auto; }
  .ws-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------- 失效分享页增强 */
.dead-countdown {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-family: var(--num); font-size: 11.5px; color: var(--muted);
}
.dead-actions { display: flex; gap: 9px; justify-content: center; margin-top: 4px; }
.share-dead p.dead-sub { color: var(--muted-2); font-size: 12px; margin-top: 6px; }

/* ---------------------------------------------------------------- 响应式补丁 */
@media (max-width: 860px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 封禁整屏提示 */
.banned-view {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 28px 20px;
  background:
    radial-gradient(900px 520px at 50% -12%, color-mix(in srgb, var(--danger) 14%, transparent), transparent 62%),
    var(--bg);
}
.banned-card {
  width: 100%; max-width: 460px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 40px 32px 30px;
  box-shadow: var(--sh-3);
  position: relative; overflow: hidden;
  animation: popIn .34s cubic-bezier(.22,1,.36,1) both;
}
.banned-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--danger), transparent);
}
.banned-mark {
  width: 62px; height: 62px; margin: 0 auto 20px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
}
.banned-mark .i { width: 27px; height: 27px; stroke-width: 1.7; }
.banned-title { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 10px; }
.banned-lede { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.banned-meta {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 18px 0 4px; min-height: 0;
}
.banned-meta .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted); font-family: var(--num);
}
.banned-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.banned-actions .btn { min-width: 118px; justify-content: center; }
.banned-foot { margin-top: 18px; font-size: 11.5px; color: var(--muted-2); }

html[data-theme="dark"] .banned-view {
  background:
    radial-gradient(900px 520px at 50% -12%, color-mix(in srgb, var(--danger) 20%, transparent), transparent 62%),
    var(--bg);
}

/* =========================================================================
   v4：交互修复 / 移动端认证重构 / 收藏标签 / 欢迎横幅 / 最近·分析页 / 后台登录门
   ========================================================================= */

/* ---------------------------------------------------------------- 触控交互修复 */
html { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], input, select, textarea, label {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { -webkit-appearance: none; appearance: none; background-clip: padding-box; }
.btn, .icon-btn, .seg button, .tab, .nav-item, .menu-item { -webkit-user-select: none; user-select: none; }
.btn:active { opacity: 0.92; }
.icon-btn:active, .seg button:active, .tab:active { transform: scale(0.94); }
.nav-item:active, .menu-item:active { opacity: 0.85; }

/* 触屏设备上取消“粘性 hover”，避免点按后按钮保持高亮/变白 */
@media (hover: none) {
  .btn:hover { background: var(--btn-bg); border-color: var(--btn-bd); }
  .btn-ghost:hover { background: transparent; }
  .btn-danger:hover { background: var(--surface); }
  .btn-primary:hover { --btn-bg: var(--accent); --btn-bd: var(--accent); }
  .icon-btn:hover { background: transparent; color: var(--muted); }
  .tab:hover { color: var(--muted); }
  .seg button:hover { color: var(--muted); }
  .nav-item:hover { background: transparent; color: var(--ink-2); }
  .user-chip:hover { background: transparent; border-color: transparent; }
  .menu-item:hover { background: transparent; color: var(--ink-2); }
  .list-row:hover { background: transparent; }
  .dropzone:hover {
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.25));
  }
  .file-card:hover { transform: none; box-shadow: var(--sh-1); }
  .file-card:hover .thumb img { transform: none; }
  .rail-upload:hover { background: var(--accent); }
  .search input:hover, .input:hover, .select:hover { border-color: var(--line-strong); }
  html[data-theme="dark"] .dropzone:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  }
  html[data-theme="dark"] .btn-danger:hover { background: var(--surface); }
}

/* ---------------------------------------------------------------- 认证页：品牌插画与移动端重构 */
.auth-art { width: min(360px, 82%); margin: 6px auto 0; }
.auth-art svg { width: 100%; height: auto; display: block; }
.aa-f1 { animation: aaFloat 4.6s ease-in-out infinite alternate; }
.aa-f2 { animation: aaFloat 5.4s 0.9s ease-in-out infinite alternate; }
.aa-f3 { animation: aaFloat 4.2s 1.6s ease-in-out infinite alternate; }
.aa-lock { animation: aaFloat 6s 0.4s ease-in-out infinite alternate; }
@keyframes aaFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}
.aa-s1, .aa-s2, .aa-s3 { animation: aaTwinkle 2.6s ease-in-out infinite alternate; transform-origin: center; }
.aa-s2 { animation-delay: 0.8s; }
.aa-s3 { animation-delay: 1.4s; }
@keyframes aaTwinkle {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.auth-card-mark {
  width: 44px; height: 44px; margin: 0 auto 16px;
  border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, #2e8d74, #175647);
  color: #eaf5f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -10px rgba(20,80,63,.7);
}
.auth-card-mark .i { width: 22px; height: 22px; }
.auth-card-mark.mark-admin { background: linear-gradient(150deg, #3a4a5c, #17202b); }

@media (max-width: 1040px) {
  /* 品牌栏从“隐藏”改为紧凑头部：锁排 + 插画 + 特性胶囊 */
  .auth { grid-template-columns: 1fr; }
  .auth-brand {
    display: flex; flex-direction: column; gap: 14px;
    padding: 30px 22px 26px;
  }
  .auth-brand .auth-headline,
  .auth-brand .auth-lede,
  .auth-brand .auth-foot { display: none; }
  .auth-brand .auth-points {
    margin-top: 0; flex-direction: row; flex-wrap: wrap;
    justify-content: center; gap: 8px;
  }
  .auth-point {
    align-items: center; gap: 7px;
    font-size: 12px; line-height: 1.4;
    padding: 7px 12px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
    color: rgba(240,238,232,.82);
  }
  .auth-point .i { width: 14px; height: 14px; margin-top: 0; }
  .auth-point b { color: #f0eee8; }
  .auth-art { width: min(320px, 78%); }
  .auth-panel { min-height: auto; padding: 8px 20px 44px; }
  .auth-card { padding: 26px 22px 24px; box-shadow: var(--sh-2); }
}
@media (max-width: 400px) {
  .auth-point { font-size: 11.5px; }
  .auth-brand { padding: 24px 16px 22px; }
}

/* ---------------------------------------------------------------- 侧栏与顶栏移动端修复 */
.rail { height: 100vh; height: 100dvh; }
@media (max-width: 860px) {
  .rail {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: thin;
  }
  .rail-spacer { min-height: 10px; }
  .quota-card { flex: none; }
}
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; padding: 10px 14px; min-height: 0; }
  .topbar > div:nth-of-type(1) { min-width: 0; flex: 1 1 auto; }
  .topbar h1, .topbar .sub {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
  }
  .topbar-actions {
    margin-left: 0; flex: 1 1 100%; flex-wrap: wrap;
    row-gap: 8px;
  }
  .topbar-actions .search { display: block; order: 9; flex: 1 1 100%; width: 100%; }
  .topbar-actions .search input { height: 34px; }
  .topbar-actions .select { margin-left: auto; }
}

@media (max-width: 760px) {
  .hero-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-strip .mini-stat .v { font-size: 20px; }
}

/* ---------------------------------------------------------------- 收藏与标签 */
.star-btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--muted-2); cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.star-btn .i { width: 14px; height: 14px; }
.star-btn:hover { color: #d9a959; border-color: #ecd9ae; }
.star-btn.on { color: #d9a959; background: #fdf6e7; border-color: #ecd9ae; }
html[data-theme="dark"] .star-btn { background: rgba(30,34,40,.9); }
html[data-theme="dark"] .star-btn.on { background: rgba(154,107,31,.2); }

.thumb .star-btn {
  position: absolute; bottom: 8px; right: 8px; top: auto; z-index: 3;
  width: 27px; height: 27px; border-radius: 8px;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-3px);
  pointer-events: none;
}
.file-card:hover .thumb .star-btn,
.thumb .star-btn.on {
  opacity: 1; transform: none; pointer-events: auto;
}
@media (max-width: 760px) {
  .thumb .star-btn { opacity: 1; transform: none; pointer-events: auto; }
}

.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2.5px 9px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  border: 0; font-size: 11px; font-weight: 500; cursor: pointer;
  transition: all var(--fast) var(--ease); line-height: 1.5;
}
.tag-chip .i { width: 10px; height: 10px; stroke-width: 2.2; }
.tag-chip:hover { background: #dcebe4; }
.tag-chip.on { background: var(--accent); color: #fff; }
html[data-theme="dark"] .tag-chip { background: rgba(46,141,116,.18); color: #8fd3bd; }
html[data-theme="dark"] .tag-chip.on { background: var(--accent); color: #fff; }
.file-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.list-name .tag-chip { pointer-events: none; margin-left: 6px; }

.tag-filter {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 9px 13px; margin-bottom: 14px;
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
}
.tag-filter .tf-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tag-filter .tf-n { font-size: 11.5px; color: var(--muted-2); font-family: var(--num); margin-left: auto; }

.detail-star-tags { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.star-btn-lg { flex: none; }
.star-btn-lg.on { color: #9a6b1f; border-color: #ecd9ae; background: #fdf6e7; }
html[data-theme="dark"] .star-btn-lg.on { color: #d9a959; background: rgba(154,107,31,.18); }
.tag-editor {
  flex: 1; min-width: 200px; display: flex; flex-wrap: wrap;
  align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 9px; background: var(--surface-2);
}
.tag-editor .hint { font-size: 11.5px; }
.tag-input {
  flex: 1; min-width: 130px; height: 26px; border: 0 !important;
  background: transparent !important; padding: 0 4px !important;
  font-size: 12.5px; box-shadow: none !important;
}
.tag-input:focus { outline: none; }

/* ---------------------------------------------------------------- 统计彩色图标 */
.ms-ic {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center; margin-right: 2px;
}
.ms-ic .i { width: 13px; height: 13px; }
.ms-ic.tone-green { background: rgba(46,141,116,.14); color: var(--accent-2); }
.ms-ic.tone-gold { background: rgba(154,107,31,.14); color: var(--amber); }
.ms-ic.tone-teal { background: rgba(78,194,158,.18); color: #1f7a61; }
.ms-ic.tone-blue { background: rgba(77,127,196,.14); color: #4d7fc4; }
html[data-theme="dark"] .ms-ic.tone-teal { color: #4ec29e; }

/* ---------------------------------------------------------------- 欢迎横幅 */
.welcome-banner {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; margin-bottom: 14px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(140% 180% at 100% 0%, rgba(255,255,255,.14) 0%, transparent 42%),
    linear-gradient(118deg, var(--accent-2) 0%, var(--accent) 46%, var(--accent-ink) 100%);
  color: #eef7f3; box-shadow: 0 14px 34px -18px rgba(20,80,63,.55);
  position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, transparent 46%, #000 100%);
}
.wb-art { width: 168px; flex: none; position: relative; }
.wb-art svg { width: 100%; height: auto; display: block; }
.wb-float { animation: wbFloat 4.2s ease-in-out infinite alternate; }
.wb-float-2 { animation-delay: 1.3s; }
@keyframes wbFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
.wb-text { min-width: 0; position: relative; }
.wb-text h2 { font-size: 18px; letter-spacing: -0.02em; color: #fff; }
.wb-text p { margin-top: 5px; font-size: 12.5px; color: rgba(238,247,243,.75); }
.wb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; }
.wb-actions .btn {
  --btn-bg: rgba(255,255,255,.13); --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.24);
}
.wb-actions .btn:hover { --btn-bg: rgba(255,255,255,.22); }
.wb-actions .btn.btn-primary { --btn-bg: #fff; --btn-fg: var(--accent-ink); --btn-bd: #fff; }
@media (max-width: 760px) {
  .welcome-banner { padding: 16px; gap: 12px; }
  .wb-art { width: 104px; }
  .wb-text h2 { font-size: 15.5px; }
  .wb-text p { font-size: 11.5px; }
  .wb-actions { margin-top: 10px; }
}

/* ---------------------------------------------------------------- 最近文件（时间线） */
.recent-head {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 12px; font-size: 13px; color: var(--ink-2);
}
.recent-head .i { color: var(--accent); }
.recent-head span { margin-left: auto; font-size: 11.5px; color: var(--muted-2); font-family: var(--num); }
.tl {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1);
}
.tl-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  transition: background var(--fast) var(--ease);
  animation: popIn 260ms var(--ease) both;
}
.tl-row:last-child { border-bottom: 0; }
.tl-row:hover { background: var(--surface-2); }
.tl-dot {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.tl-dot .i { width: 15px; height: 15px; }
.tl-main { min-width: 0; flex: 1; }
.tl-name {
  display: block; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tl-star { color: #d9a959; margin-right: 3px; }
.tl-meta { display: block; font-size: 11.5px; color: var(--muted-2); font-family: var(--num); margin-top: 1px; }
.tl-actions { display: flex; gap: 3px; flex: none; }
@media (max-width: 640px) {
  .tl-actions { display: none; }
  .tl-row { padding: 11px 13px; }
}

/* ---------------------------------------------------------------- 存储分析 */
.ana-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px;
}
.ana-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1);
}
.ana-card.ana-top { grid-column: 1 / -1; }
.ana-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-2); margin-bottom: 14px;
}
.ana-head .i { color: var(--accent); }
.ana-badge {
  margin-left: auto; font-size: 11px; font-family: var(--num);
  color: var(--accent-ink); background: var(--accent-soft);
  padding: 2.5px 9px; border-radius: var(--r-pill);
}
.donut { width: 168px; display: block; margin: 4px auto 12px; }
.dn-seg { transition: stroke-dasharray var(--base) var(--ease); }
.dn-center-v { font-size: 24px; font-weight: 650; fill: var(--ink); text-anchor: middle; letter-spacing: -0.03em; }
.dn-center-k { font-size: 10.5px; fill: var(--muted-2); text-anchor: middle; }
.legend { display: flex; flex-direction: column; gap: 8px; }
.lg-row { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.lg-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.lg-name { color: var(--ink-2); }
.lg-val { margin-left: auto; color: var(--muted); font-size: 11.5px; }
.lg-pct { width: 46px; text-align: right; color: var(--ink-2); font-size: 11.5px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 108px; margin-bottom: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.bar-track {
  width: 100%; max-width: 30px; flex: 1; background: var(--bg-2);
  border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden;
}
.bar-track.slim { height: 6px; flex: none; border-radius: 999px; }
.bar-fill {
  width: 100%; background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border-radius: 6px 6px 0 0; min-height: 2px;
  animation: barUp 700ms var(--ease) both;
}
@keyframes barUp { from { height: 0; } }
.bar-n { font-size: 10px; color: var(--muted-2); height: 13px; line-height: 13px; }
.bar-l { font-size: 10.5px; color: var(--muted); }
.ana-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.top-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 4px; border-bottom: 1px solid var(--line);
}
.top-row:last-child { border-bottom: 0; }
.top-rank {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  display: grid; place-items: center; font-size: 11px;
  background: var(--bg-2); color: var(--muted);
}
.top-row:nth-child(2) .top-rank { background: rgba(154,107,31,.15); color: var(--amber); }
.top-row:nth-child(3) .top-rank { background: rgba(122,106,83,.16); color: #7a6a53; }
.top-main { flex: 1; min-width: 0; }
.top-line { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.top-line b {
  flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.top-line span { font-size: 11.5px; color: var(--muted); flex: none; }
@media (max-width: 860px) {
  .ana-grid { grid-template-columns: 1fr; }
  .ana-card { padding: 16px; }
}

/* ---------------------------------------------------------------- 后台登录门 */
#adminGate:not(.hidden) ~ .admin { display: none; }
#adminGate:not(.hidden) ~ .toasts { display: none; }

/* ---------------------------------------------------------------- v4.1 芯片内按钮重置 */
.tag-chip button,
.tag-filter button[data-clear-tag] {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; padding: 0; margin: 0;
  color: inherit; display: inline-grid; place-items: center;
  cursor: pointer; opacity: 0.8; line-height: 1;
}
.tag-chip button:hover,
.tag-filter button[data-clear-tag]:hover { opacity: 1; }
.tag-chip button .i,
.tag-filter button[data-clear-tag] .i { width: 11px; height: 11px; stroke-width: 2.4; }


/* =========================================================================
   v5：整屏背景照片 / 侧栏三段式 / 菜单钳制 / 审核中心 / 分享页动效 / 竖排修复
   ========================================================================= */

/* ---------------------------------------------------------------- 侧栏三段式：head / nav(滚动) / foot(固定) */
.rail { overflow: hidden; }
.rail-nav {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 18px;
  padding: 2px 2px 6px;
  scrollbar-width: thin; scrollbar-color: rgba(128,128,128,.35) transparent;
}
.rail-nav::-webkit-scrollbar { width: 5px; }
.rail-nav::-webkit-scrollbar-thumb { background: rgba(128,128,128,.3); border-radius: 99px; }
.rail-foot {
  flex: none; display: flex; flex-direction: column; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.rail-spacer { display: none; }
.quota-card { flex: none; }

/* 头像菜单：用户头 + 更宽条目 */
.menu { max-width: min(280px, calc(100vw - 16px)); }
.menu-user {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 7px;
}
.menu-user .t { min-width: 0; display: flex; flex-direction: column; }
.menu-user b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-user span { font-size: 11px; color: var(--muted-2); }
.menu-item .mi-x { margin-left: auto; color: var(--muted-2); }

/* ---------------------------------------------------------------- 上传面板：取消按钮 */
.up-cancel {
  width: 24px; height: 24px; flex: none;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--surface); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: all var(--fast) var(--ease);
}
.up-cancel:hover { color: var(--danger); border-color: var(--danger); }
.up-fill.cancel { background: linear-gradient(90deg, #b9b2a4, #8f887b); }

/* ---------------------------------------------------------------- 容量预警条 */
.quota-warn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, rgba(203,106,82,.12), rgba(203,106,82,.05));
  border: 1px solid rgba(203,106,82,.32);
  color: #a5503c; font-size: 12.5px;
}
html[data-theme="dark"] .quota-warn { color: #f0a08c; }
.quota-warn .i { flex: none; }

/* ---------------------------------------------------------------- 文本域 */
textarea.input { height: auto; min-height: 64px; padding-top: 9px; resize: vertical; line-height: 1.6; }

/* ---------------------------------------------------------------- 预览：图片翻页 */
.preview-head [data-nav] { flex: none; }
.preview-head [data-nav][disabled] { opacity: .3; cursor: default; }

/* =========================================================================
   登录 / 注册 v6：整屏浅色照片（白色纱罩）+ 白玻璃卡，自动浅色主题
   ========================================================================= */
.auth {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f6faf7;
  isolation: isolate;
}
/* 照片层：fixed 铺满视口，移动端同样连续 */
.auth::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: url("../img/auth-bg.jpg") center / cover no-repeat;
  animation: authBgIn 1.6s var(--ease) both;
}
@keyframes authBgIn { from { opacity: 0; transform: scale(1.045); } to { opacity: 1; transform: none; } }
/* 白纱渐层：整体明亮，保证深色文字可读且与照片无缝衔接 */
.auth::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(250, 252, 251, 0.94) 0%, rgba(250, 252, 251, 0.86) 40%, rgba(250, 252, 251, 0.52) 72%, rgba(250, 252, 251, 0.72) 100%),
    radial-gradient(70% 90% at 88% 8%, rgba(143, 211, 189, 0.20), transparent 60%);
}
.auth > * { position: relative; z-index: 1; }

.auth-brand { background: transparent; color: #2c463c; }
.auth-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 141, 116, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 141, 116, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  mask-image: linear-gradient(180deg, #000 40%, rgba(0, 0, 0, 0.4) 100%);
}
.auth-brand > * { position: relative; }
.auth-brand .brand-sub { color: #7d9a8e; }

/* 白玻璃登录卡（登录页恒为浅色主题） */
.auth-panel { background: transparent; }
.auth-card {
  width: 100%; max-width: 412px;
  padding: 34px 32px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px -30px rgba(50, 100, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #2c463c;
  position: relative; overflow: hidden;
}
/* 卡片顶部流光描边 */
.auth-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent 6%, #37a184 30%, #ffd66b 62%, #7fb8e6 90%, transparent 98%);
  background-size: 220% 100%;
  animation: cardSheen 5.5s linear infinite;
  opacity: .9;
}
@keyframes cardSheen {
  from { background-position: 130% 0; }
  to { background-position: -90% 0; }
}
.auth-card h2 { color: #22453a; letter-spacing: -0.02em; }
.auth-card .lede { color: #5c7368; }
.auth-card .hint { color: #8aa298; }
.auth-card .hint b { color: #35564a; }
.auth-card .field label { color: #3d584d; }
.auth-card .req-star { color: #cb6a52; font-weight: 600; }
.auth-card .input,
.auth-card .input-affix {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d8e5de;
  color: #24382f;
}
.auth-card .input-affix .i { color: #94aca1; }
.auth-card .input::placeholder { color: #a9bdb4; }
.auth-card .input:focus {
  border-color: #7fc79a;
  box-shadow: 0 0 0 3px rgba(78, 194, 158, 0.18);
  background: #ffffff;
}
.auth-card .tabs {
  background: #eef4f0;
  border-color: #e0ebe4;
}
.auth-card .tab { color: #7d9a8e; }
.auth-card .tab:hover { color: #35564a; }
.auth-card .tab.active {
  background: #ffffff;
  color: #1e6b58;
  box-shadow: 0 2px 10px -4px rgba(50, 100, 85, 0.35);
}
.auth-card .form-error {
  background: rgba(203, 106, 82, 0.1);
  border-color: rgba(203, 106, 82, 0.35);
  color: #a5503c;
}
.auth-card .auth-card-mark {
  background: linear-gradient(150deg, #37a184, #1e6b58);
  box-shadow: 0 10px 26px -10px rgba(78, 194, 158, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.auth-card .btn-primary {
  --btn-bg: linear-gradient(135deg, #37a184, #1e6b58);
  background: linear-gradient(135deg, #37a184, #1e6b58);
  border-color: transparent;
  box-shadow: 0 12px 30px -12px rgba(46, 141, 116, 0.65);
}
.auth-card .btn-primary:hover { background: linear-gradient(135deg, #41b092, #237a64); }

/* 左侧文案浅色化 */
.auth-headline { color: #22453a; }
.auth-headline em { color: #1e8f6e; }
.auth-lede { color: #5c7368; }
.auth-point { color: #4c6459; }
.auth-point .i { color: #1e8f6e; }
.auth-point b { color: #22453a; }
.auth-foot { color: #8aa298; }

/* 品牌区插画：柔和投影 */
.auth-brand .auth-art { filter: drop-shadow(0 16px 34px rgba(46, 141, 116, 0.22)); }
.auth-float-orb {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(52px); opacity: .4;
  animation: orbSlow 12s ease-in-out infinite alternate;
}
.auth-float-orb.o1 { width: 300px; height: 300px; left: -80px; bottom: -60px; background: rgba(143, 211, 189, 0.55); }
.auth-float-orb.o2 { width: 220px; height: 220px; right: 8%; top: -70px; background: rgba(255, 214, 107, 0.4); animation-delay: 2s; }
@keyframes orbSlow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(26px, -30px) scale(1.12); }
}

/* 移动端：同一张照片贯穿，紧凑品牌头 + 玻璃卡 */
@media (max-width: 1040px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 30px 22px 4px; }
  .auth-panel { min-height: auto; padding: 6px 20px 44px; }
  .auth-card { padding: 26px 22px 24px; }
  .auth-float-orb.o1 { width: 220px; height: 220px; }
}

/* =========================================================================
   v6：邮箱验证码 / 忘记密码 / 核对弹窗
   ========================================================================= */
/* 行内链接按钮 */
.link-btn {
  border: 0; background: transparent; padding: 0;
  font-size: 12.5px; color: #1e8f6e; cursor: pointer;
  font-weight: 550;
}
.link-btn:hover { text-decoration: underline; }

/* 六格验证码 */
.code-row { display: flex; align-items: center; gap: 10px; }
.code-boxes { display: flex; gap: 6px; flex: 1; min-width: 0; }
.code-cell {
  width: 100%; min-width: 0; aspect-ratio: 1 / 1.12;
  border: 1.5px solid #d8e5de; border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  text-align: center; font-size: 19px; font-weight: 650;
  font-family: var(--num); color: #22453a;
  caret-color: #1e8f6e;
  transition: all var(--fast) var(--ease);
  padding: 0;
}
.code-cell:focus {
  outline: none; border-color: #37a184;
  box-shadow: 0 0 0 3px rgba(78, 194, 158, 0.2);
  background: #fff;
  transform: translateY(-1px);
}
.code-cell.filled { border-color: #9fd3bd; background: #f4faf7; }
.code-cell.shake { animation: cellShake .4s var(--ease); border-color: #cb6a52; }
@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.code-send {
  flex: none; height: 40px; padding: 0 14px;
  font-size: 12.5px; white-space: nowrap;
  border: 1px solid #cfe6db; color: #1e6b58;
  background: #f0f8f4;
}
.code-send:hover { background: #e4f3ec; }
.code-send:disabled { opacity: .55; cursor: not-allowed; }
.code-send.counting { color: #8aa298; border-color: #e0ebe4; background: #f2f6f3; }
@media (max-width: 380px) {
  .code-cell { font-size: 16px; }
  .code-send { padding: 0 10px; font-size: 11.5px; }
}

/* 忘记密码：钥匙插画 */
.forgot-art {
  width: 64px; height: 64px; margin: 2px auto 8px;
  border-radius: 20px;
  background: #e8f6f0; border: 1px solid #cfe6db;
  display: grid; place-items: center;
  color: #1e6b58;
  animation: popIn 400ms var(--ease) both;
}
.forgot-art .i { width: 28px; height: 28px; }

/* 注册成功：邮件飞出动画 */
.mail-anim { width: 132px; margin: 4px auto 10px; }
.mail-anim svg { width: 100%; height: auto; overflow: visible; }
.ma-flap { transform-origin: 60px 24px; animation: flapOpen 1.1s .25s var(--ease) both; }
@keyframes flapOpen {
  0% { transform: rotateX(0deg); }
  60% { transform: rotateX(-58deg); }
  100% { transform: rotateX(0deg); }
}
.ma-dot { animation: dotFly 2.6s .8s ease-out infinite; opacity: 0; }
.ma-dot.d2 { animation-delay: 1.15s; }
.ma-dot.d3 { animation-delay: 1.5s; }
@keyframes dotFly {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -34px) scale(1.1); }
}

/* ---------- 验证码逐位核对弹窗 ---------- */
.cm {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(240, 248, 244, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  display: grid; place-items: center;
  animation: cmIn 240ms var(--ease) both;
}
@keyframes cmIn { from { opacity: 0; } to { opacity: 1; } }
.cm-card {
  width: min(360px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  box-shadow: 0 34px 90px -30px rgba(50, 100, 85, 0.45);
  padding: 26px 26px 22px;
  text-align: center;
  animation: cmCardIn 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes cmCardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.cm-card.shake { animation: cardShake .45s var(--ease); }
@keyframes cardShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
.cm-head {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.5px; color: #35564a; font-weight: 550;
}
.cm-head .i { color: #1e8f6e; }
.cm-digits { display: flex; justify-content: center; gap: 8px; margin: 20px 0 6px; }
.cm-digits .d {
  width: 42px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #f2f7f4; border: 1.5px solid #e0ebe4;
  font-family: var(--num); font-size: 21px; font-weight: 650; color: #22453a;
  animation: cmDigitPop 240ms var(--ease) both;
  transition: border-color .2s, background .2s, color .2s;
}
.cm-digits .d:nth-child(1) { animation-delay: 0ms; }
@keyframes cmDigitPop {
  from { opacity: 0; transform: scale(.5) translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cm-digits .d.judging { border-color: #7fb3e8; background: #edf4fc; }
.cm-digits .d.ok { border-color: #8fd3bd; background: #e8f6f0; color: #1e8f6e; }
.cm-digits .d.bad {
  border-color: #e08a76; background: #fbeeec; color: #cb6a52;
  animation: cmDigitPop 240ms var(--ease) both, digitNo .3s .1s var(--ease);
}
@keyframes digitNo {
  0%, 100% { transform: translateX(0); }
  33% { transform: translateX(-4px); }
  66% { transform: translateX(4px); }
}
.cm-result { height: 84px; display: grid; place-items: center; margin: 4px 0 0; }
.cm-result svg { width: 74px; height: 74px; display: none; }
.cm-result.show-ok .cm-check { display: block; animation: cmRingPop 480ms var(--ease) both; }
.cm-result.show-bad .cm-cross { display: block; animation: cmRingPop 480ms var(--ease) both; }
.cm-result .ck-ring { stroke-dasharray: 195; stroke-dashoffset: 195; animation: ringDraw 560ms 60ms var(--ease) forwards; }
.cm-result .ck-ring.bad { stroke-dashoffset: 195; }
.cm-result .ck-mark { stroke-dasharray: 48; stroke-dashoffset: 48; animation: markDraw 380ms 420ms var(--ease) forwards; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes markDraw { to { stroke-dashoffset: 0; } }
@keyframes cmRingPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.cm-msg { min-height: 20px; margin-top: 10px; font-size: 12.5px; color: #5c7368; }
.cm-msg.err { color: #a5503c; }
.cm-msg.good { color: #1e8f6e; font-weight: 550; }

/* =========================================================================
   云盘主区：氛围照片背景（极低透明度，不影响可读性）
   ========================================================================= */
.main { position: relative; }
.main::before {
  content: ""; position: fixed; inset: 0; left: var(--rail-w);
  z-index: 0; pointer-events: none;
  background: url("../img/auth-bg.jpg") center / cover no-repeat;
  opacity: 0.055;
  filter: blur(3px) saturate(0.85);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 55%, rgba(0,0,0,.75));
}
.main > * { position: relative; z-index: 1; }
html[data-theme="dark"] .main::before { opacity: 0.09; }
@media (max-width: 860px) {
  .main::before { left: 0; }
}

/* 欢迎横幅叠加照片，视觉更"实" */
.welcome-banner {
  background:
    linear-gradient(112deg, rgba(20, 84, 68, 0.92) 0%, rgba(30, 107, 88, 0.82) 52%, rgba(23, 86, 71, 0.88) 100%),
    url("../img/auth-bg.jpg") center / cover no-repeat;
}

/* =========================================================================
   分享页 v6：明媚天空风 —— 柔和渐变 + 贴纸点缀 + 白玻璃卡片
   ========================================================================= */
.share-page {
  position: relative; overflow-x: hidden;
  background: linear-gradient(175deg, #dcefff 0%, #eef9f1 46%, #fff6e6 100%);
}
/* 天空里的柔光色斑 */
.share-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.share-sky .blob {
  position: absolute; border-radius: 50%; filter: blur(58px); opacity: .55;
  animation: skyDrift 14s ease-in-out infinite alternate;
}
.share-sky .b1 { width: 420px; height: 420px; top: -160px; left: -120px; background: #bfe3ff; }
.share-sky .b2 { width: 360px; height: 360px; top: -120px; right: -100px; background: #ffe9b3; animation-delay: -4s; }
.share-sky .b3 { width: 400px; height: 400px; bottom: -170px; left: 16%; background: #c9f0d9; animation-delay: -8s; }
.share-sky .b4 { width: 300px; height: 300px; bottom: -120px; right: -60px; background: #ffd9c9; animation-delay: -2s; }
@keyframes skyDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(36px, -26px) scale(1.1); }
}
.share-page > * { position: relative; z-index: 1; }

/* ---------- 周围的小图片点缀：贴纸漂浮 ---------- */
.share-stickers { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.stk { position: absolute; opacity: 0; filter: drop-shadow(0 10px 22px rgba(90, 130, 160, 0.22)); }
.stk-sun    { width: 84px;  top: 6%;  left: 9%;  animation: stkIn .8s .15s var(--ease) both, stkBob 5.5s 1s ease-in-out infinite; }
.stk-plane  { width: 116px; top: 11%; right: 10%; animation: stkIn .8s .3s var(--ease) both, stkFly 9s 1s ease-in-out infinite; }
.stk-cloud  { width: 126px; bottom: 12%; left: 7%; animation: stkIn .8s .45s var(--ease) both, stkBob 6.5s 1.2s ease-in-out infinite; }
.stk-photos { width: 104px; bottom: 9%; right: 9%; animation: stkIn .8s .6s var(--ease) both, stkBob 6s .8s ease-in-out infinite; }
.stk-balloon{ width: 58px;  top: 38%; right: 4.5%; animation: stkIn .8s .75s var(--ease) both, stkSway 7s 1s ease-in-out infinite; }
.stk-flower { width: 76px;  top: 40%; left: 4.5%; animation: stkIn .8s .9s var(--ease) both, stkSway 8s .5s ease-in-out infinite; }
.stk-note   { width: 64px;  bottom: 30%; left: 15%; animation: stkIn .8s 1.05s var(--ease) both, stkBob 5s 1.6s ease-in-out infinite; }
.stk-star   { width: 56px;  bottom: 34%; right: 16%; animation: stkIn .8s 1.2s var(--ease) both, stkSpin 14s 1.4s linear infinite; }
@keyframes stkIn { from { opacity: 0; transform: scale(.4) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes stkBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-13px) rotate(3deg); }
}
@keyframes stkFly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  35% { transform: translate(-26px, 16px) rotate(-7deg); }
  70% { transform: translate(14px, 26px) rotate(5deg); }
}
@keyframes stkSway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg) translateY(-8px); }
}
@keyframes stkSpin {
  from { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-10px); }
  to { transform: rotate(360deg) translateY(0); }
}
@media (max-width: 1120px) {
  .stk-plane, .stk-photos { width: 90px; }
  .stk-balloon, .stk-flower { width: 48px; }
  .stk-note, .stk-star { width: 44px; }
}
@media (max-width: 820px) {
  .stk-sun { width: 56px; top: 4%; left: 6%; }
  .stk-plane { width: 72px; top: 8%; right: 6%; }
  .stk-cloud { width: 84px; bottom: 6%; left: 4%; }
  .stk-photos { width: 64px; bottom: 7%; right: 5%; }
  .stk-balloon, .stk-star { display: none; }
  .stk-flower { width: 52px; top: 26%; left: 3.5%; }
  .stk-note { width: 44px; bottom: 22%; left: 8%; }
}

/* ---------- 品牌与底部（浅色化） ---------- */
.share-brand .brand-mark {
  background: linear-gradient(150deg, #37a184, #1e6b58);
  box-shadow: 0 10px 24px -10px rgba(46, 141, 116, 0.65);
  color: #eaf5f1;
}
.share-brand .brand-name { font-size: 14px; color: #22453a; font-weight: 600; }
.share-brand .brand-sub { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7d9a8e; }
.share-foot { color: #8aa298; }
.share-foot b { color: #35564a; }

/* ---------- 漂浮小文件（浅色适配） ---------- */
.share-floaties { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.share-floaties .fl {
  position: absolute; color: rgba(46, 141, 116, 0.28);
  animation: flFloat linear infinite;
}
.share-floaties .fl .i { width: 100%; height: 100%; stroke-width: 1.4; }
.share-floaties .fl:nth-child(2n) { color: rgba(226, 185, 106, 0.32); }
.share-floaties .fl:nth-child(3n) { animation-duration: 17s; }
@keyframes flFloat {
  0% { transform: translateY(6vh) rotate(-6deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(-104vh) rotate(10deg); opacity: 0; }
}

/* ---------- 白玻璃卡片 ---------- */
.share-page .share-card {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 70px -30px rgba(60, 100, 120, 0.35), 0 4px 16px -6px rgba(60, 100, 120, 0.12);
  animation: shareCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes shareCardIn {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.share-page .share-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent 6%, #37a184 30%, #ffd66b 62%, #7fb8e6 90%, transparent 98%);
  background-size: 220% 100%;
  animation: cardSheen 5.5s linear infinite;
}
.share-page .share-card-top {
  background: linear-gradient(180deg, rgba(46, 141, 116, 0.07), rgba(46, 141, 116, 0.02));
  border-bottom: 1px solid #e6efe9;
}
.share-page .share-file-icon {
  background: #e8f6f0;
  border-color: #cfe6db;
  color: #1e6b58;
}
.share-page .share-note {
  background: #f6faf7;
  border-color: #e2ede6;
  color: #3d584d;
}
.share-page .share-progress { background: #edf3ef; }

/* ---------- 主按钮：绿色渐变 + 扫光 + 呼吸 ---------- */
.share-page .btn-primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #37a184, #1e6b58);
  border-color: transparent;
  box-shadow: 0 14px 34px -12px rgba(46, 141, 116, 0.7);
}
.share-page .btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg);
  animation: btnShine 3.2s ease-in-out infinite;
}
@keyframes btnShine {
  0% { left: -70%; }
  46%, 100% { left: 130%; }
}
.share-page .btn-primary.loading { animation: btnPulse 1.15s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 14px 34px -12px rgba(46, 141, 116, 0.7); }
  50% { box-shadow: 0 14px 46px -8px rgba(46, 141, 116, 0.95); }
}
.share-page .btn:not(.btn-primary) {
  background: #ffffff;
  border-color: #dbe7e1;
  color: #3d584d;
}
.share-page .btn:not(.btn-primary):hover { background: #f3f8f5; }

/* =========================================================================
   竖排文字根治：keep-all + 单行省略（后台与全站标题类元素）
   ========================================================================= */
.admin h1, .admin h2, .admin h3, .admin .sub,
.admin .nav-label, .admin .stat .k, .admin .stat .v,
.admin .badge, .admin .chip, .admin .btn,
.admin-top h1, .admin-top .sub {
  word-break: keep-all;
  overflow-wrap: break-word;
}
.admin table { table-layout: auto; }
.admin table th, .admin table td {
  white-space: nowrap;
  word-break: keep-all;
}
.admin .table-wrap, .admin .table-scroll { overflow-x: auto; }
.stat .v { white-space: nowrap; }
.badge { white-space: nowrap; }

/* =========================================================================
   审核中心
   ========================================================================= */
.rv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .rv-stats { grid-template-columns: repeat(2, 1fr); } }
.rv-stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-1);
}
.rv-stat .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
}
.rv-stat .ic .i { width: 18px; height: 18px; }
.rv-stat .ic.tone-all { background: rgba(46, 141, 116, 0.14); color: var(--accent-2); }
.rv-stat .ic.tone-bad { background: rgba(203, 106, 82, 0.14); color: var(--danger); }
.rv-stat .ic.tone-user { background: rgba(154, 107, 31, 0.14); color: var(--amber); }
.rv-stat .ic.tone-ban { background: rgba(120, 90, 60, 0.16); color: #8a6a45; }
.rv-stat b { display: block; font-size: 19px; letter-spacing: -0.02em; font-family: var(--num); }
.rv-stat span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.rv-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-chip {
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 12.5px; cursor: pointer;
  transition: all var(--fast) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
  word-break: keep-all; white-space: nowrap;
}
.rv-chip .n { font-size: 11px; font-family: var(--num); opacity: .75; }
.rv-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.rv-chip.on {
  background: var(--accent-soft); color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.rv-chip.chip-bad.on {
  background: rgba(203, 106, 82, 0.14); color: var(--danger);
  border-color: rgba(203, 106, 82, 0.4);
}

.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 12px; }
.rv-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  animation: popIn 300ms var(--ease) both;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.rv-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.rv-card.violated { border-color: rgba(203, 106, 82, 0.5); }
.rv-thumb {
  position: relative; height: 128px;
  background:
    linear-gradient(rgba(128,128,128,.06) 1px, transparent 1px) 0 0 / 100% 14px,
    var(--bg-2);
  display: grid; place-items: center; overflow: hidden; cursor: zoom-in;
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--base) var(--ease); }
.rv-card:hover .rv-thumb img { transform: scale(1.045); }
.rv-thumb .glyph { color: var(--muted-2); }
.rv-flag {
  position: absolute; top: 8px; left: 8px;
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 4px;
  word-break: keep-all; white-space: nowrap;
}
.rv-flag.bad { background: rgba(203, 106, 82, 0.92); color: #fff; }
.rv-flag.ok { background: rgba(46, 141, 116, 0.88); color: #fff; }
.rv-ext {
  position: absolute; bottom: 8px; right: 8px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(10, 14, 12, 0.62); color: rgba(255, 255, 255, 0.85);
  font-size: 10px; font-family: var(--num); text-transform: uppercase;
}
.rv-body { padding: 11px 13px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.rv-name {
  font-size: 13px; font-weight: 550; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-all; min-height: 2.6em;
}
.rv-owner { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); word-break: keep-all; }
.rv-owner .u-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rv-owner .u-dot.ok { background: var(--accent-2); }
.rv-owner .u-dot.bad { background: var(--danger); }
.rv-meta { font-size: 11px; color: var(--muted-2); font-family: var(--num); }
.rv-reason {
  font-size: 11.5px; color: #a5503c;
  background: rgba(203, 106, 82, 0.1);
  border: 1px dashed rgba(203, 106, 82, 0.36);
  border-radius: 7px; padding: 5px 8px;
  word-break: keep-all;
}
html[data-theme="dark"] .rv-reason { color: #f0a08c; }
.rv-actions { display: flex; gap: 5px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.rv-actions .btn { flex: 1; min-width: 0; justify-content: center; padding: 0 8px; }

.rv-pager { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 16px; }
.rv-pager .pg { font-size: 12px; color: var(--muted); font-family: var(--num); }

/* 灯箱 */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 10, 9, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  animation: lbIn 220ms var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb img {
  max-width: min(1100px, 92vw); max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  animation: lbZoom 260ms var(--ease) both;
}
@keyframes lbZoom { from { transform: scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lb-x {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid; place-items: center; cursor: pointer;
}
.lb-x:hover { background: rgba(255, 255, 255, 0.2); }
.lb-cap {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85); font-size: 12.5px;
  background: rgba(10, 16, 14, 0.6); padding: 7px 14px; border-radius: 99px;
  max-width: 80vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 文本预览（审核） */
.rv-text {
  font-family: var(--num); font-size: 12.5px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-all;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px;
  max-height: 46vh; overflow: auto; margin: 0;
}

/* 违规处置弹窗选项 */
.vio-options { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.vio-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vio-row label { font-size: 12.5px; color: var(--muted); min-width: 74px; word-break: keep-all; }
.seg-days { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg-days button {
  height: 30px; padding: 0 12px; border: 0; background: transparent;
  font-size: 12px; color: var(--muted); cursor: pointer;
  transition: all var(--fast) var(--ease);
  word-break: keep-all;
}
.seg-days button + button { border-left: 1px solid var(--line); }
.seg-days button.on { background: var(--danger); color: #fff; }

@media (max-width: 640px) {
  .rv-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .rv-thumb { height: 96px; }
}

/* seg 复用于自适应宽度场景（审核中心 Tab）时防止塌缩竖排 */
.rv-tabs { width: max-content; max-width: 100%; }
.rv-tabs button { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; }

/* seg 图标按钮是固定 30px 宽；带文字的 Tab 需要恢复自适应宽度 */
.rv-tabs button {
  width: auto;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 分享卡内部元素（浅色适配 + 动效增强） */
.share-page .share-card-top h1 { color: #22453a; }
.share-page .share-card-top .meta { color: #7d9a8e !important; }
.share-page .muted, .share-page .hint { color: #7d9a8e !important; }
.share-page h1, .share-page h2, .share-page h3 { color: #22453a; }
.share-page .input, .share-page .input-affix {
  background: #ffffff !important;
  border-color: #dbe7e1 !important;
  color: #2c463c !important;
}
.share-page .input::placeholder { color: #a9bdb4 !important; }
.share-page .input:focus {
  border-color: #7fc79a !important;
  box-shadow: 0 0 0 3px rgba(78, 194, 158, 0.18) !important;
}
/* 预览图片：白色相框 + 渐显 */
.share-page .share-img-wrap {
  border: 1px solid #e2ede6 !important;
  background: #f4f9f6 !important;
  box-shadow: 0 10px 28px -14px rgba(60, 100, 120, 0.3);
  transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.share-page .share-img-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(60, 100, 120, 0.42);
}
/* 失效状态卡片里的图标 */
.share-page .share-dead .glyph { color: #b0763f; }
.share-page .share-dead h2 { color: #22453a; }
.share-page .share-dead p { color: #5c7368; }
.share-page .icon-btn { color: rgba(238, 244, 241, 0.75); }
