/* ============================================================
   龙神网盘 - 设计系统 main.css
   气质定位：深邃星幕 + 玻璃拟态 + 流动极光（首页）
              轻盈云白 + 靛蓝主色（控制台）
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  /* 主色 */
  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef0fe;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22c3e6;
  --gold: #f5b73d;
  --green: #22b573;
  --red: #f2506b;
  --pink: #ec4899;
  --teal: #14b8a6;
  --amber: #f5a623;
  --blue: #4c8dff;

  /* 中性色（控制台浅色） */
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f7f8fc;
  --surface-3: #eef1f8;
  --border: #e4e8f2;
  --border-strong: #d3d9e8;
  --text: #171b2e;
  --text-2: #545c75;
  --text-3: #939bb2;

  /* 深色（首页/分享页） */
  --ink: #0b1020;
  --ink-2: #10162e;
  --ink-line: rgba(255, 255, 255, 0.09);
  --ink-text: #eef1fa;
  --ink-text-2: #a6aec9;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);

  --radius: 14px;
  --radius-s: 10px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(23, 27, 46, 0.04), 0 10px 28px rgba(23, 27, 46, 0.07);
  --shadow-lg: 0 24px 70px rgba(23, 27, 46, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }
::selection { background: rgba(79, 70, 229, 0.22); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c9d0e2; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb7d1; background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用组件 ---------- */
.ic { width: 20px; height: 20px; flex: none; }
.ic-16 { width: 16px; height: 16px; flex: none; }
.ic-22 { width: 22px; height: 22px; flex: none; }
.ic-28 { width: 28px; height: 28px; flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79, 70, 229, 0.4); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover:not(:disabled) { background: #e3e6fd; }
.btn-line { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-line:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #fdeef1; color: var(--red); }
.btn-danger:hover:not(:disabled) { background: #fbe0e6; }
.btn-gold {
  background: linear-gradient(135deg, #ffd777, var(--gold));
  color: #4a3208;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(245, 183, 61, 0.4);
}
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(245, 183, 61, 0.5); }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.input::placeholder { color: var(--text-3); }
textarea.input { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.6; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-3);
  color: var(--text-2);
}
.pill-gold { background: rgba(245, 183, 61, 0.16); color: #a97a12; }
.pill-green { background: rgba(34, 181, 115, 0.14); color: #15875a; }
.pill-red { background: rgba(242, 80, 107, 0.13); color: #d33a55; }
.pill-blue { background: var(--primary-soft); color: var(--primary); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex: none;
  user-select: none;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet) 55%, var(--cyan));
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  flex: none;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s var(--ease) infinite;
}
.logo-name { font-size: 18px; letter-spacing: 0.5px; }
.logo-name small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 2.5px; color: var(--text-3); margin-top: -2px; }

@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

/* ---------- Toast ---------- */
#toast-root {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(23, 27, 46, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.35s var(--ease);
  backdrop-filter: blur(8px);
  max-width: min(86vw, 480px);
}
.toast.leaving { animation: toast-out 0.3s var(--ease) forwards; }
.toast-ok { color: #7ef0b2; }
.toast-err { color: #ff9db0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.95); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(0.96); } }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 34, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.25s var(--ease);
}
.modal {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lg);
  animation: pop-in 0.32s var(--ease);
  overflow: hidden;
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}
.modal-title { font-size: 16.5px; font-weight: 700; }
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-3);
  border-radius: 9px;
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 18px 22px; overflow: auto; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 22px 20px;
}
.modal-tip { font-size: 12.5px; color: var(--text-3); line-height: 1.7; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* ---------- 右键/长按菜单 ---------- */
.ctx-menu {
  position: fixed;
  z-index: 1100;
  min-width: 168px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 6px;
  animation: pop-in 0.16s var(--ease);
  user-select: none;
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8.5px 12px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.ctx-item:hover { background: var(--primary-soft); color: var(--primary); }
.ctx-item.danger { color: var(--red); }
.ctx-item.danger:hover { background: #fdeef1; color: var(--red); }
.ctx-item .ic { width: 16px; height: 16px; }
.ctx-sep { height: 1px; background: var(--border); margin: 5px 8px; }

/* ---------- 进度条 ---------- */
.progress {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.25s var(--ease);
}

/* ---------- 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 20px;
  color: var(--text-3);
  text-align: center;
  gap: 6px;
}
.empty .ic { width: 46px; height: 46px; color: #c6cde0; margin-bottom: 8px; }
.empty b { color: var(--text-2); font-size: 15px; font-weight: 600; }

/* ============================================================
   首页（深色海报）
   ============================================================ */
.page-dark {
  background: var(--ink);
  color: var(--ink-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 极光背景 */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}
.aurora .a1 { width: 560px; height: 560px; background: #4338ca; top: -180px; left: -120px; }
.aurora .a2 { width: 480px; height: 480px; background: #0e7490; top: 10%; right: -140px; animation-delay: -4s; }
.aurora .a3 { width: 520px; height: 520px; background: #7c3aed; bottom: -200px; left: 32%; animation-delay: -8s; opacity: 0.34; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 34px) scale(1.12); }
}

/* 网格纹理 */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 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: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 30%, transparent 78%);
}

/* 顶部导航 */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 60px);
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
  padding-top: 10px;
  padding-bottom: 10px;
}
.nav .logo-name { color: #fff; }
.nav .logo-name small { color: var(--ink-text-2); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--ink-text-2);
  font-size: 14px;
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: right 0.25s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 9px; color: var(--ink-text); font-size: 13.5px; cursor: pointer; }
.btn-on-dark { background: var(--glass-strong); color: #fff; border: 1px solid var(--ink-line); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.16); }

/* Hero 海报 */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 150px clamp(20px, 6vw, 72px) 90px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(245, 183, 61, 0.18), rgba(245, 183, 61, 0.05));
  border: 1px solid rgba(245, 183, 61, 0.4);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 183, 61, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 183, 61, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(245, 183, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 183, 61, 0); }
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 22px 0 18px;
  color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 45%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--ink-text-2);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.9;
}
.hero-sub b { color: #ffd777; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  color: var(--ink-text-2);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .ic { width: 15px; height: 15px; color: #6ee7b7; }

/* Hero 插画 */
.hero-art { position: relative; height: 540px; }
.art-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.art-ring::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.art-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  width: 300px;
  filter: drop-shadow(0 24px 44px rgba(79, 70, 229, 0.45));
  animation: floaty 7s ease-in-out infinite;
}
.art-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  animation: drift 9s ease-in-out infinite alternate;
}
.art-orb.o1 { width: 190px; height: 190px; background: var(--indigo); top: 14%; left: 12%; }
.art-orb.o2 { width: 150px; height: 150px; background: var(--cyan); bottom: 12%; right: 10%; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { transform: translate(-50%, -54%) translateY(0); }
  50% { transform: translate(-50%, -54%) translateY(-16px); }
}

