/* ============================================================
   龙神网盘 - 设计系统 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;
}

/* QQ 授权头像：真图片，圆角裁切 */
.avatar-img {
  padding: 0;
  overflow: hidden;
  background-color: #e9edf6;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06) inset;
}
.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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(--text-2); margin-bottom: 7px; }
/* 深色情境（首页登录弹窗 / 后台登录卡）才用浅色文字，控制台等浅色页面不能继承 */
.auth-modal .field label,
.login-card .field label { color: var(--ink-text-2); }
.auth-modal .field .input,
.login-card .field .input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  height: 44px;
}
.auth-modal .field .input:focus,
.login-card .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); }
.auth-modal .field .input::placeholder,
.login-card .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;
  flex-direction: column;
  gap: 10px;
  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-top { display: flex; align-items: flex-start; gap: 12px; }
.share-card .sc-ic {
  width: 42px;
  height: 42px;
  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;
  margin-top: 1px;
}
.share-card .sc-main { flex: 1 1 auto; min-width: 0; }
.share-card .sc-main b {
  font-size: 14px;
  display: block;
  color: var(--text);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.share-card .sc-main span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.share-card .sc-actions { display: flex; gap: 6px; flex: none; align-items: center; }
.share-card .sc-lrow { display: flex; align-items: center; gap: 8px; }
.share-card .sc-link {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  border: none;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  word-break: break-all;
  line-height: 1.55;
}
.share-card .sc-link:hover { background: #e0e4fd; }

/* ============================================================
   分享页（深色仪式感）
   ============================================================ */
.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: 22px 20px 48px;
}

/* 分享卡片：紧凑行式布局（注意与 .share-card 控制台分享列表区分开） */
.share-box {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(23, 30, 54, 0.88), rgba(13, 18, 36, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  animation: pop-in 0.4s var(--ease);
}
.sh-head { padding: 19px 20px 13px; }
.sh-title { display: flex; align-items: center; gap: 10px; }
.sh-title h1 {
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(245, 183, 61, 0.14);
  border: 1px solid rgba(245, 183, 61, 0.32);
  color: #ffd479;
}
.sh-badge .ic { width: 12px; height: 12px; }
.sh-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-text-2);
}
.sh-meta i { font-style: normal; opacity: 0.42; }

/* 单文件媒体区 */
.sh-media { padding: 0 12px 2px; }
.sh-media img {
  display: block;
  width: 100%;
  max-height: 44vh;
  object-fit: contain;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.28);
  cursor: zoom-in;
}
.sh-media video { display: block; width: 100%; max-height: 44vh; border-radius: 11px; background: #000; }
.sh-media audio { width: 100%; }

/* 文件列表 */
.sh-list { list-style: none; padding: 2px 12px 0; }
.sh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}
.sh-list > .sh-row:first-child { border-top: none; }
.sh-ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.16);
  color: #cfd5ee;
}
.sh-ic .ic { width: 17px; height: 17px; }
.sh-nm { flex: 1; min-width: 0; }
.sh-name {
  display: block;
  font-size: 13.5px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ink-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-size { flex: none; font-size: 11.5px; color: var(--ink-text-2); font-variant-numeric: tabular-nums; }
.sh-dl {
  flex: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.sh-dl:hover { background: var(--primary); }
.sh-row.is-img { cursor: zoom-in; }

/* 底部操作 */
.sh-actions { display: flex; gap: 8px; padding: 14px 12px 0; }
.sh-actions .btn { height: 42px; font-size: 14px; border-radius: 11px; }
.sh-actions .btn-primary { flex: 1; min-width: 0; }
.sh-actions .btn-primary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-actions .btn-line,
.sh-actions .btn-on-dark { flex: none; padding: 0 14px; }
.sh-note { padding: 11px 14px 15px; text-align: center; font-size: 11.5px; line-height: 1.6; color: var(--ink-text-2); }
.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; }
.user-menu .ums-row .ums-qq { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .ctx-item.qq-unbound { color: var(--red); }

/* ---------- QQ 授权信息卡片（用户中心弹窗） ---------- */
.qq-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 12px;
}
.qq-card-top .avatar { width: 50px; height: 50px; border-radius: 15px; font-size: 20px; }
.qq-card-top b { display: block; font-size: 15.5px; line-height: 1.4; }
.qq-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11.5px;
  color: #15875a;
  background: rgba(34, 181, 115, 0.12);
  border-radius: 999px;
  padding: 2px 8px 2px 5px;
}
.qq-ok .ic { width: 13px; height: 13px; }
.qq-rows { display: grid; gap: 7px; }
.qq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 11px;
}
.qq-row b { color: var(--text); font-weight: 600; font-size: 12.5px; text-align: right; word-break: break-all; }
.qq-tip { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }

/* 暗色弹窗里的 QQ 授权卡片 */
.auth-modal .qq-card-top { border-bottom-color: rgba(255, 255, 255, 0.12); }
.auth-modal .qq-card-top b { color: #fff; }
.auth-modal .qq-row { background: rgba(255, 255, 255, 0.05); color: var(--ink-text-2); }
.auth-modal .qq-row b { color: var(--ink-text); }
.auth-modal .qq-tip { color: rgba(166, 174, 201, 0.72); }
.auth-modal .qq-ok { background: rgba(34, 181, 115, 0.18); color: #6ee7b7; }

/* ---------- 分享背景图选择 ---------- */
.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-box {
  /* 背景图仍在卡片内透出（强模糊成色块），同时用深底保证文字对比度 */
  background: rgba(8, 13, 26, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.has-share-bg .sh-title h1 { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.has-share-bg .sh-meta { color: rgba(226, 232, 244, 0.9); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7); }
.has-share-bg .sh-badge { background: rgba(245, 183, 61, 0.24); color: #ffd479; }
.has-share-bg .sh-row { border-top-color: rgba(255, 255, 255, 0.18); }
.has-share-bg .sh-name { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55); }
.has-share-bg .sh-size,
.has-share-bg .sh-sub { color: rgba(226, 232, 244, 0.86); }
.has-share-bg .sh-ic { background: rgba(255, 255, 255, 0.17); }
.has-share-bg .sh-dl { background: rgba(255, 255, 255, 0.2); }
.has-share-bg .sh-note { color: rgba(226, 232, 244, 0.88); text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75); }
.has-share-bg .sh-media img { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(8, 13, 26, 0.32); }
.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 .sh-actions .btn-primary { box-shadow: 0 12px 30px rgba(79, 70, 229, 0.5); }
.has-share-bg .sh-actions .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 10px 32px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .share-box {
    width: 100%;
    border-radius: 15px;
    animation: none;
  }
  .sh-head { padding: 15px 15px 11px; }
  .sh-title h1 { font-size: 15px; }
  .sh-badge { font-size: 10px; padding: 2px 7px; }
  .sh-meta { font-size: 11px; margin-top: 6px; }
  .sh-media { padding: 0 10px; }
  .sh-media img, .sh-media video { max-height: 40vh; border-radius: 10px; }
  .sh-list { padding: 0 10px; }
  .sh-row { padding: 9px 4px; gap: 9px; }
  .sh-ic { width: 29px; height: 29px; border-radius: 8px; }
  .sh-ic .ic { width: 16px; height: 16px; }
  .sh-name { font-size: 13px; }
  .sh-sub { font-size: 10.5px; }
  .sh-size { font-size: 11px; }
  .sh-dl { width: 28px; height: 28px; }
  .sh-actions { padding: 12px 10px 0; gap: 7px; }
  .sh-actions .btn { height: 40px; font-size: 13.5px; border-radius: 10px; }
  .sh-actions .btn-line, .sh-actions .btn-on-dark { padding: 0 12px; }
  .sh-note { padding: 10px 12px 13px; font-size: 11px; }
  .share-error { padding: 34px 20px; border-radius: 18px; }
  .share-page .footer { padding: 13px 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%; }
}

/* ============================================================
   控制台：云下载 / WebDAV 面板
   ============================================================ */
.panel-view { display: flex; flex-direction: column; gap: 14px; }

/* 云下载 */
.cloud-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.cff-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.cff-head .ic { color: var(--primary); }
.cloud-form { display: flex; gap: 9px; }
.cloud-form .input { flex: 1; min-width: 0; }
.cloud-hint { margin-top: 10px; font-size: 12px; color: var(--text-3); line-height: 1.7; }
.cloud-hint b { color: var(--text-2); }
.cloud-list-head { display: flex; align-items: center; justify-content: space-between; }
.cloud-list-head b { font-size: 13.5px; color: var(--text); }
.cloud-tasks { display: flex; flex-direction: column; gap: 10px; }
.cloud-task {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.15s;
}
.cloud-task.downloading { border-color: rgba(79, 70, 229, 0.3); }
.ct-top { display: flex; align-items: center; gap: 8px; }
.ct-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.cloud-task.done .ct-icon { background: rgba(34, 181, 115, 0.12); color: #178f57; }
.cloud-task.error .ct-icon { background: rgba(242, 80, 107, 0.12); color: #cf3050; }
.ct-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-badge { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.ct-badge.done { background: rgba(34, 181, 115, 0.12); color: #178f57; }
.ct-badge.error { background: rgba(242, 80, 107, 0.12); color: #cf3050; }
.ct-badge.downloading { background: var(--primary-soft); color: var(--primary); }
.cloud-task .progress { margin: 9px 0 7px; }
.ct-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.ct-err { margin-top: 7px; font-size: 12px; color: var(--red); line-height: 1.6; }
.ct-ops { margin-top: 8px; display: flex; justify-content: flex-end; }
.cloud-empty { text-align: center; padding: 38px 18px; color: var(--text-3); }
.cloud-empty .ic { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.45; display: block; }
.cloud-empty b { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 5px; }
.cloud-empty span { font-size: 12.5px; }

/* WebDAV */
.dav-wrap { display: flex; flex-direction: column; gap: 14px; }
.dav-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.dav-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dav-radio {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.dav-radio input { display: none; }
.dav-radio b { display: block; font-size: 13px; color: var(--text); }
.dav-radio span { display: block; margin-top: 3px; font-size: 11px; color: var(--text-3); line-height: 1.5; }
.dav-radio.active { border-color: var(--primary); background: var(--primary-soft); }
.dav-form .field { margin-bottom: 14px; }
.dav-form .field:last-of-type { margin-bottom: 16px; }
.dav-form-ops { display: flex; gap: 8px; }
.dav-info-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dav-info-head b { font-size: 14px; color: var(--text); }
.dav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 181, 115, 0.16); }
.dav-updated { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.dav-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
.dav-k { flex: none; width: 70px; font-size: 12.5px; color: var(--text-3); }
.dav-v {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 7px;
  padding: 6px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-copy {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mini-copy:hover { background: var(--surface-3); color: var(--primary); }
.dav-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dav-alt {
  margin-top: 14px;
  padding: 13px 14px 12px;
  border-radius: var(--radius);
  background: rgba(245, 183, 61, 0.09);
  border: 1px solid rgba(245, 183, 61, 0.3);
}
.dav-alt b { display: block; font-size: 13px; color: #a2691a; }
.dav-alt p { margin: 5px 0 8px; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.dav-alt .dav-row { border-top: none; padding: 0; }
.dav-alt .dav-v { background: rgba(255, 255, 255, 0.75); }
.dav-rotate { margin-top: 9px; }
.dav-tips {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.dav-tips b { font-size: 13px; color: var(--text); }
.dav-tips ul { margin: 8px 0 0 16px; padding: 0; }
.dav-tips li { font-size: 12px; color: var(--text-3); line-height: 1.9; }

.dav-fix {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.dav-fix-warn { border-left-color: #e0a33a; }
.dav-fix-h { display: flex; align-items: center; gap: 7px; }
.dav-fix-h .ic { flex: none; color: var(--primary); }
.dav-fix-warn .dav-fix-h .ic { color: #d59220; }
.dav-fix-h b { font-size: 13px; color: var(--text); }
.dav-fix p { margin: 8px 0 10px; font-size: 12px; line-height: 1.85; color: var(--text-2); }
.dav-fix p code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.dav-cmd {
  margin: 0 0 10px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #e8efff;
  font-size: 12px;
  line-height: 1.9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  -webkit-text-fill-color: #e8efff;
}
.dav-fix .btn { font-size: 12px; }
.dav-fix-note {
  margin: 12px 0 0 !important;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(224, 163, 58, 0.1);
  border: 1px solid rgba(224, 163, 58, 0.28);
  color: #8a5a12 !important;
  font-size: 12px !important;
}
.dav-fix-note b { color: #7a4d0a; }

.ums-coin { color: #c2810c !important; }
.promo-mini .promo-link { border: none; cursor: pointer; margin-top: 9px; }

@media (max-width: 640px) {
  .cloud-form { flex-direction: column; }
  .cloud-form .btn { width: 100%; }
  .dav-scope { grid-template-columns: 1fr; }
  .dav-row { flex-wrap: wrap; }
  .dav-k { width: 100%; }
  .dav-v { flex: 1 1 auto; }
  .dav-alt .dav-v { white-space: normal; word-break: break-all; }
  .dav-ops .btn { flex: 1 1 auto; }
}

/* 我的分享：窄屏下改为三行堆叠（图标+名称 / 操作按钮 / 链接），避免文字被压成竖排 */
@media (max-width: 860px) {
  .share-card { padding: 12px 13px; gap: 9px; }
  .share-card .sc-ic { width: 38px; height: 38px; border-radius: 10px; }
  .share-card .sc-actions .btn { padding: 0 10px; }
}
@media (max-width: 640px) {
  .share-card { padding: 11px 12px; }
  .share-card .sc-top { flex-wrap: wrap; row-gap: 9px; }
  .share-card .sc-main { flex: 1 1 calc(100% - 50px); }
  .share-card .sc-actions { flex: 1 1 100%; }
  .share-card .sc-actions .btn { flex: 1 1 auto; justify-content: center; }
  .share-card .sc-main b { font-size: 13.5px; line-height: 1.5; }
  .share-card .sc-main span { font-size: 11.5px; }
  .share-card .sc-link { font-size: 11px; padding: 7px 9px; line-height: 1.6; }
  .share-card .sc-lrow .btn { padding: 0 11px; flex: none; }
}

/* 低动态偏好：全面降级 */
@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;
  }
}

/* ---------- 首页「下载 APP」入口条 ---------- */
.hero-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.28);
  background: rgba(99, 102, 241, 0.12);
  color: #dbe3ff;
  font-size: 13.5px;
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-dl:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(165, 180, 252, 0.5);
  transform: translateY(-2px);
}
.hero-dl svg { width: 16px; height: 16px; flex: none; color: #a5b4fc; }
.hero-dl b { color: #fff; font-weight: 700; }
.hero-dl .dl-arrow { font-style: normal; margin-left: 2px; color: #a5b4fc; }
@media (max-width: 640px) {
  .hero-dl { font-size: 12.5px; padding: 8px 12px; }
}

/* ---------- 手机端：吸顶「下载 APP」入口条 ----------
   窄屏下 .nav-links 整体隐藏，Hero 内的胶囊又被插画挤到首屏之外，
   所以在导航第二行常驻一个入口，滚动时始终可见。 */
.m-dl-bar { display: none; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; row-gap: 8px; padding: 12px 14px; }
  .nav.scrolled { padding: 9px 14px; }
  .nav .nav-actions { gap: 8px; flex: none; }
  .m-dl-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(165, 180, 252, 0.4);
    background: linear-gradient(100deg, rgba(99, 102, 241, 0.92), rgba(124, 58, 237, 0.88));
    box-shadow: 0 8px 22px rgba(79, 70, 229, 0.32);
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-decoration: none;
  }
  .m-dl-bar:active { transform: translateY(1px); }
  .m-dl-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
  }
  .m-dl-ic svg { width: 15px; height: 15px; }
  .m-dl-txt { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-dl-txt b { font-weight: 500; font-size: 11.5px; opacity: 0.85; margin-left: 4px; }
  .m-dl-arrow { flex: none; font-style: normal; font-size: 16px; opacity: 0.9; }
  /* 导航变成两行，给 Hero 让出空间 */
  .hero { padding-top: 152px; }
  /* 已有吸顶入口，隐藏 Hero 里的重复胶囊 */
  .hero-dl { display: none; }
}
@media (max-width: 340px) {
  .m-dl-txt b { display: none; }
}

/* ---------- 登录弹窗：快捷方式登录 ---------- */
.auth-modal { max-height: 88vh; overflow-x: hidden; overflow-y: auto; }
.quick-login {
  margin: 4px 28px 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.quick-login-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.quick-login-head span { font-size: 13px; font-weight: 500; color: #fff; }
.quick-login-head small { font-size: 11px; color: rgba(166, 174, 201, 0.62); }
.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: #e6e9f6;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s;
}
.quick-item:hover { background: rgba(99, 102, 241, 0.18); border-color: rgba(165, 180, 252, 0.45); transform: translateY(-1px); }
.quick-item:disabled { opacity: .55; cursor: wait; }
.quick-ic { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.quick-err {
  margin-bottom: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(242, 80, 107, 0.14);
  border: 1px solid rgba(242, 80, 107, 0.35);
  color: #ffb3c0;
  font-size: 12.5px;
  line-height: 1.6;
}
.quick-err[hidden] { display: none; }
.quick-empty { grid-column: 1 / -1; text-align: center; color: rgba(166, 174, 201, 0.65); font-size: 12px; padding: 12px 0; }
@media (max-width: 420px) {
  .quick-login { margin-left: 18px; margin-right: 18px; }
}

/* ============================================================
   音频播放器弹窗（封面 / 双模式歌词 / 逐字染色）
   ============================================================ */
.modal:has(.ap-layer) { width: min(760px, 100%) !important; }
.ap-layer { position: relative; overflow: hidden; border-radius: 14px; background: #0c1122; }
.ap-bg {
  position: absolute; inset: -40px; filter: blur(46px) saturate(1.25); opacity: .34;
  background-position: center; background-size: cover; transform: scale(1.08);
  pointer-events: none;
}
.ap-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(10,14,30,.86), rgba(16,22,46,.7));
}
.ap-body { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 26px; color: #e8ecfb; }
.ap-left { display: flex; flex-direction: column; gap: 14px; }
.ap-cover {
  width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: rgba(255,255,255,.05); box-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.ap-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-no-cover { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #6f7ba3; }
.ap-song b.ap-title { display: block; font-size: 18px; font-weight: 650; line-height: 1.4; }
.ap-song .ap-artist { display: block; font-size: 13px; color: #a9b2d0; margin-top: 3px; }
.ap-audio { display: none; }
.ap-controls { display: flex; align-items: center; gap: 9px; }
.ap-play {
  flex: none; width: 38px; height: 38px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 6px 16px rgba(99,102,241,.36); transition: transform .15s;
}
.ap-play:hover { transform: scale(1.06); }
.ap-time { font: 11.5px var(--mono); color: #a9b2d0; flex: none; min-width: 38px; }
.ap-seek {
  flex: 1; min-width: 0; height: 4px; appearance: none; border-radius: 999px;
  background: linear-gradient(90deg, #818cf8, rgba(255,255,255,.18)); cursor: pointer;
}
.ap-seek::-webkit-slider-thumb {
  appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(129,140,248,.4);
}
.ap-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: #8791b4; }
.ap-extra span { padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.07); }
.ap-extra .btn { margin-left: auto; color: #cfd6f0; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }

.ap-right { display: flex; flex-direction: column; min-width: 0; }
.ap-ly-head { display: flex; align-items: baseline; gap: 9px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ap-ly-head span { font-size: 14px; font-weight: 600; }
.ap-ly-head small { font-size: 11px; color: #8994b8; }
.lyrics-view {
  flex: 1; min-height: 320px; max-height: 380px; overflow-y: auto; padding: 10px 4px 160px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent;
}
.lyrics-view::-webkit-scrollbar { width: 5px; }
.lyrics-view::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 9px; }
.ly-line {
  padding: 8px 10px; border-radius: 9px; line-height: 1.9; font-size: 14px;
  color: #7f8aad; transition: color .25s, background .25s, transform .25s;
  word-break: break-word;
}
.ly-line.active { color: #fff; background: rgba(129,140,248,.12); transform: translateX(2px); }
.lyrics-view.is-word .ly-line.active { font-size: 15.5px; }
/* 逐字流式染色：--p 为 0~1，亮紫从左向右平滑推进，未唱部分保持暗灰 */
.ly-char {
  --p: 0;
  color: #697391;
  background-image: linear-gradient(90deg, #b388ff 0%, #b388ff calc(var(--p) * 100%), #697391 calc(var(--p) * 100%), #697391 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ly-line.active .ly-char {
  color: #8a93b0;
  background-image: linear-gradient(90deg, #d0a8ff 0%, #d0a8ff calc(var(--p) * 100%), #8a93b0 calc(var(--p) * 100%), #8a93b0 100%);
  text-shadow: none;
}
.lyrics-view.is-word .ly-line:not(.active) .ly-char { opacity: .55; }
.ap-ly-head { align-items: center; }
.ap-follow {
  margin-left: auto; padding: 4px 9px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(179,136,255,.4); background: rgba(179,136,255,.14); color: #d0a8ff;
  font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px;
}
.ap-follow:hover { background: rgba(179,136,255,.26); }
.ap-follow[hidden] { display: none; }
.ap-ly-empty {
  flex: 1; min-height: 320px; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: #7884a8; font-size: 13px;
}

@media (max-width: 860px) {
  .ap-body { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .ap-left { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ap-cover { width: 88px; height: 88px; flex: none; aspect-ratio: auto; }
  .ap-song { flex: 1; min-width: 130px; }
  .ap-controls, .ap-extra { flex-basis: 100%; }
  .lyrics-view, .ap-ly-empty { min-height: 260px; max-height: 300px; }
}

/* ---------- 云下载多线程选择 ---------- */
.cloud-thread-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 12px; }
.cloud-thread-row label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.cloud-thread-select { width: 180px; height: 40px; }
.cloud-thread-custom { width: 150px; height: 40px; font-family: var(--mono); font-size: 12.5px; }
.ct-threads {
  flex: none; padding: 3px 8px; border-radius: 999px; font-size: 11px;
  color: var(--primary); background: var(--primary-soft);
}
@media (max-width: 640px) {
  .cloud-thread-select, .cloud-thread-custom { flex: 1; min-width: 130px; }
}