/* 漂浮卡片 */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 11px 15px;
  color: #fff;
  font-size: 12.5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: bob 6s ease-in-out infinite;
  white-space: nowrap;
}
.float-card .ic { width: 17px; height: 17px; }
.float-card b { font-size: 13px; }
.float-card .sub { color: var(--ink-text-2); font-size: 11px; display: block; }
.fc-1 { top: 7%; left: 2%; animation-delay: 0s; }
.fc-1 .ic { color: #7ef0b2; }
.fc-2 { top: 36%; right: 0; animation-delay: 1.4s; }
.fc-2 .ic { color: var(--cyan); }
.fc-3 { bottom: 15%; left: 6%; animation-delay: 2.6s; }
.fc-3 .ic { color: #f0abfc; }
.fc-4 { bottom: 27%; right: 5%; animation-delay: 3.8s; }
.fc-4 .ic { color: var(--gold); }
.fc-4 b { color: var(--gold); font-size: 17px; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mini-progress { width: 90px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.mini-progress > i { display: block; height: 100%; width: 72%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #6ee7b7); animation: slide 2.4s var(--ease) infinite; }
@keyframes slide { 0% { width: 18%; } 60% { width: 82%; } 100% { width: 96%; } }
.eq { display: flex; align-items: flex-end; gap: 2.5px; height: 15px; }
.eq i { width: 3px; border-radius: 2px; background: #f0abfc; animation: eq 0.9s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 80%; animation-delay: 0.18s; }
.eq i:nth-child(3) { height: 55%; animation-delay: 0.36s; }
.eq i:nth-child(4) { height: 95%; animation-delay: 0.54s; }
@keyframes eq { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* 数据统计带 */
.stats-band {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px) 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  padding: 26px 28px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); }
.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.stat-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stat-ic.c1 { background: rgba(99, 102, 241, 0.22); color: #a5b4fc; }
.stat-ic.c2 { background: rgba(34, 195, 230, 0.18); color: #67e8f9; }
.stat-ic.c3 { background: rgba(245, 183, 61, 0.18); color: var(--gold); }
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.stat-num small { font-size: 15px; font-weight: 600; color: var(--ink-text-2); margin-left: 4px; }
.stat-label { color: var(--ink-text-2); font-size: 13.5px; margin-top: 4px; }
.stats-note {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-text-2);
  font-size: 12.5px;
  letter-spacing: 1px;
}
.stats-note b { color: var(--gold); font-weight: 600; }

/* 功能区 */
.section { position: relative; z-index: 1; padding: 84px clamp(20px, 6vw, 72px); max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--ink-line);
  background: var(--glass);
  color: #a5b4fc;
  font-size: 12.5px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: #fff; letter-spacing: 1px; }
.section-head p { color: var(--ink-text-2); margin-top: 12px; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(165, 180, 252, 0.35);
}
.feature-card .f-ic {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(34, 195, 230, 0.18));
  color: #c7d2fe;
}
.feature-card:hover .f-ic { background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; }
.feature-card h3 { font-size: 16.5px; color: #fff; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--ink-text-2); font-size: 13.5px; line-height: 1.85; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-l);
  padding: 30px 28px;
  position: relative;
}
.step-card .no {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.step-card h3 { color: #fff; font-size: 17px; margin: 12px 0 8px; }
.step-card p { color: var(--ink-text-2); font-size: 13.5px; line-height: 1.8; }

/* CTA 横幅 */
.cta-band {
  position: relative;
  z-index: 1;
  margin: 30px clamp(20px, 6vw, 72px) 90px;
  max-width: 1160px;
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(99, 102, 241, 0.4), transparent 60%),
    radial-gradient(60% 130% at 85% 100%, rgba(34, 195, 230, 0.28), transparent 60%),
    var(--glass);
  border: 1px solid var(--ink-line);
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; font-weight: 800; }
.cta-band h2 .grad {
  background: linear-gradient(100deg, #fcd34d, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-band p { color: var(--ink-text-2); margin: 14px 0 30px; }

/* 页脚 */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ink-line);
  padding: 34px clamp(20px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-text-2);
  font-size: 13px;
}
.footer .links { display: flex; gap: 22px; }
.footer .links a:hover { color: #fff; }

/* ---------- 登录/注册弹窗（深色风格） ---------- */
.auth-modal {
  width: min(430px, 100%);
  background: linear-gradient(170deg, #161d38, #0e1428);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  color: var(--ink-text);
  overflow: hidden;
  animation: pop-in 0.35s var(--ease);
}
.auth-modal .modal-head { padding: 24px 28px 0; }
.auth-modal .modal-title { color: #fff; }
.auth-modal .modal-close { background: rgba(255, 255, 255, 0.08); color: var(--ink-text-2); }
.auth-modal .modal-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 28px 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 11px;
}
.auth-tabs button {
  flex: 1;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tabs button.active { background: linear-gradient(135deg, var(--primary), var(--indigo)); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4); }
.auth-body { padding: 22px 28px 26px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--ink-text-2); margin-bottom: 7px; }
.field .input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  height: 44px;
}
.field .input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); background: rgba(255, 255, 255, 0.08); }
.field .input::placeholder { color: rgba(255, 255, 255, 0.3); }
.auth-error {
  display: none;
  background: rgba(242, 80, 107, 0.14);
  border: 1px solid rgba(242, 80, 107, 0.35);
  color: #ffb3c0;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-error.show { display: block; animation: shake 0.35s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.auth-submit { width: 100%; height: 46px; font-size: 15px; margin-top: 4px; }
.auth-alt { text-align: center; color: var(--ink-text-2); font-size: 13px; margin-top: 16px; }
.auth-alt a { color: #a5b4fc; cursor: pointer; }
.auth-alt a:hover { color: #fff; }
.auth-pwd-wrap { position: relative; }
.auth-pwd-wrap .toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--ink-text-2);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
}
.auth-pwd-wrap .toggle:hover { color: #fff; }

/* ============================================================
   控制台（浅色）
   ============================================================ */
.app { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 58px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}
.topbar .logo-name { color: var(--text); }
.topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.topbar-search .ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.topbar-search input {
  width: 100%;
  height: 36px;
  border: none;
  background: var(--surface-3);
  border-radius: 99px;
  padding: 0 16px 0 36px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all 0.15s;
}
.topbar-search input:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--primary-soft), 0 0 0 3.5px rgba(79, 70, 229, 0.25); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.user-chip:hover { background: var(--surface-3); }
.user-chip .name { font-size: 13.5px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  animation: pop-in 0.18s var(--ease);
  z-index: 200;
}
.user-menu.show { display: block; }
.user-menu .um-head { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); margin-bottom: 5px; }
.user-menu .um-head b { font-size: 14px; display: block; }
.user-menu .um-head span { font-size: 12px; color: var(--text-3); }

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

/* 侧边栏 */
.sidebar {
  width: 218px;
  flex: none;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}
.side-title { font-size: 11.5px; color: var(--text-3); letter-spacing: 1.5px; padding: 8px 12px 6px; }
.side-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 11px;
  border: none;
  background: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  font-family: inherit;
}
.side-item .ic { width: 18px; height: 18px; }
.side-item:hover { background: var(--surface-3); color: var(--text); }
.side-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-item .count { margin-left: auto; font-size: 12px; color: var(--text-3); }
.side-item.active .count { color: var(--primary); }

.storage-card {
  margin-top: auto;
  background: linear-gradient(150deg, #eef0fe, #f6f4ff);
  border: 1px solid #e0e3fb;
  border-radius: 16px;
  padding: 16px;
}
.storage-card .sc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.storage-card .sc-head b { font-size: 13px; color: var(--text); }
.storage-num { font-size: 21px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.storage-num small { font-size: 12px; color: var(--text-2); font-weight: 500; margin-left: 5px; }
.storage-bar { height: 7px; border-radius: 99px; background: rgba(79, 70, 229, 0.14); overflow: hidden; margin: 9px 0 8px; }
.storage-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width 0.6s var(--ease); }
.storage-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-2); }
.promo-mini {
  margin-top: 12px;
  border-radius: 16px;
  padding: 15px;
  background: linear-gradient(150deg, #171b2e, #2b2f52);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo-mini::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(245, 183, 61, 0.22);
  filter: blur(30px);
  top: -50px;
  right: -40px;
}
.promo-mini b { font-size: 13.5px; display: block; position: relative; }
.promo-mini span { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); display: block; margin-top: 4px; position: relative; }
.promo-mini .pill-gold { margin-top: 9px; position: relative; }

/* 主内容区 */
.content { flex: 1; min-width: 0; padding: 22px clamp(16px, 3vw, 34px) 40px; display: flex; flex-direction: column; }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 15px; }
.crumb a, .crumb span { padding: 4px 9px; border-radius: 8px; cursor: pointer; transition: all 0.14s; white-space: nowrap; }
.crumb a:hover { background: var(--surface-3); color: var(--primary); }
.crumb .cur { font-weight: 700; color: var(--text); cursor: default; }
.crumb .sep { color: var(--text-3); cursor: default; padding: 4px 0; display: inline-flex; }
.crumb .sep .ic { width: 14px; height: 14px; }
.view-title { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(23, 27, 46, 0.03);
}
.toolbar .sp { flex: 1; }
.sel-bar {
  display: none;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, var(--primary-soft), #f4f3ff);
  border: 1px solid #dcdcfb;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 14px;
  animation: pop-in 0.22s var(--ease);
}
.sel-bar.show { display: flex; }
.sel-bar .sel-num { font-size: 13.5px; font-weight: 600; color: var(--primary); }
.sel-bar .sp { flex: 1; }

/* 文件列表 */
.file-area { flex: 1; position: relative; }
.file-area.dragging > .file-table { opacity: 0.4; }
.drop-hint {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 2px dashed var(--primary);
  border-radius: var(--radius-l);
  background: rgba(79, 70, 229, 0.06);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}
.file-area.dragging .drop-hint { display: flex; }
.drop-hint .ic { width: 40px; height: 40px; }

.file-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(23, 27, 46, 0.03); }
.ft-head, .ft-row {
  display: grid;
  grid-template-columns: 40px 44px minmax(0, 1fr) 110px 150px 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.ft-head {
  height: 42px;
  font-size: 12.5px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  user-select: none;
}
.ft-head .sortable { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 5px; }
.ft-head .sortable:hover { color: var(--primary); background: var(--primary-soft); }
.ft-head .sortable .ic { width: 13px; height: 13px; }
.ft-row {
  height: 56px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.13s;
  position: relative;
}
.ft-row:last-child { border-bottom: none; }
.ft-row:hover { background: var(--surface-2); }
.ft-row.selected { background: var(--primary-soft); }
.ft-row.selected:hover { background: #e5e8fd; }
.ft-row .cb { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }
.ft-row .cb i {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  transition: all 0.14s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}
.ft-row:hover .cb i, .ft-row.selected .cb i { border-color: var(--primary); }
.ft-row.selected .cb i { background: var(--primary); border-color: var(--primary); color: #fff; }
.ft-row .cb i .ic { width: 12px; height: 12px; }
.ft-row .f-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ft-row .f-name .nm {
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.ft-row .f-name .nm:hover { color: var(--primary); }
.ft-row .f-size, .ft-row .f-time { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ft-row .f-time { white-space: nowrap; }
.ft-row .f-more {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  border-radius: 8px;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.14s;
}
.ft-row:hover .f-more { opacity: 1; }
.ft-row .f-more:hover { background: var(--surface-3); color: var(--text); }

/* 文件类型图标配色 */
.t-folder { color: var(--blue); }
.t-audio { color: var(--pink); }
.t-video { color: var(--violet); }
.t-image { color: var(--green); }
.t-archive { color: var(--amber); }
.t-doc { color: var(--blue); }
.t-code { color: var(--teal); }
.t-other { color: #8a93a6; }

/* 上传队列 */
.upload-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
  overflow: hidden;
  animation: pop-in 0.3s var(--ease);
}
.upload-panel.show { display: block; }
.up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
}
.up-head button { border: none; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; }
.up-head button:hover { color: var(--red); }
.up-list { max-height: 260px; overflow-y: auto; padding: 8px; }
.up-item { padding: 9px 10px; border-radius: 10px; }
.up-item:hover { background: var(--surface-2); }
.up-item .ui-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-bottom: 6px; }
.up-item .ui-top .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .ui-top .p { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.up-item.ok .ui-top .p { color: var(--green); }
.up-item.err .ui-top .p { color: var(--red); }
.up-item .progress { height: 4px; }

/* 预览模态 */
.preview-box { background: #0b1020; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.preview-box video, .preview-box audio { width: 100%; display: block; }
.preview-box video { max-height: 58vh; background: #000; }
/* 图片预览：默认适应窗口，点击切到原始尺寸并可滚动查看细节 */
.preview-box.is-image { overflow: auto; max-height: 62vh; }
.preview-box.is-image .pv-img {
  display: block;
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.preview-box.is-image.zoomed { align-items: flex-start; justify-content: flex-start; }
.preview-box.is-image.zoomed .pv-img { max-width: none; max-height: none; cursor: zoom-out; }
.preview-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.preview-meta .pm-name { font-weight: 600; font-size: 14.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta .pm-size { color: var(--text-3); font-size: 12.5px; }
.preview-meta .pm-dim { font-family: var(--mono); font-size: 12px; }

/* 移动目录树 */
.tree { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.tree-node {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.13s;
}
.tree-node:hover { background: var(--surface-3); }
.tree-node.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tree-node .ic { width: 16px; height: 16px; }
.tree-children { margin-left: 22px; border-left: 1px dashed var(--border-strong); padding-left: 6px; }

/* 分享卡片（控制台-我的分享） */
.share-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.18s;
}
.share-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.share-card .sc-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-soft), #e6f9ff);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.share-card .sc-main { flex: 1; min-width: 0; }
.share-card .sc-main b { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-card .sc-main span { font-size: 12px; color: var(--text-3); }
.share-card .sc-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: none;
  font-weight: 500;
}
.share-card .sc-link:hover { background: #e0e4fd; }
.share-card .sc-actions { display: flex; gap: 6px; }

/* ============================================================
   分享页（深色仪式感）
   ============================================================ */
.share-page { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.share-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(18px, 4vw, 44px);
  flex-wrap: wrap;
}
.share-top .logo-name { color: #fff; }
.share-top .logo-name small { color: var(--ink-text-2); }
.sharer-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  padding: 6px 14px 6px 6px;
  color: var(--ink-text);
  font-size: 13px;
  backdrop-filter: blur(10px);
}
.sharer-chip b { font-weight: 600; }
.sharer-chip .avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }

.share-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 60px;
}
.share-card-box {
  width: min(640px, 100%);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: pop-in 0.45s var(--ease);
}
.scb-head { padding: 26px 30px 20px; border-bottom: 1px solid var(--ink-line); text-align: center; }
.scb-head .pill-gold { margin-bottom: 12px; }
.scb-head h1 { font-size: 21px; color: #fff; font-weight: 700; word-break: break-all; }
.scb-head .sub { color: var(--ink-text-2); font-size: 13px; margin-top: 7px; }
.scb-body { padding: 22px 30px; }
.scb-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ink-line);
  border-radius: 15px;
}
.scb-file + .scb-file { margin-top: 10px; }
.scb-file .f-ic {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  flex: none;
}
.scb-file .f-main { flex: 1; min-width: 0; }
.scb-file .f-main b { color: #fff; font-size: 14.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scb-file .f-main span { color: var(--ink-text-2); font-size: 12.5px; }
.scb-file .f-dl {
  border: none;
  background: var(--glass-strong);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all 0.15s;
}
.scb-file .f-dl:hover { background: var(--primary); }
.scb-player { padding: 4px 30px 18px; }
.scb-player video, .scb-player audio { width: 100%; }
.scb-player video { border-radius: 14px; background: #000; max-height: 46vh; }
/* 分享页图片预览 */
.scb-image img {
  display: block;
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}
.has-share-bg .scb-image img {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 13, 26, 0.35);
}
.scb-file.is-img { cursor: zoom-in; }
.scb-file.is-img:hover { border-color: rgba(255, 255, 255, 0.42); }
.scb-foot { padding: 8px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.scb-foot .btn { width: 100%; height: 48px; font-size: 15.5px; border-radius: 13px; }
.scb-note { text-align: center; color: var(--ink-text-2); font-size: 12px; }
.share-error {
  width: min(520px, 100%);
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  padding: 50px 34px;
  backdrop-filter: blur(12px);
}
.share-error .ic { width: 52px; height: 52px; color: #ff9db0; margin: 0 auto 16px; }
.share-error h2 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.share-error p { color: var(--ink-text-2); font-size: 13.5px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-art { height: 420px; order: -1; }
  .art-ring { width: 340px; height: 340px; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .stats-band { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 8px;
    z-index: 95;
    overflow-x: auto;
  }
  .side-title, .storage-card, .promo-mini { display: none; }
  .side-item { flex-direction: column; gap: 3px; font-size: 11px; padding: 7px 13px; flex: 1; min-width: 64px; }
  .side-item .count { display: none; }
  .layout { padding-bottom: 74px; }
  .content { padding: 14px 14px 30px; }
  .ft-head, .ft-row { grid-template-columns: 34px 40px minmax(0, 1fr) 84px 34px; }
  .ft-head .col-time, .ft-row .f-time { display: none; }
  .topbar-search { display: none; }
  .upload-panel { left: 12px; right: 12px; width: auto; }
}
@media (max-width: 640px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 104px; }
  .hero-cta .btn { flex: 1; }
  .float-card { font-size: 11.5px; padding: 9px 12px; }
  .fc-3 { display: none; }
  .cta-band { padding: 44px 22px; border-radius: 20px; }
  .footer { justify-content: center; text-align: center; }
  .sel-bar .btn span, .toolbar .btn span { display: none; }
  .sel-bar .btn, .toolbar .btn { padding: 0 12px; }
  .ft-row { height: 60px; }
  .share-top { gap: 10px; }
}

/* ============================================================
   追加：管理员删除标记 / 套餐与流量 / 分享背景 / 移动端优化
   ============================================================ */

/* ---------- 管理员已删除的文件 ---------- */
.ft-row.admin-removed { background: rgba(242, 80, 107, 0.05); }
.ft-row.admin-removed .nm { color: var(--text-3); text-decoration: line-through; }
.ft-row .f-name .rm-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(242, 80, 107, 0.11);
  border: 1px solid rgba(242, 80, 107, 0.3);
  color: #e04263;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ft-row .f-name .rm-tag .ic { width: 11px; height: 11px; }
@media (max-width: 860px) {
  .ft-row .f-name .rm-tag span { display: none; }
  .ft-row .f-name .rm-tag { padding: 0 5px; }
}

/* ---------- 套餐 / 流量 ---------- */
.storage-card .storage-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 7px;
}
.storage-card .storage-line b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-bar > i.warn { background: linear-gradient(90deg, var(--amber), var(--red)); }

.user-menu .um-stats {
  padding: 9px 14px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.user-menu .ums-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-3);
  padding: 2px 0;
}
.user-menu .ums-row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 分享背景图选择 ---------- */
.bg-pick { margin-bottom: 4px; }
.bg-preview {
  height: 132px;
  border-radius: 13px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12.5px;
  overflow: hidden;
  margin-bottom: 10px;
}
.bg-preview span { display: inline-flex; align-items: center; gap: 6px; }
.bg-preview.has-img { border-style: solid; border-color: var(--border-strong); }
.bg-ops { display: flex; gap: 8px; align-items: center; }

/* ============================================================
   分享页背景图（半透明玻璃卡片，保证能看到框）
   ============================================================ */
.share-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.share-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.34), rgba(4, 8, 18, 0.14) 40%, rgba(4, 8, 18, 0.5));
}
.has-share-bg .aurora,
.has-share-bg .grid-bg { display: none; }
/* 顶部 logo 直接压在背景图上时，加一层自上而下的暗渐变保证可读 */
.has-share-bg .share-top {
  background: linear-gradient(180deg, rgba(4, 8, 18, 0.62), rgba(4, 8, 18, 0.22) 62%, rgba(4, 8, 18, 0));
}
.has-share-bg .share-top .logo-name { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.has-share-bg .share-top .logo-name small { color: rgba(214, 222, 236, 0.75); }

.has-share-bg .share-card-box {
  /* 背景图仍在卡片内透出（强模糊成色块），同时用 .54 深底保证文字对比度 */
  background: rgba(8, 13, 26, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.has-share-bg .scb-head { border-bottom-color: rgba(255, 255, 255, 0.18); }
.has-share-bg .scb-head h1 { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65); }
.has-share-bg .scb-head .sub { color: rgba(226, 232, 244, 0.9); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7); }
.has-share-bg .pill-gold { background: rgba(245, 183, 61, 0.24); color: #ffd479; }
.has-share-bg .scb-file {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.has-share-bg .scb-file .f-main b { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.has-share-bg .scb-file .f-main span { color: rgba(226, 232, 244, 0.82); }
.has-share-bg .scb-file .f-ic { background: rgba(255, 255, 255, 0.16); }
.has-share-bg .scb-file .f-dl { background: rgba(255, 255, 255, 0.22); }
.has-share-bg .scb-note { color: rgba(226, 232, 244, 0.85); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75); }
.has-share-bg .sharer-chip {
  background: rgba(9, 14, 28, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
/* 有背景图时，页脚文字直接在图上，需要压一层暗底才读得清 */
.has-share-bg .share-page .footer,
.has-share-bg.page-dark .footer {
  background: rgba(4, 8, 18, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(214, 222, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.has-share-bg .scb-foot .btn-primary { box-shadow: 0 14px 34px rgba(79, 70, 229, 0.5); }
.has-share-bg .scb-foot .btn-on-dark {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

/* ============================================================
   移动端优化：分享页布局 + 首页动画降级
   ============================================================ */
@media (max-width: 640px) {
  /* 分享页 */
  .share-top {
    padding: 14px 16px;
    gap: 8px;
    justify-content: flex-start;
  }
  .share-top .logo-mark { width: 30px; height: 30px; font-size: 14px; border-radius: 9px; }
  .share-top .logo-name { font-size: 14px; }
  .share-top .logo-name small { font-size: 8px; letter-spacing: 1px; }
  .sharer-chip { font-size: 12px; padding: 5px 11px 5px 5px; gap: 7px; }
  .sharer-chip .avatar { width: 23px; height: 23px; border-radius: 7px; font-size: 11px; }

  .share-main {
    padding: 14px 12px 34px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .share-card-box {
    width: 100%;
    border-radius: 20px;
    animation: none;
  }
  .scb-head { padding: 20px 18px 16px; }
  .scb-head h1 { font-size: 18px; line-height: 1.45; }
  .scb-head .sub { font-size: 12px; }
  .scb-body { padding: 15px 16px; }
  .scb-file { padding: 11px 12px; gap: 10px; border-radius: 13px; }
  .scb-file .f-ic { width: 42px; height: 42px; border-radius: 11px; }
  .scb-file .f-ic .ic { width: 20px; height: 20px; }
  .scb-file .f-main b { font-size: 13.5px; }
  .scb-file .f-main span { font-size: 11.5px; }
  .scb-file .f-dl { width: 34px; height: 34px; }
  .scb-player { padding: 2px 16px 14px; }
  .scb-player video { max-height: 38vh; border-radius: 12px; }
  .scb-image img { max-height: 42vh; border-radius: 12px; }
  .scb-foot { padding: 6px 16px 20px; gap: 10px; }
  .scb-foot .btn { height: 46px; font-size: 15px; }
  .scb-note { font-size: 11.5px; line-height: 1.6; }
  .share-error { padding: 36px 22px; border-radius: 20px; }
  .share-page .footer { padding: 14px 16px; font-size: 10.5px; line-height: 1.7; }

  /* 首页动画降级：去掉高成本滤镜与循环动画 */
  .aurora i { filter: blur(58px); animation: none; opacity: 0.3; }
  .aurora .a1 { width: 360px; height: 360px; }
  .aurora .a2 { width: 300px; height: 300px; opacity: 0.26; }
  .aurora .a3 { display: none; }
  .grid-bg { display: none; }
  .art-ring { animation: none; width: 280px; height: 280px; }
  .art-ring::before { display: none; }
  .art-orb { animation: none; filter: blur(34px); opacity: 0.42; }
  .art-cloud { animation: none; filter: none; width: 240px; }
  .float-card { animation: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 24, 44, 0.82); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }
  .fc-3, .fc-4 { display: none; }
  .mini-progress > i, .eq i { animation: none !important; }
  .mini-progress > i { width: 82%; }
  .hero-art { height: 320px; }
  .stat-card { transition: none; }

  /* 图片预览：窄屏下别占满整屏 */
  .preview-box.is-image { max-height: 52vh; }
  .preview-box.is-image .pv-img { max-height: 52vh; }
  .preview-meta { flex-wrap: wrap; }
  .preview-meta .pm-name { flex: 1 1 100%; }
}

/* 低动态偏好：全面降级 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}
