/* ════════════════════════════════════════════════
   云盘 SPA — style.css v2.0
   蓝白配色，高仿夸克网盘风格
   ════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────── */
:root {
  --primary:        #1677ff;
  --primary-light:  #e8f3ff;
  --primary-lighter:#f0f7ff;
  --primary-dark:   #0c5fe0;
  --text:           #1d1d1f;
  --text-2:         #666;
  --text-3:         #999;
  --text-4:         #bbb;
  --border:         #f0f0f0;
  --border-2:       #e5e5e5;
  --bg:             #f5f7fb;
  --bg-card:        #ffffff;
  --nav-h:          60px;
  --header-h:       50px;
  --radius:         12px;
  --radius-sm:      8px;
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --shadow-deep:    0 6px 24px rgba(0,0,0,.12);
  --gold:           #f5a623;
  --gold-dark:      #b5651d;
}

/* ── Reset ─────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;      /* 兼容旧浏览器 */
  height: 100dvh;     /* 支持的浏览器用动态视口 */
  overscroll-behavior: none;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; outline: none; border: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── App Shell ─────────────────────────────────── */
#app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-card);
}

/* ── Splash ────────────────────────────────────── */
#splash {
  position: absolute; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 999;
  background: linear-gradient(145deg, #1677ff 0%, #0c5fe0 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
#splash .splash-icon { font-size: 4rem; }
#splash .splash-title { font-size: 1.5rem; font-weight: 700; color: #fff; }
#splash .splash-sub   { font-size: .85rem; color: rgba(255,255,255,.65); }

/* ── Loading overlay ───────────────────────────── */
#global-loading {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 990;
  background: rgba(255,255,255,.5);
  display: none; align-items: center; justify-content: center;
}
.loading-spin {
  width: 36px; height: 36px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-10px);
  z-index: 9999; padding: 10px 20px;
  background: rgba(30,30,30,.9); color: #fff;
  border-radius: 20px; font-size: .85rem;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all .25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-success { background: rgba(22,167,94,.9); }
.toast.toast-error   { background: rgba(255,77,79,.9); }
.toast.toast-warn    { background: rgba(250,140,22,.9); }
.toast.toast-info    { background: rgba(30,30,30,.9); }
/* 长文案在小屏上自动折行，避免 nowrap 撑出屏幕 */
.toast { max-width: 84vw; white-space: normal; text-align: center; line-height: 1.45; }

/* ── Auth Page ─────────────────────────────────── */
#auth-page {
  position: absolute; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 100;
  background: #fff;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.auth-hero {
  background: linear-gradient(155deg, #1677ff 0%, #1a65e8 45%, #2d7cff 75%, #5b9aff 100%);
  padding: 56px 24px 52px;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.auth-hero::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.auth-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.auth-hero .hero-icon {
  font-size: 4rem; margin-bottom: 14px; position: relative; z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.auth-hero .hero-title {
  font-size: 1.65rem; font-weight: 800; letter-spacing: .5px;
  position: relative; z-index: 1;
}
.auth-hero .hero-sub {
  font-size: .82rem; opacity: .8; margin-top: 6px;
  position: relative; z-index: 1;
}
.auth-box {
  flex: 1; padding: 32px 24px 24px;
  background: #fff; border-radius: 24px 24px 0 0;
  margin-top: -20px;
  box-shadow: 0 -4px 24px rgba(22,119,255,.08);
}
.auth-tabs {
  display: flex; border-bottom: 1px solid #f0f0f0; margin-bottom: 28px;
  gap: 4px;
}
.auth-tab  {
  flex: 1; padding: 11px; text-align: center;
  font-size: .92rem; color: #bbb; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  transition: all .2s; font-weight: 500;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.field-group { position: relative; margin-bottom: 16px; }
.field-group label {
  display: block; font-size: .78rem; color: var(--text-2);
  margin-bottom: 6px; font-weight: 500;
}
.field-group input {
  width: 100%; padding: 13px 16px;
  background: #f5f7ff; border-radius: 10px;
  font-size: .95rem; color: var(--text);
  border: 1.5px solid #e8ecff; transition: all .2s;
}
.field-group input:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.btn-submit {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, #1677ff, #0c5fe0); color: #fff;
  border-radius: 12px; font-size: .98rem; font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 4px 18px rgba(22,119,255,.35);
  transition: all .2s;
}
.btn-submit:active { transform: scale(.98); box-shadow: 0 2px 10px rgba(22,119,255,.2); }
.auth-hint { text-align: center; font-size: .82rem; color: var(--text-3); margin-top: 18px; }
.auth-hint span { color: var(--primary); cursor: pointer; font-weight: 600; }
.req-star { color: #ff4d4f; margin-left: 2px; }
.auth-closed-tip { font-size: .76rem; color: #ff7a45; margin-top: 10px; }

/* 邮箱验证码输入行 */
.code-input-wrap { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.code-input-wrap input {
  flex: 1 1 0%; min-width: 0; width: auto; box-sizing: border-box; padding: 13px 14px;
  background: #f5f7ff; border-radius: 10px;
  font-size: .95rem; color: var(--text);
  border: 1.5px solid #e8ecff; transition: all .2s;
}
.code-input-wrap input:focus {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,119,255,.1);
}
.code-send-btn {
  flex: 0 0 auto; padding: 0 14px; white-space: nowrap;
  background: #eef4ff; color: var(--primary); border: 1.5px solid #d6e4ff;
  border-radius: 10px; font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.code-send-btn:active { background: #dbe8ff; }
.code-send-btn:disabled { color: #9aa4b2; background: #f1f3f7; border-color: #e7ebf2; cursor: not-allowed; }

/* ── Main App ──────────────────────────────────── */
#main-app {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0; /* 等价 inset:0，兼容旧浏览器 */
  z-index: 50;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  overflow: hidden;
}
/* 页面容器：必须占满并纵向布局，否则 .page-body 无法滚动 */
#page-content {
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-flex: 1; flex: 1;
  min-height: 0; height: 100%;
  overflow: hidden;
}
.page-body {
  -webkit-flex: 1; flex: 1;
  min-height: 0;              /* flex 子项允许收缩，溢出才可滚动 */
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
}
.page-body::-webkit-scrollbar { display: none; }
/* 页面容器内容高度兜底（防止极端情况下塌陷为 0） */
.page-body > .tab-page { min-height: 100%; }

/* ── Bottom Nav ────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex; z-index: 80;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; position: relative;
  color: var(--text-3); transition: color .2s;
}
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none;
                stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span { font-size: .68rem; }
.nav-badge {
  position: absolute; top: 6px; right: calc(50% - 16px);
  background: #ff4d4f; color: #fff;
  font-size: .6rem; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* ── Page Header ───────────────────────────────── */
.page-header {
  height: var(--header-h);
  background: #fff;
  display: flex; align-items: center;
  padding: 0 16px; gap: 10px;
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { flex: 1; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.hdr-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-2); cursor: pointer;
  transition: background .2s;
}
.hdr-btn:active { background: var(--bg); }
.hdr-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none;
               stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════════════ */
.home-search {
  margin: 14px 16px 0;
  background: var(--bg);
  border-radius: 20px;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
}
.home-search svg { width: 18px; height: 18px; stroke: var(--text-3); fill: none;
                   stroke-width: 1.8; flex-shrink: 0; }
.home-search input {
  flex: 1; font-size: .88rem; color: var(--text);
  background: transparent;
}
.home-search input::placeholder { color: var(--text-4); }

.home-categories {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; padding: 16px 16px 8px;
}
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer;
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.cat-icon.c-photo  { background: #fff3e0; }
.cat-icon.c-video  { background: #e8f0fe; }
.cat-icon.c-music  { background: #fce4ec; }
.cat-icon.c-doc    { background: #e8f5e9; }
.cat-icon.c-zip    { background: #fce8e4; }
.cat-item span { font-size: .7rem; color: var(--text-2); }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.section-header .sh-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.section-header .sh-more  { font-size: .8rem; color: var(--primary); cursor: pointer; }

.recent-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; padding: 0 16px 16px;
}
.recent-item {
  aspect-ratio: 1; background: var(--bg);
  border-radius: var(--radius-sm); overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; font-size: 2rem;
  position: relative;
}
.recent-item span.ri-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: .6rem; color: var(--text-2);
  background: rgba(255,255,255,.85);
  text-align: center; padding: 2px 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.empty-tip {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; gap: 12px; color: var(--text-3);
}
.empty-tip .empty-icon {
  width: 80px; height: 80px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.empty-tip p { font-size: .88rem; }

/* ══════════════════════════════════════════════════
   FILE PAGE
   ══════════════════════════════════════════════════ */
.breadcrumb {
  padding: 10px 16px;
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; white-space: nowrap;
  font-size: .8rem; color: var(--text-3);
  scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.bc-item { cursor: pointer; color: var(--text-3); flex-shrink: 0; }
.bc-item:last-child { color: var(--text); font-weight: 500; }
.bc-sep { flex-shrink: 0; }

.file-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 16px 8px; padding: 8px 12px;
  background: var(--primary-light); border-radius: 8px;
  font-size: .8rem;
}
.file-filter-bar .ff-label { color: var(--primary); font-weight: 500; }
.file-filter-bar .ff-clear { color: var(--text-3); cursor: pointer; }

.file-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 16px; gap: 8px;
}
.file-sort { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-3); cursor: pointer; }
.file-views { display: flex; gap: 6px; }
.view-btn { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.view-btn.active { color: var(--primary); background: var(--primary-light); }
.view-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.file-list  { padding: 0 16px; }
.file-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 16px; }

.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent;
}
.file-item:last-child { border-bottom: none; }
.file-item:active { background: var(--bg); margin: 0 -16px; padding: 10px 16px; border-radius: var(--radius-sm); }

.file-item.selected .file-icon-wrap::before {
  content: '✓';
  position: absolute; top:0;right:0;bottom:0;left:0;inset: 0;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: .9rem; font-weight: 700;
  z-index: 1;
}
.file-icon-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.file-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
/* file type colors */
.fi-folder { background: #fff8e1; }
.fi-image  { background: #fce4ec; }
.fi-video  { background: #e8eaf6; }
.fi-audio  { background: #f3e5f5; }
.fi-doc    { background: #e8f5e9; }
.fi-pdf    { background: #fff3e0; }
.fi-zip    { background: #fce8e4; }
.fi-other  { background: var(--bg); }

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: .9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.file-more { padding: 6px; color: var(--text-4); flex-shrink: 0; }
.file-more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Grid mode */
.file-grid-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
}
.file-grid-item .file-icon { width: 40px; height: 40px; }
.file-grid-item .file-name { font-size: .72rem; text-align: center; color: var(--text); width: 100%;
                              overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* FAB upload */
.fab {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 20px;
  width: 52px; height: 52px;
  background: var(--primary); color: #fff;
  border-radius: 50%; box-shadow: var(--shadow-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 65; cursor: pointer;
  transition: transform .2s; -webkit-tap-highlight-color: transparent;
}
.fab:active { transform: scale(.92); }
.fab svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }

/* Batch bar */
.batch-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); background: var(--primary);
  display: flex; align-items: center; padding: 0 16px; gap: 12px;
  z-index: 70; transform: translateY(-100%); transition: transform .25s;
}
.batch-bar.active { transform: translateY(0); }
.batch-bar .bb-cancel { color: #fff; font-size: .88rem; cursor: pointer; }
.batch-bar .bb-info   { flex: 1; color: #fff; font-size: .88rem; text-align: center; }
.batch-bar .bb-actions { display: flex; gap: 10px; }
.batch-bar .bb-btn {
  color: #fff; font-size: .82rem; cursor: pointer;
  padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4);
}

/* Upload drop zone */
.upload-drop-zone {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 200;
  background: rgba(22, 119, 255, .12);
  border: 3px dashed var(--primary);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  font-size: 1.1rem; color: var(--primary);
  pointer-events: none;
}
.upload-drop-zone.active { display: flex; }

/* Upload progress item */
.upload-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: #fff;
  border-bottom: 1px solid var(--border);
}
.up-icon { font-size: 1.4rem; flex-shrink: 0; }
.up-info { flex: 1; min-width: 0; }
.up-name { font-size: .85rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-bar  { height: 4px; background: var(--bg); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.up-fill { height: 100%; background: var(--primary); border-radius: 2px; transition: width .2s; }
.up-pct  { font-size: .72rem; color: var(--text-3); flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   TRANSFER PAGE (Screenshot 2)
   ══════════════════════════════════════════════════ */
.transfer-tabs {
  display: flex; background: #fff;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.transfer-tabs::-webkit-scrollbar { display: none; }
.tt-item {
  flex-shrink: 0; padding: 13px 18px;
  font-size: .88rem; color: var(--text-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .2s; white-space: nowrap;
}
.tt-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.transfer-banner {
  margin: 12px 16px;
  background: var(--primary-lighter);
  border-radius: var(--radius); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.tb-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.tb-text .tb-title { font-size: .9rem; font-weight: 600; color: var(--primary); }
.tb-text .tb-sub   { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

.concurrent-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: .82rem; color: var(--text-2);
}
.concurrent-row .cr-num {
  color: var(--primary); font-weight: 600;
}
.concurrent-row select {
  border: 1px solid var(--border-2); border-radius: 6px;
  padding: 3px 6px; font-size: .82rem; color: var(--primary);
  background: #fff;
}

.status-tabs {
  display: flex; gap: 8px; padding: 8px 16px 4px;
}
.st-item {
  padding: 5px 14px; border-radius: 16px;
  font-size: .8rem; cursor: pointer;
  border: 1px solid var(--border-2); color: var(--text-2);
  transition: all .2s;
}
.st-item.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.transfer-list { padding: 8px 16px; }
.transfer-task {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.transfer-task:last-child { border-bottom: none; }
.tt-file-icon { font-size: 1.8rem; flex-shrink: 0; }
.tt-file-info { flex: 1; min-width: 0; }
.tt-file-name { font-size: .88rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-file-meta { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.tt-prog { height: 3px; background: var(--bg); border-radius: 2px; margin-top: 5px; }
.tt-prog-fill { height: 100%; border-radius: 2px; }
.tt-prog-fill.done { background: #52c41a; }
.tt-prog-fill.running { background: var(--primary); }
.tt-prog-fill.failed { background: #ff4d4f; }
.tt-status { flex-shrink: 0; }
.tt-status-badge { font-size: .72rem; padding: 2px 8px; border-radius: 10px; font-weight: 500; }
.tt-status-badge.done    { background: #f6ffed; color: #52c41a; }
.tt-status-badge.running { background: var(--primary-light); color: var(--primary); }
.tt-status-badge.failed  { background: #fff1f0; color: #ff4d4f; }

.transfer-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; gap: 16px;
}
.te-circle {
  width: 100px; height: 100px; background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.te-circle svg { width: 48px; height: 48px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.transfer-empty p { font-size: .88rem; color: var(--text-3); }

/* ══════════════════════════════════════════════════
   INFO / CHAT PAGE (Screenshot 1)
   ══════════════════════════════════════════════════ */
.info-section-label {
  padding: 14px 16px 6px;
  font-size: .78rem; color: var(--text-3); font-weight: 500;
}
.conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer;
  transition: background .15s; position: relative;
}
.conv-item:active { background: var(--bg); }
.conv-item::after {
  content: ''; position: absolute; left: 72px; right: 0; bottom: 0;
  height: 1px; background: var(--border);
}
.conv-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #a8c8f0 0%, #5a9fd4 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; font-weight: 600;
  position: relative; overflow: hidden;
}
.conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.conv-avatar.deleted {
  background: var(--primary-light); color: var(--primary);
  font-size: .9rem; font-weight: 700;
}
.conv-body { flex: 1; min-width: 0; }
.conv-row1 { display: flex; align-items: center; justify-content: space-between; }
.conv-name { font-size: .9rem; font-weight: 500; color: var(--text); }
.conv-time { font-size: .72rem; color: var(--text-3); }
.conv-preview {
  font-size: .78rem; color: var(--text-3); margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.unread-dot {
  width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0;
}
.unread-count {
  background: #ff4d4f; color: #fff;
  font-size: .65rem; min-width: 16px; height: 16px;
  border-radius: 8px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
}

.info-add-btn {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 20px;
  width: 48px; height: 48px;
  background: var(--primary); color: #fff; border-radius: 50%;
  box-shadow: var(--shadow-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; z-index: 65; cursor: pointer;
}

/* ══════════════════════════════════════════════════
   MINE PAGE (Screenshot 3)
   ══════════════════════════════════════════════════ */
.mine-page { background: var(--bg); }
.mine-profile {
  background: #fff; padding: 20px 16px 16px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.mine-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #d0e8ff 0%, #a8c8f0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden; cursor: pointer;
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-info-block { flex: 1; min-width: 0; }
.mine-nickname {
  font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vip-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 7px; border-radius: 10px; font-size: .68rem; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
}
.vip-badge.svip {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #4a2800; box-shadow: 0 2px 6px rgba(255,140,0,.35);
}
.vip-badge.vip {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,.3);
}
.mine-vip-link {
  font-size: .78rem; color: var(--primary); display: flex; align-items: center; gap: 2px; cursor: pointer; margin-bottom: 3px;
}
.mine-vip-link.is-svip {
  color: #d97706; font-weight: 600;
}
.mine-email    { font-size: .75rem; color: var(--text-3); }
.mine-actions  { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.mine-checkin-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border: 1px solid var(--primary);
  border-radius: 16px; font-size: .78rem; color: var(--primary); cursor: pointer;
}
.mine-checkin-btn.done {
  border-color: var(--border-2); color: var(--text-3);
  cursor: not-allowed;
}
.mine-qr-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; font-size: 1rem;
}
.mine-qr-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* VIP Banner */
.vip-banner {
  margin: 0 16px 12px;
  background: linear-gradient(110deg, #2d1b00 0%, #5c3d00 40%, #8b5e00 70%, #c4820a 100%);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.vb-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffdd82, #f5a623);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.vb-text { flex: 1; }
.vb-title { font-size: .9rem; font-weight: 700; color: #ffd96a; }
.vb-sub   { font-size: .72rem; color: rgba(255,210,100,.65); margin-top: 2px;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vb-btn   {
  flex-shrink: 0; padding: 7px 14px;
  background: linear-gradient(135deg, #ffd96a, #f5a623);
  color: #5c3000; font-size: .8rem; font-weight: 700;
  border-radius: 16px; white-space: nowrap;
}

/* Storage section */
.mine-storage {
  background: #fff; margin: 0 0 8px;
  padding: 14px 16px;
}
.ms-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.ms-title {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--text);
}
.ms-title svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.ms-total  { font-size: .78rem; color: var(--text-3); }
.ms-bar    { height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-bottom: 8px; display: flex; }
.ms-seg    { height: 100%; border-radius: 0; transition: width .5s; }
.ms-seg:first-child { border-radius: 4px 0 0 4px; }
.ms-seg:last-child  { border-radius: 0 4px 4px 0; }
.ms-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.ms-leg-item { display: flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--text-3); }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Quick action grid */
.mine-quick {
  background: #fff; padding: 14px 0 12px;
  margin-bottom: 8px;
}
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 4px 4px 4px; cursor: pointer;
}
.quick-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform .15s;
}
.quick-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.6; }
.quick-item:active .quick-icon { transform: scale(.9); }
.quick-label { font-size: .7rem; color: var(--text-2); }

/* Settings menu list */
.mine-settings { background: #fff; }
.setting-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer; position: relative;
}
.setting-item:not(:last-child)::after {
  content: ''; position: absolute; left: 58px; right: 0; bottom: 0;
  height: 1px; background: var(--border);
}
.setting-item:active { background: var(--bg); }
.si-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .95rem;
}
.si-icon svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; stroke-width: 1.8; }
.si-text { flex: 1; }
.si-title { font-size: .88rem; color: var(--text); font-weight: 500; }
.si-sub   { font-size: .72rem; color: var(--text-3); margin-top: 1px; }
.si-arrow { color: var(--text-4); flex-shrink: 0; font-size: .8rem; }
.si-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══════════════════════════════════════════════════
   OVERLAY / SUB-PAGES
   ══════════════════════════════════════════════════ */
.page-overlay {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 150;
  background: var(--bg-card);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.page-overlay.open { transform: translateX(0); }
.ov-header {
  height: var(--header-h); background: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.ov-back {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: var(--text-2);
}
.ov-back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.ov-title { flex: 1; font-size: 1rem; font-weight: 700; color: var(--text); }
.ov-body  { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
.ov-body::-webkit-scrollbar { display: none; }

/* ── Recycle bin ── */
.trash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.trash-item .ti-del { font-size: .72rem; color: #ff4d4f; }

/* ── My shares ── */
.share-item {
  background: #fff; margin: 8px 16px;
  border-radius: var(--radius); padding: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.share-item .share-name { font-size: .9rem; font-weight: 500; color: var(--text); margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-item .share-meta { font-size: .75rem; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.share-item .share-url  { font-size: .78rem; color: var(--primary); word-break: break-all; margin: 6px 0; }
.share-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sh-btn {
  padding: 5px 12px; border-radius: 6px; font-size: .78rem; cursor: pointer; border: 1px solid var(--border-2);
  white-space: nowrap; user-select: none;
}
.sh-btn.copy   { color: var(--primary); border-color: var(--primary-light); background: var(--primary-light); }
.sh-btn.copy-pwd { color: #fa8c16; border-color: #ffe58f; background: #fffbe6; }
.sh-btn.cancel { color: #ff4d4f; border-color: #ffccc7; background: #fff1f0; }
.sh-btn.sm { padding: 3px 8px; font-size: .72rem; }
.share-pwd-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin: 8px 0 2px;
}
.sh-pw { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: #fa8c16;
         background: #fffbe6; padding: 4px 10px; border-radius: 10px; }
.sh-pw strong { color: #d46b08; font-weight: 600; letter-spacing: 1px; }

/* ── 我的分享：文件分享 / 收文件 双 Tab ── */
.sh-tab {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
  font-size: .84rem; font-weight: 600; cursor: pointer; user-select: none;
  background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; transition: .15s;
}
.sh-tab.on { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }

/* ── Settings overlay ── */
.settings-group { background: #fff; margin-bottom: 8px; }
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.settings-item:last-child { border-bottom: none; }
.settings-item label { font-size: .88rem; color: var(--text); cursor: pointer; }
.settings-item .sv { font-size: .82rem; color: var(--text-3); }
.settings-item input[type=text], .settings-item input[type=email], .settings-item input[type=password] {
  background: transparent; font-size: .88rem; color: var(--text); text-align: right;
  flex: 1; min-width: 0; margin-left: 10px;
}
.settings-item input::placeholder { color: var(--text-4); }
.toggle-switch {
  width: 42px; height: 24px; background: var(--border-2); border-radius: 12px;
  position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0;
}
.toggle-switch.on { background: var(--primary); }
.toggle-switch::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; top: 3px; left: 3px;
  background: #fff; border-radius: 50%; transition: left .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch.on::after { left: 21px; }

/* ── Notification item ── */
.notice-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer;
}
.notice-item.unread { background: var(--primary-lighter); }
.ni-dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.ni-body { flex: 1; min-width: 0; }
.ni-title { font-size: .88rem; font-weight: 500; color: var(--text); }
.ni-content { font-size: .78rem; color: var(--text-3); margin-top: 3px; }
.ni-time { font-size: .72rem; color: var(--text-4); margin-top: 4px; }
.ni-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.ni-top { display: flex; align-items: center; gap: 6px; }
.ni-badge {
  font-size: .64rem; padding: 1px 6px; border-radius: 6px; flex-shrink: 0; font-weight: 500;
}
.ni-arrow { color: var(--text-4); font-size: 1.1rem; flex-shrink: 0; align-self: center; }
.notice-head {
  padding: 10px 16px; font-size: .76rem; color: var(--text-4);
  background: var(--bg-2, #f8fafc); border-bottom: 1px solid var(--border);
}

/* ── 通知详情 ── */
.nd-wrap { padding: 14px 14px 24px; }
.nd-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px 16px; text-align: center;
}
.nd-icon {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.nd-title { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.5; }
.nd-meta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 8px 0 14px; font-size: .72rem; color: var(--text-4);
}
.nd-type { font-size: .68rem; padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.nd-content {
  text-align: left; font-size: .86rem; color: var(--text-2); line-height: 1.75;
  background: var(--bg-2, #f8fafc); border-radius: 10px; padding: 12px 14px;
  word-break: break-word;
}
.nd-content p { margin: 0 0 6px; }
.nd-content p:last-child { margin-bottom: 0; }
.nd-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.nd-btn {
  padding: 11px 0; text-align: center; border-radius: 10px; font-size: .88rem;
  background: #fff; border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
}
.nd-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.nd-btn.danger  { color: #ff4d4f; }

/* 首页铃铛未读红点 */
.hdr-dot {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #ff4d4f;
  color: #fff; font-size: .6rem; line-height: 16px; text-align: center;
  border: 1px solid #fff; pointer-events: none;
}
.hdr-btn { position: relative; }

/* ── 隐私与安全 ── */
.ps-tip {
  margin: 14px 16px 0; padding: 10px 12px; font-size: .74rem; color: var(--text-3);
  background: var(--bg-2, #f8fafc); border: 1px solid var(--border); border-radius: 10px;
  line-height: 1.7;
}
.ps-form { padding: 16px 16px 24px; }
.ps-field { margin-bottom: 14px; }
.ps-field label { display: block; font-size: .78rem; color: var(--text-3); margin-bottom: 6px; font-weight: 500; }
.ps-field input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: .9rem;
  border: 1px solid var(--border-2); border-radius: 10px; outline: none; background: #fff; color: var(--text);
}
.ps-field input:focus { border-color: var(--primary); }
.ps-submit {
  margin-top: 6px; padding: 12px 0; text-align: center; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: .9rem; cursor: pointer;
}
.ps-submit.danger { background: #ef4444; }
.ps-submit.ghost { background: transparent; color: var(--text-3); border: 1px solid var(--border-2); }
.ps-form .ps-tip { margin: 16px 0 0; }

/* ── 账号锁定（只读模式） ── */
.lock-banner {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px;
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
}
.lock-banner .lb-ico { font-size: 1.1rem; flex-shrink: 0; }
.lock-banner .lb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.lock-banner .lb-txt b { font-size: .82rem; color: #b91c1c; }
.lock-banner .lb-txt span { font-size: .72rem; color: #b91c1c; opacity: .85; }
.lock-banner .lb-btn {
  flex-shrink: 0; padding: 6px 14px; font-size: .78rem; font-weight: 600; color: #fff;
  background: #ef4444; border-radius: 8px; cursor: pointer;
}
.al-state { padding: 22px 18px 18px; text-align: center; }
.al-state .al-ico { font-size: 2.2rem; }
.al-state h3 { margin: 10px 0 6px; font-size: 1rem; }
.al-state p { margin: 0; font-size: .78rem; color: var(--text-3); line-height: 1.7; }
.al-state.locked { background: #fef2f2; border-bottom: 1px solid #fecaca; }
.al-state.locked h3 { color: #b91c1c; }

/* ── Order/VIP ── */
.vip-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.vip-plan {
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; cursor: pointer; transition: all .2s;
  background: #fff; position: relative;
}
.vip-plan.recommend { border-color: #93c5fd; background: #f8fafc; }
.vip-plan.selected {
  border-color: #2563eb !important; background: #eff6ff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,0.18); transform: translateY(-2px);
}
.vip-plan.selected .vp-name { color: #1e40af !important; font-weight: 600; }
.vip-plan.selected .vp-price { color: #2563eb !important; }
.vip-plan .vp-name  { font-size: .78rem; color: var(--text-3); margin-bottom: 8px; }
.vip-plan .vp-price { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.vip-plan .vp-price span { font-size: .72rem; font-weight: 400; color: var(--text-3); }
.vip-plan .vp-tag   { font-size: .68rem; color: #ff4d4f; margin-top: 4px; }
.vip-plan.recommend .vp-price { color: var(--primary); }
.vip-benefits { padding: 0 16px; }
.vip-benefit-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.vb-check { width: 18px; height: 18px; background: var(--primary-light); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: .7rem; }
.vb-name { font-size: .85rem; color: var(--text); }

/* ── Privacy space ── */
.privacy-lock {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 24px; gap: 16px; text-align: center;
}
.privacy-lock .lock-icon { font-size: 3.5rem; }
.privacy-lock h3 { font-size: 1rem; font-weight: 600; color: var(--text); }
.privacy-lock p  { font-size: .82rem; color: var(--text-3); }
.pin-row { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border-2); background: transparent;
  transition: background .2s;
}
.pin-dot.filled { background: var(--primary); border-color: var(--primary); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 260px; margin: 8px auto 0; }
.pin-key {
  padding: 15px; text-align: center; font-size: 1.1rem; font-weight: 500;
  background: var(--bg); border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s; -webkit-tap-highlight-color: transparent;
}
.pin-key:active { background: var(--primary-light); }

/* ── File cleanup ── */
.cleanup-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; margin-bottom: 1px;
}
.cu-icon  { font-size: 1.8rem; flex-shrink: 0; }
.cu-info  { flex: 1; }
.cu-title { font-size: .9rem; font-weight: 500; color: var(--text); }
.cu-sub   { font-size: .75rem; color: var(--text-3); margin-top: 2px; }
.cu-size  { font-size: .82rem; color: var(--primary); font-weight: 600; margin-top: 2px; }
.cu-btn   { padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 16px; font-size: .8rem; color: var(--text-2); cursor: pointer; }
.cu-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ── FTP Settings ── */
.ftp-form  { padding: 16px; }
.ftp-field { margin-bottom: 14px; }
.ftp-field label { display: block; font-size: .78rem; color: var(--text-3); margin-bottom: 5px; }
.ftp-field input {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-size: .88rem; color: var(--text); transition: border-color .2s;
}
.ftp-field input:focus { border-color: var(--primary); background: #fff; }
.ftp-save-btn {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .2s;
}
.ftp-save-btn:active { background: var(--primary-dark); }

/* ── Chat Overlay ── */
.chat-overlay {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 200;
  background: #f7f8fc;
  display: flex; flex-direction: column;
  height: 100%;
  height: 100dvh;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.chat-overlay.open { transform: translateY(0); }
.chat-header {
  height: var(--header-h); background: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.chat-header .chat-name { flex: 1; font-size: .95rem; font-weight: 600; color: var(--text); display:flex; align-items:center; gap:8px; }
.support-badge { font-size:.7rem; font-weight:500; color:#fff; background: var(--primary); padding:2px 8px; border-radius: 99px; }
.support-notice { font-size:.75rem; color: var(--primary); background: var(--primary-light); text-align:center; padding:8px 12px; flex-shrink:0; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.chat-messages::-webkit-scrollbar { display: none; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row.mine  { flex-direction: row-reverse; }
/* 微信风格：头像右侧为「消息列」——昵称在上、气泡在下 */
.msg-main {
  display: flex; flex-direction: column;
  align-items: flex-start;
  min-width: 0; max-width: 74%;
}
.msg-row.mine .msg-main { align-items: flex-end; }
.msg-main > .msg-bubble { max-width: 100%; }
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light);
              display: flex; align-items: center; justify-content: center; font-size: .85rem;
              color: var(--primary); font-weight: 600; flex-shrink: 0; align-self: flex-start; }
.msg-bubble {
  max-width: 70%; padding: 10px 13px;
  border-radius: 16px 16px 16px 4px;
  background: #fff; font-size: .88rem; line-height: 1.5; color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.06); word-break: break-word;
}
.msg-row.mine .msg-bubble {
  background: var(--primary); color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.msg-file-bubble {
  display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 10px 12px;
  border-radius: 12px; max-width: 220px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer;
}
.msg-file-icon { font-size: 1.5rem; flex-shrink: 0; }
.msg-file-info { flex: 1; min-width: 0; }
.msg-file-name { font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-file-size { font-size: .72rem; color: var(--text-3); }
.msg-time { font-size: .68rem; color: var(--text-4); flex-shrink: 0; align-self: flex-end; margin-bottom: 4px; }

/* ── 引用回复：气泡上方的引用条 ── */
.msg-quote {
  display: flex; gap: 4px; max-width: 100%;
  margin-bottom: 4px; padding: 5px 9px;
  background: rgba(15, 23, 42, .06);
  border-left: 3px solid var(--primary);
  border-radius: 6px; cursor: pointer;
  font-size: .72rem; line-height: 1.45; color: var(--text-3);
  overflow: hidden;
}
.msg-quote:active { background: rgba(15, 23, 42, .12); }
.msg-quote .mq-name { flex-shrink: 0; color: var(--primary); font-weight: 600; }
.msg-quote .mq-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 自己的消息：引用块独立在气泡外（浅色背景上），不能用白字 */
.msg-row.mine .msg-quote {
  border-left-color: var(--primary);
  background: rgba(37, 99, 235, .08);
}
.msg-row.mine .msg-quote .mq-name { color: var(--primary); }
.msg-row.mine .msg-quote .mq-text { color: var(--text-3); }

/* 点击引用条定位到原消息时的闪烁高亮 */
@keyframes msgFlash {
  0%   { background: rgba(37,99,235,.22); }
  100% { background: transparent; }
}
.msg-row.msg-flash > .msg-main,
.msg-row.msg-flash {
  animation: msgFlash 1.5s ease-out;
  border-radius: 10px;
}

/* ── 输入框上方的「回复 xxx」条 ── */
.reply-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; background: #eef4ff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid #dbe6fb;
}
.reply-bar .rb-body { flex: 1; min-width: 0; }
.reply-bar .rb-name { font-size: .72rem; color: var(--text-3); }
.reply-bar .rb-name b { color: var(--primary); }
.reply-bar .rb-text {
  font-size: .76rem; color: var(--text-2); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reply-bar .rb-close {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer;
}
.reply-bar .rb-close svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── 聊天富媒体：图片 / 视频 / 链接 ── */
.msg-img-bubble { max-width: 220px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.msg-img-bubble img { display: block; width: 100%; max-height: 240px; object-fit: cover; }
.msg-row.mine .msg-img-bubble { box-shadow: 0 2px 8px rgba(22,119,255,.18); }
.msg-video-bubble { width: 240px; max-width: 70vw; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.msg-video-bubble video { display: block; width: 100%; max-height: 280px; background: #000; }
.msg-attach-name { font-size: .7rem; color: #64748b; padding: 4px 8px; background: rgba(255,255,255,.92); }
.msg-row.mine .msg-attach-name { color: #1d4ed8; }
.msg-link-bubble { display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 8px 10px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; cursor: pointer; transition: background .15s; }
.msg-link-bubble:hover { background: #dbeafe; }
.msg-link-ico { font-size: 1.1rem; flex-shrink: 0; }
.msg-link-info { min-width: 0; flex: 1; }
.msg-link-title { font-size: .78rem; color: #1e40af; word-break: break-all; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-link-host { font-size: .68rem; color: #64748b; margin-top: 2px; }
.msg-link-go { color: #2563eb; font-weight: 700; flex-shrink: 0; }

/* ── 图片放大 Lightbox ── */
.img-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.92); }
.img-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: zoom-out; }
.img-lightbox-close { position: absolute; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.img-lightbox-close:hover { background: rgba(255,255,255,.3); }
/* ── 聊天：网盘文件选择器 ── */
.cfp-loading, .cfp-empty { text-align: center; padding: 40px 16px; color: var(--text-3); font-size: .85rem; }
.cfp-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--border, #eef2f7);
  cursor: pointer; transition: background .15s;
}
.cfp-item:active { background: #f3f6fb; }
.cfp-ico { font-size: 1.4rem; flex-shrink: 0; width: 34px; text-align: center; }
.cfp-info { min-width: 0; flex: 1; }
.cfp-name { font-size: .88rem; color: var(--text, #1f2937); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfp-size { font-size: .72rem; color: var(--text-3, #94a3b8); margin-top: 2px; }

.chat-input-bar {
  background: #fff; border-top: 1px solid var(--border);
  padding: 10px 16px; display: flex; align-items: flex-end; gap: 10px;
  flex-shrink: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
}
.chat-input {
  flex: 1; background: var(--bg); border-radius: 20px; padding: 9px 14px;
  font-size: .88rem; color: var(--text); min-height: 38px; max-height: 100px;
  overflow-y: auto; resize: none; line-height: 1.4;
}
.chat-send-btn {
  width: 36px; height: 36px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.chat-send-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.chat-attach-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
  color: var(--text-3);
}
.chat-attach-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ══════════════════════════════════════════════════
   ACTION SHEET / MODAL
   ══════════════════════════════════════════════════ */
.mask {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; background: rgba(0,0,0,.45); z-index: 300;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mask.center-modal { justify-content: center; align-items: center; }
.mask.hidden { display: none; }
.action-sheet {
  background: #fff; border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.as-title {
  text-align: center; padding: 14px 16px 10px;
  font-size: .82rem; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.as-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; cursor: pointer; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--text); transition: background .15s;
}
.as-item:active { background: var(--bg); }
.as-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.as-item.danger { color: #ff4d4f; }
.as-cancel {
  padding: 14px; text-align: center; font-size: .9rem; color: var(--text-2);
  cursor: pointer; background: #fff; border-top: 6px solid var(--bg);
}

/* Center modal (dialog) */
.center-dialog {
  background: #fff; border-radius: 16px;
  width: calc(100% - 64px); max-width: 320px;
  overflow: hidden;
}
.cd-head { padding: 18px 20px 8px; text-align: center; }
.cd-head h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.cd-body { padding: 8px 20px 16px; font-size: .88rem; color: var(--text-2); text-align: center; line-height: 1.6; }
.cd-input {
  width: 100%; margin: 4px 0 8px; padding: 10px 12px;
  background: var(--bg); border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text); border: 1.5px solid transparent; transition: border-color .2s;
}
.cd-input:focus { border-color: var(--primary); }
.cd-btns { display: flex; border-top: 1px solid var(--border); }
.cd-btn {
  flex: 1; padding: 13px; text-align: center;
  font-size: .9rem; cursor: pointer; transition: background .15s;
}
.cd-btn:not(:last-child) { border-right: 1px solid var(--border); }
.cd-btn:active { background: var(--bg); }
.cd-btn.primary { color: var(--primary); font-weight: 600; }
.cd-btn.danger  { color: #ff4d4f; }

/* ══════════════════════════════════════════════════
   SEARCH RESULTS / Misc
   ══════════════════════════════════════════════════ */
.search-results-page {
  position: fixed; top:0;right:0;bottom:0;left:0;inset: 0; z-index: 160; background: #fff;
  display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform .25s;
}
.search-results-page.open { transform: translateY(0); }
.sr-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: #fff;
}
.sr-input {
  flex: 1; background: var(--bg); border-radius: 20px;
  padding: 9px 14px; font-size: .88rem; color: var(--text);
}
.sr-cancel { font-size: .88rem; color: var(--primary); cursor: pointer; flex-shrink: 0; }
.sr-body   { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── User search ── */
.user-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.user-search-item:active { background: var(--bg); }
.usa-avatar { width: 40px; height: 40px; border-radius: 50%;
              background: var(--primary-light); display: flex; align-items: center; justify-content: center;
              color: var(--primary); font-weight: 600; font-size: .95rem; }
.usa-name { flex: 1; font-size: .9rem; color: var(--text); }
.usa-btn  { padding: 5px 14px; background: var(--primary-light); color: var(--primary);
            border-radius: 14px; font-size: .78rem; cursor: pointer; }
.usa-btn.added { background: var(--bg); color: var(--text-3); }

/* ── Section separator ── */
.section-sep { height: 8px; background: var(--bg); }

/* ── Pull to refresh (visual) ── */
.ptr-text {
  text-align: center; padding: 10px;
  font-size: .78rem; color: var(--text-4); display: none;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════ */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.fade-in  { animation: fadeIn  .3s ease; }
.slide-up { animation: slideUp .3s ease; }

/* ── Safe area on iPhones ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .page-body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
}

/* ── Image thumbnails ── */
.file-thumb {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; display: block;
}
.file-thumb.thumb-grid {
  width: 100%; height: 64px; border-radius: var(--radius-sm);
}

/* ── Media viewer overlay ── */
/* ══════════════════════════════════════════════════
   MEDIA VIEWER & VIDEO PLAYER (v2.9.1 最终修复版：图片/视频预览与关闭)
   ══════════════════════════════════════════════════ */
.media-viewer {
  position: fixed; top:0;right:0;bottom:0;left:0; z-index: 9999;
  display: flex; flex-direction: column;
  opacity: 0; transition: opacity .2s ease-out;
  background: rgba(0,0,0,.96);
  touch-action: manipulation; user-select: none;
}
.media-viewer.show { opacity: 1; }
.mv-backdrop {
  position: absolute; top:0;right:0;bottom:0;left:0; z-index: 1;
  background: rgba(0,0,0,.96);
}

/* 顶部状态栏 - 图片/视频都永久可见 */
.mv-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 100%);
  opacity: 1 !important; pointer-events: auto !important;
}
.mv-title {
  font-size: .92rem; font-weight: 600; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-right: 12px; color: #fff;
}
.mv-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* 右上角悬浮关闭按钮 - 图片预览时专用 */
.mv-float-close {
  position: absolute; top: max(14px, env(safe-area-inset-top));
  right: 14px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; cursor: pointer; user-select: none;
  border: 2px solid rgba(255,255,255,.45);
  box-shadow: 0 3px 14px rgba(0,0,0,.45);
}
.mv-float-close:active { background: rgba(255,255,255,.5); transform: scale(.92); }

/* 通用关闭/功能按钮 */
.mv-icon-btn, .mv-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.25); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; user-select: none;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.mv-icon-btn:active, .mv-close:active { transform: scale(.92); background: rgba(255,255,255,.5); }

.mv-content {
  position: relative; z-index: 5; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 12px 20px;
  overflow: hidden;
}
.mv-content video { max-width: 100%; max-height: 100%; border-radius: 8px; background:#000; }
.mv-content img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,.5);
  cursor: pointer;
}

/* 视频状态下的特殊样式 */
.media-viewer.video-mode .mv-bar { z-index: 12; }
.media-viewer.video-mode.hide-ctrl .mv-bar { opacity: 0 !important; pointer-events: none !important; }
.media-viewer.video-mode.hide-ctrl .mv-float-close { display: none; }

/* ── Audio mini player：右侧悬浮小胶囊（可拖动吸附左/右侧，点击侧滑展开）── */
.audio-player {
  position: fixed; right: 10px;
  bottom: calc(var(--nav-h) + 16px);
  z-index: 99990;
  opacity: 0; transform: translateY(12px) scale(.9);
  transition: opacity .25s ease, transform .25s ease;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  /* v3.3.40：面板与胶囊共用一个容器，展开时给出明确宽度，避免挤在右下角 */
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  max-width: calc(100vw - 20px);
}
.audio-player.show { opacity: 1; transform: translateY(0) scale(1); }
/* v3.3.40：展开态改为「底部抽屉」——横跨屏幕底部居中，
   不再缩在右下角（修「首次播放弹出窗口丢到右下角」）*/
.audio-player.expanded {
  left: 8px; right: 8px; width: auto;
  bottom: calc(var(--nav-h) + 8px);
  align-items: stretch;
}

/* 收起态：只有一个 44px 小圆钮，几乎不占地方。
   外圈用 conic-gradient 直接显示播放进度，不展开也能看到播到哪了 */
.ap-bubble {
  width: 46px; height: 46px; border-radius: 50%;
  box-sizing: border-box; padding: 3px;
  background: conic-gradient(var(--primary) var(--ap-progress, 0%), rgba(255,255,255,.28) var(--ap-progress, 0%));
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  display: none; align-items: center; justify-content: center;
  cursor: pointer;
}
.audio-player.collapsed .ap-bubble { display: flex; }
.ap-bubble-disc {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  animation: ap-spin 4s linear infinite;
  animation-play-state: paused;
}
.audio-player.playing .ap-bubble-disc { animation-play-state: running; }

/* 展开态：侧滑小面板 */
.ap-panel {
  display: none;
  width: min(268px, 74vw);
  box-sizing: border-box;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid #eef0f5;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0,0,0,.18);
  padding: 10px 12px 8px;
  flex-direction: column; gap: 7px;
}
/* v3.3.40：面板从底部滑入 */
.audio-player.expanded .ap-panel {
  display: flex;
  width: 100%;
  border-radius: 18px;
  animation: ap-sheet .24s cubic-bezier(.22,1,.36,1);
}
@keyframes ap-sheet {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ap-head { display: flex; align-items: center; gap: 8px; }
.ap-disc {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1677ff, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem;
  animation: ap-spin 5s linear infinite;
  animation-play-state: paused;
}
.audio-player.playing .ap-disc { animation-play-state: running; }
.ap-info { flex: 1; min-width: 0; }
.ap-title {
  font-size: .82rem; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ap-sub { font-size: .68rem; color: var(--text-3); margin-top: 1px; }
/* v3.3.43 播放器控件美化：统一 SVG 图标尺寸、加大触控区、渐变主键 */
.ap-btn {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); background: transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.ap-btn:hover { background: #eef2f7; color: var(--text-2); }
.ap-btn:active { background: #e2e8f0; transform: scale(.92); }
.ap-btn svg { display: block; }

/* 进度条（可点击 / 拖动定位）*/
.ap-bar { position: relative; height: 22px; cursor: pointer; touch-action: none; }
.ap-bar-track {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%); height: 5px; border-radius: 5px;
  background: #e6ebf2; overflow: hidden;
}
.ap-bar-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: width .12s linear;
}
/* v3.3.40：滑块改为 left 百分比定位（与 fill 宽度解耦，拖动才跟手）*/
.ap-knob {
  position: absolute; left: 0; top: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #2563eb; box-shadow: 0 1px 6px rgba(37,99,235,.35);
  pointer-events: none;
  transition: transform .15s, left .12s linear;
  opacity: .9;
}
/* v3.3.43：按住/拖动时滑块放大、进度条加粗，明确「正在拖」的反馈 */
.audio-player .ap-bar:active .ap-knob,
.audio-player.ap-dragging .ap-knob { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
.audio-player.ap-dragging .ap-bar-fill { transition: none; }
.audio-player.ap-dragging .ap-knob { transition: none; }
/* 封面图（文件自身的内嵌专辑封面）*/
.ap-disc img, .ap-bubble-disc img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  display: block;
}
/* v3.3.40：hidden 属性必须能真正隐藏
   （display:flex/block 会覆盖 hidden，导致封面与图标同时显示）*/
.ap-disc img[hidden], .ap-bubble-disc img[hidden],
.ap-disc > span[hidden], .ap-bubble-disc > span[hidden] { display: none !important; }
.ap-disc > span, .ap-bubble-disc > span { line-height: 1; display: flex; align-items: center; justify-content: center; }
/* v3.3.40：用内联 SVG 音符，避免 emoji 字体缺失时显示成方框 */
.ap-icon-svg { color: #fff; }
.ap-icon-svg svg { display: block; }
.ap-times {
  display: flex; justify-content: space-between;
  font-size: .65rem; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.ap-ctrls { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 4px 0 2px; }
.ap-ctrl {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); background: #f1f5f9; cursor: pointer;
  transition: background .15s, transform .15s;
}
.ap-ctrl svg { display: block; }
.ap-ctrl:hover { background: #e2e8f0; }
.ap-ctrl:active { transform: scale(.9); }
.ap-play {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  transition: transform .15s, box-shadow .15s;
}
.ap-play:hover { box-shadow: 0 6px 18px rgba(37,99,235,.45); }
.ap-play:active { transform: scale(.92); }
.ap-play svg { display: block; }
@keyframes ap-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── 在线状态小绿点 ── */
.online-dot {
  display: inline-block;
  width: 7px; height: 7px; margin-left: 4px;
  border-radius: 50%; background: #cbd5e1;
  vertical-align: middle; flex-shrink: 0;
  opacity: 0; transform: scale(.4);
  transition: opacity .2s ease, transform .2s ease;
}
.online-dot.on {
  opacity: 1; transform: scale(1);
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.18);
}
.online-dot.tiny { width: 5px; height: 5px; margin-left: 3px; box-shadow: none; }
.presence-text {
  margin-left: 6px; font-size: .66rem; font-style: normal;
  color: var(--text-4, #94a3b8); font-weight: 400;
}
.presence-text.on { color: #16a34a; }

/* ── Magnet / media links ── */
.mag-input-wrap { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.mag-input {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: .88rem; background: #fff;
}
.mag-input:focus { border-color: var(--primary); outline: none; }
.mag-add-btn {
  padding: 11px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.mag-list { padding: 0 12px 16px; }
.mag-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: #f8f9ff;
  margin-bottom: 8px;
}
.mag-icon { font-size: 1.4rem; flex-shrink: 0; }
.mag-info { flex: 1; min-width: 0; }
.mag-title {
  font-size: .85rem; color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mag-url {
  font-size: .7rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px;
}
.mag-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.mag-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .85rem; user-select: none;
  transition: transform .1s, opacity .15s;
}
.mag-btn:active { transform: scale(.9); }
.mag-btn.play  { background: var(--primary); color: #fff; }
.mag-btn.drive { background: #e0f2fe; color: #0284c7; }
.mag-btn.open  { background: #fef3c7; color: #d97706; }
.mag-btn.copy  { background: #f3f4f6; color: #4b5563; }
.mag-btn.del   { background: #fff0f0; color: #e03131; }

/* ══════════════════════════════════════════════════
   v2.8 追加：视频播放器 / 磁力搜索 / 缩略图
   ══════════════════════════════════════════════════ */
/* ── 视频播放器控制条透明度由视频控制器动态切换 ── */
.media-viewer.video-mode .mv-bar {
  opacity: 1; pointer-events: auto;
}
.media-viewer.video-mode.hide-ctrl .mv-bar {
  opacity: 0; pointer-events: none;
}

/* ── 视频播放器 ── */
.vp-stage {
  position: relative; width: 100%; height: 100%;
  background: #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vp-stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vp-stage.rotated video { transform: rotate(90deg) scale(1.6); }
.vp-shade { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; }
.vp-center-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border: 1.5px solid rgba(255,255,255,.7);
  color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  transition: transform .15s, background .15s;
}
.vp-center-play svg { width: 32px; height: 32px; }
.vp-center-play:active { transform: translate(-50%,-50%) scale(.92); background: rgba(255,255,255,.32); }
.vp-loading {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  display: none; z-index: 3;
}
.vp-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  -webkit-animation: vpspin .8s linear infinite; animation: vpspin .8s linear infinite;
}
@-webkit-keyframes vpspin { to { -webkit-transform: rotate(360deg); } }
@keyframes vpspin { to { transform: rotate(360deg); } }
.vp-time-toast {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.85);
  background: rgba(0,0,0,.72); color: #fff;
  padding: 8px 16px; border-radius: 20px;
  font-size: .9rem; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none; z-index: 6;
  transition: opacity .2s, transform .2s;
}
.vp-time-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vp-ctrl {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.85));
  z-index: 5; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.vp-ctrl.show { opacity: 1; pointer-events: auto; }
.vp-progress-wrap {
  position: relative; padding: 8px 0; margin-bottom: 2px;
  touch-action: none;
}
.vp-progress {
  position: relative; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.22); cursor: pointer;
  touch-action: none;
}
.vp-buffer, .vp-played { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; }
.vp-buffer { background: rgba(255,255,255,.32); width: 0; }
.vp-played { background: linear-gradient(90deg, var(--primary), #69b1ff); width: 0; }
.vp-dot {
  position: absolute; right: -8px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 1px 6px rgba(0,0,0,.45);
  opacity: 0; transition: opacity .15s;
}
.vp-progress:hover .vp-dot, .vp-progress-wrap:active .vp-dot { opacity: 1; }
.vp-row { display: flex; align-items: center; gap: 6px; color: #fff; }
.vp-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; user-select: none;
  background: rgba(255,255,255,.08); transition: background .15s;
}
.vp-btn svg { width: 18px; height: 18px; }
.vp-btn.play svg { width: 20px; height: 20px; }
.vp-btn:active { background: rgba(255,255,255,.25); }
.vp-btn#vp-speed {
  width: auto; min-width: 42px; padding: 0 8px;
  font-size: .78rem; font-weight: 600; border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.vp-time { font-size: .76rem; opacity: .95; padding: 0 4px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; }
.vp-time-sep { opacity: .5; }
.vp-space { flex: 1; }
.vp-vol {
  width: 80px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,.25); cursor: pointer; position: relative;
}
.vp-vol-in { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; background: #fff; width: 100%; }

/* ── 磁力搜索 ── */
.mag-result-title { font-size: .8rem; color: var(--text-3); padding: 8px 4px 4px; }
.mag-searching, .mag-empty {
  padding: 18px 4px; text-align: center; color: var(--text-3); font-size: .84rem;
}
.mag-btn.save { background: #e8f3ff; color: var(--primary); }
.mag-btn.save:active { background: var(--primary); color: #fff; }

/* ── 缩略图（小尺寸模糊，节省流量） ── */
.file-thumb {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(0.4px) saturate(1.05); /* 轻微模糊，视觉更柔和 */
}
.thumb-grid { aspect-ratio: 1 / 1; }

/* ── 移动文件选择器 ── */
.mp-new-btn {
  flex-shrink: 0; font-size: .8rem; color: var(--primary); cursor: pointer;
  padding: 6px 12px; border: 1px solid var(--primary); border-radius: 16px;
  white-space: nowrap; user-select: none;
}
.mp-new-btn:active { background: var(--primary-light); }
.mp-breadcrumb {
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border);
  flex-shrink: 0; font-size: .8rem; -webkit-overflow-scrolling: touch;
}
.mp-breadcrumb::-webkit-scrollbar { display: none; }
.mp-folder-item { cursor: pointer; }
.mp-folder-item .mp-enter {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 1rem; background: var(--bg);
}
.mp-footer {
  flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.04);
}
.mp-cur {
  flex: 1; min-width: 0; font-size: .8rem; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-go {
  flex-shrink: 0; padding: 10px 22px; border-radius: 20px;
  background: var(--primary); color: #fff; font-size: .88rem; font-weight: 600;
  cursor: pointer; user-select: none;
}
.mp-go:active { transform: scale(.96); }
.mp-go.disabled { background: #d1d5db; color: #fff; pointer-events: none; }

/* ══════════════════════════════════════════════════
   GLOBAL UPLOAD PANEL
   ══════════════════════════════════════════════════ */
.upload-panel {
  position: fixed; top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-130%);
  width: calc(100% - 32px); max-width: 560px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0,0,0,.16);
  z-index: 210; transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 340px; display: flex; flex-direction: column;
}
.upload-panel.show { transform: translateX(-50%) translateY(0); }
.up-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.up-panel-title { font-size: .9rem; font-weight: 600; color: var(--text); }
.up-panel-close {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); font-size: .9rem;
}
.up-panel-close:active { background: var(--bg); }
.up-panel-body { overflow-y: auto; padding: 4px 0 10px; }
.up-panel-item { border-bottom: none; }
.up-panel-item.done .up-fill { background: #52c41a; }
.up-panel-item.failed .up-fill { background: #ff4d4f; }
.up-panel-item.failed .up-pct { color: #ff4d4f; font-weight: 600; }
.up-meta { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-3); margin-top: 4px; }

/* ══════════════════════════════════════════════════
   WALLET / REDPACKET / SWIPE DELETE
   ══════════════════════════════════════════════════ */

/* 钱包入口图标 */
#btn-home-wallet svg { stroke: currentColor; fill: none; }

/* 我的页面钱包横幅 */
.wallet-banner {
  margin: 12px 16px 0; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa; border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.wb-left { display: flex; align-items: center; gap: 12px; }
.wb-ico { font-size: 1.6rem; }
.wb-text { display: flex; flex-direction: column; }
.wb-title { font-size: .78rem; color: #9a3412; }
.wb-balance { font-size: 1.05rem; font-weight: 700; color: #c2410c; display: inline-flex; align-items: center; justify-content: space-between; flex: 1; gap: 8px; }
.wb-bal-text { display: inline-flex; align-items: baseline; gap: 2px; }
.wb-cur { font-size: .85em; margin-right: 1px; }
.wb-bal-num { font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.balance-eye-btn { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(251,146,60,.35); display: inline-flex; align-items: center; justify-content: center; font-size: .92rem; cursor: pointer; transition: all .15s; user-select: none; -webkit-tap-highlight-color: transparent; }
.balance-eye-btn:hover, .balance-eye-btn:active { background: #fff; transform: scale(1.08); border-color: rgba(251,146,60,.7); box-shadow: 0 2px 8px rgba(234,88,12,.12); }
.wb-arrow { font-size: 1.4rem; color: #c2410c; font-weight: 300; }

/* 钱包页 */
.wallet-page { background: #f8fafc; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wallet-card {
  margin: 16px; background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 20px; padding: 28px 24px 22px; color: #fff;
  box-shadow: 0 12px 30px rgba(234,88,12,.22);
}
.wallet-label { font-size: .78rem; opacity: .9; }
.wallet-balance { font-size: 2.4rem; font-weight: 700; margin-top: 8px; letter-spacing: -1px; }
.wallet-actions { display: flex; gap: 12px; margin-top: 22px; }
.wallet-btn {
  flex: 1; text-align: center; padding: 12px 0; border-radius: 24px;
  font-size: .92rem; font-weight: 600; cursor: pointer; transition: transform .15s;
}
.wallet-btn:active { transform: scale(.98); }
.wallet-btn.recharge { background: #fff; color: #ea580c; }
.wallet-btn.withdraw { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.wallet-tip { margin: 0 20px; font-size: .72rem; color: var(--text-3); line-height: 1.6; }
.ov-extra { color: var(--primary); font-size: .84rem; cursor: pointer; }

/* 充值/提现表单页 */
.wallet-form-page { background: #f8fafc; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wf-body { padding: 16px; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 70px; }
.wf-body::-webkit-scrollbar { display: none; }
.wf-balance { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.pay-method-bar { display: flex; gap: 10px; }
.pm-item {
  flex: 1; text-align: center; padding: 10px 0; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; font-size: .84rem; color: var(--text);
  cursor: pointer; transition: all .15s;
}
.pm-item.active { border-color: var(--primary); background: #eff6ff; color: var(--primary); font-weight: 600; }
.qr-card {
  background: #fff; border: 2px solid var(--border); border-radius: 12px;
  padding: 12px; text-align: center; cursor: pointer; margin-bottom: 10px;
}
.qr-card.active { border-color: var(--primary); background: #eff6ff; }
.qr-title { font-size: .78rem; color: var(--text-3); margin-bottom: 8px; }
.qr-card img { max-width: 200px; max-height: 220px; width: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* 充值 / 提现核心大按钮通用样式 */
.btn-wallet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all .2s ease;
  user-select: none;
  outline: none;
}
.btn-wallet-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}
.btn-wallet-action:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-wallet-action .bwa-icon {
  font-size: 1.15rem;
}

/* 兼容 .btn-primary 与 .btn-block */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-block {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: .98rem;
  text-align: center;
}

/* 交易明细 */
.tx-list {
  flex: 1; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; padding-bottom: 80px;
}
.tx-list::-webkit-scrollbar { display: none; }
.tx-item {
  background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tx-main { display: flex; justify-content: space-between; align-items: center; }
.tx-type { font-size: .86rem; color: var(--text); font-weight: 500; }
.tx-amount { font-size: 1rem; font-weight: 700; }
.tx-amount.in { color: #16a34a; }
.tx-amount.out { color: #ef4444; }
.tx-sub { font-size: .72rem; color: var(--text-3); margin-top: 4px; }
.tx-time { font-size: .68rem; color: var(--text-4); margin-top: 4px; }

/* 红包气泡 */
.msg-redpacket-bubble {
  display: flex; align-items: center; gap: 10px;
  width: 220px; max-width: 70vw;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(220,38,38,.18);
  cursor: pointer; position: relative; overflow: hidden;
}
.msg-redpacket-bubble::after {
  content: ''; position: absolute; top: -30px; right: -30px; width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.rp-icon { font-size: 1.6rem; z-index: 1; }
.rp-info { flex: 1; z-index: 1; }
.rp-title { font-size: .84rem; color: #fff; font-weight: 500; }
.rp-state { font-size: .72rem; color: rgba(255,255,255,.85); margin-top: 4px; }
.msg-row.mine .msg-redpacket-bubble { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.msg-row.rp-opened .msg-redpacket-bubble { background: #f3f4f6; cursor: pointer; }
.msg-row.rp-opened .rp-title,
.msg-row.rp-opened .rp-state { color: var(--text-3); }

/* 消息左滑删除 */
.msg-row { position: relative; align-items: center; }
.msg-row .msg-bubble,
.msg-row .msg-img-bubble,
.msg-row .msg-video-bubble,
.msg-row .msg-link-bubble,
.msg-row .msg-file-bubble,
.msg-row .msg-redpacket-bubble { position: relative; z-index: 2; }
.msg-swipe-delete {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: #ff4d4f; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .84rem; z-index: 1; cursor: pointer; border-radius: 8px;
}
.msg-row.mine .msg-swipe-delete { right: auto; left: 0; }
.msg-row.swiped .msg-swipe-delete { z-index: 3; }

/* 会话列表左滑删除（仿 QQ/微信：红色按钮藏在 conv-main 后面，仅滑动时露出） */
.conv-item.swipe-row { position: relative; overflow: hidden; padding: 0; background: #fff; }
.conv-item.swipe-row .conv-main {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: #fff; position: relative; z-index: 2;
  transition: transform .25s ease;
  will-change: transform;
}
.conv-item .conv-delete {
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: #ff4d4f; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .84rem; z-index: 1; cursor: pointer;
  /* 默认隐藏（藏在 conv-main 后面，从视觉上不可见，也不可点击） */
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}
.conv-item.swipe-row.swiped .conv-delete { visibility: visible; opacity: 1; pointer-events: auto; }
.conv-item.swipe-row.swiped .conv-main { box-shadow: -2px 0 6px rgba(0,0,0,.08); }
/* 长按删除：触发后整个 row 略变暗 */
.conv-item.swipe-row.deleting { transition: opacity .25s ease, height .25s ease, margin .25s ease, padding .25s ease; }

/* ══════════════════════════════════════════════════
   GROUP CHAT（群聊）
   ══════════════════════════════════════════════════ */

/* 通用表单块（复用钱包表单风格） */
.wf-group { padding: 16px; }
.wf-label { font-size: .78rem; color: var(--text-3); font-weight: 600; margin: 14px 0 6px; }
.wf-input {
  width: 100%; box-sizing: border-box; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .9rem; color: var(--text); background: #fff; outline: none;
}
.wf-input:focus { border-color: var(--primary); }
.wf-submit {
  width: 100%; margin-top: 20px; padding: 13px 0; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #fff; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.wf-submit:active { opacity: .88; }
.wf-submit:disabled { opacity: .6; }

/* 信息页 · 群聊区 */
.grp-add-btn {
  font-size: .74rem; color: var(--primary); font-weight: 600;
  padding: 3px 10px; background: #eff6ff; border-radius: 12px; cursor: pointer;
}
.grp-add-btn:active { opacity: .7; }
.grp-empty { font-size: .78rem; color: var(--text-4); padding: 10px 16px 14px; }
.conv-avatar.grp-avatar {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: #fff; font-size: 1.05rem;
}
.conv-avatar.grp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.grp-count { font-size: .72rem; color: var(--text-4); font-weight: 400; margin-left: 3px; }

/* 建群 / 邀请 · 成员选择 */
.cg-emoji-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cg-emoji {
  width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; background: #fff;
}
.cg-emoji.active { border-color: var(--primary); background: #eff6ff; }
.cg-member-list { max-height: 44vh; overflow-y: auto; margin-top: 8px; border-radius: 10px; }
.cg-member {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: #fff; border-bottom: 1px solid var(--border); cursor: pointer;
}
.cg-member:last-child { border-bottom: none; }
.cg-member input { display: none; }
.cg-m-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#93c5fd,#3b82f6);
  color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; overflow: hidden;
}
.cg-m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cg-m-name { flex: 1; font-size: .88rem; color: var(--text); }
.cg-m-tick {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border);
  color: transparent; font-size: .7rem; display: flex; align-items: center; justify-content: center;
}
.cg-member input:checked ~ .cg-m-tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.grp-file .cg-m-tick { border: none; color: var(--primary); font-size: .78rem; font-weight: 600; width: auto; }

/* 群消息 */
.grp-sender { font-size: .68rem; color: var(--text-4); margin: 0 0 3px; align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.system { justify-content: center; margin: 8px 0; }
.grp-sys {
  font-size: .7rem; color: var(--text-4); background: rgba(0,0,0,.05);
  padding: 4px 12px; border-radius: 10px; max-width: 80%; text-align: center; line-height: 1.5;
}
.grp-loading { text-align: center; color: var(--text-4); font-size: .8rem; padding: 30px 0; }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.rp-tag {
  position: absolute; bottom: 6px; right: 10px; z-index: 2;
  font-size: .62rem; color: rgba(255,255,255,.75);
}
.msg-row.rp-opened .rp-tag { color: var(--text-4); }

/* 发群红包 */
.grp-rp-preview {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 14px; padding: 22px; text-align: center; color: #fff;
  box-shadow: 0 8px 22px rgba(220,38,38,.2);
}
.grp-rp-money { font-size: 2rem; font-weight: 700; letter-spacing: -1px; }
.grp-rp-tip { font-size: .76rem; opacity: .9; margin-top: 6px; }

/* 红包详情 */
.grp-rp-detail { background: #f8fafc; min-height: 100%; }
.rpd-head { padding: 26px 20px 18px; text-align: center; background: #fff; }
.rpd-avatar {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg,#fca5a5,#dc2626); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden;
}
.rpd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rpd-sender { font-size: .9rem; font-weight: 600; color: var(--text); }
.rpd-blessing { font-size: .78rem; color: var(--text-3); margin-top: 4px; }
.rpd-total { font-size: 1.8rem; font-weight: 700; color: #dc2626; margin-top: 10px; }
.rpd-sub { font-size: .74rem; color: var(--text-4); margin-top: 6px; }
.rpd-list { padding: 10px 16px; }
.rpd-item {
  display: flex; align-items: center; gap: 10px; background: #fff;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.rpd-item:last-child { border-bottom: none; }
.rpd-i-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#93c5fd,#3b82f6);
  color: #fff; font-weight: 600; font-size: .85rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rpd-i-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rpd-i-info { flex: 1; }
.rpd-i-name { font-size: .86rem; color: var(--text); }
.rpd-me { color: var(--primary); font-size: .74rem; }
.rpd-i-time { font-size: .68rem; color: var(--text-4); margin-top: 2px; }
.rpd-best { font-size: .66rem; color: #d97706; background: #fffbeb; padding: 2px 7px; border-radius: 8px; flex-shrink: 0; }
.rpd-i-amt { font-size: .95rem; font-weight: 700; color: var(--text); flex-shrink: 0; }

/* 群设置页 */
.grp-info { background: #f8fafc; min-height: 100%; padding-bottom: 24px; }
.grp-info-head { background: #fff; padding: 22px 20px; text-align: center; }
.grp-info-avatar {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 12px;
  background: linear-gradient(135deg,#60a5fa,#3b82f6); color: #fff;
  font-size: 1.9rem; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.grp-info-avatar img { width: 100%; height: 100%; object-fit: cover; }
.grp-info-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.grp-info-notice {
  font-size: .76rem; color: var(--text-3); margin-top: 8px;
  padding: 8px 12px; background: #f8fafc; border-radius: 8px; line-height: 1.5;
}
.grp-info-sec {
  background: #fff; margin-top: 12px; padding: 14px 16px;
}
.grp-info-label { font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.grp-members { display: flex; flex-wrap: wrap; gap: 12px 8px; }
.grp-m { width: 58px; text-align: center; cursor: pointer; }
.grp-m-av {
  width: 46px; height: 46px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(135deg,#93c5fd,#3b82f6); color: #fff;
  font-size: 1rem; font-weight: 600; position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.grp-m-av img { width: 100%; height: 100%; object-fit: cover; }
.grp-m-badge {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  font-size: .56rem; background: #64748b; color: #fff;
  padding: 1px 5px; border-radius: 6px; white-space: nowrap; font-weight: 500;
}
.grp-m-badge.owner { background: #d97706; }
.grp-m-nm {
  font-size: .68rem; color: var(--text-3); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.grp-m-add .grp-m-av { background: #f1f5f9; color: var(--text-3); font-size: 1.3rem; border: 1.5px dashed var(--border); }
.grp-switch {
  display: flex; align-items: center; gap: 8px; font-size: .84rem;
  color: var(--text); padding: 12px 0 4px; cursor: pointer;
}
.grp-switch input { width: 16px; height: 16px; accent-color: var(--primary); }
.grp-danger-btn {
  width: 100%; padding: 13px 0; border: none; border-radius: 12px;
  background: #fff1f0; color: #e03131; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.grp-danger-btn:active { opacity: .8; }

/* ══════════════════════════════════════════════════
   WALLET FORM 美化增强
   ══════════════════════════════════════════════════ */
.rc-card, .wd-card {
  background: linear-gradient(135deg, var(--primary) 0%, #4a9fff 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin: 4px 0 12px;
  box-shadow: var(--shadow-deep);
}
.rc-title {
  font-size: .8rem; opacity: .92; margin-bottom: 6px;
}
.wd-balance {
  font-size: 2rem; font-weight: 700; letter-spacing: .5px;
}
.rc-input-wrap {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--border-2);
  padding: 8px 0 12px; margin-bottom: 12px;
  transition: border-color .2s ease;
}
.rc-input-wrap:focus-within { border-color: var(--primary); }
.rc-yen {
  font-size: 1.6rem; font-weight: 600; color: var(--text);
}
input.rc-amount {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 2rem; font-weight: 700; color: var(--text);
  width: 100%; padding: 0; margin: 0;
}
input.rc-amount::placeholder { color: var(--text-4); font-weight: 400; }
.rc-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.rc-quick span {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
  padding: 8px 0; font-size: .85rem; color: var(--text-2);
  cursor: pointer; transition: all .15s ease;
}
.rc-quick span.active, .rc-quick span:active {
  background: var(--primary-light); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.sec-label {
  display: block; font-size: .92rem; font-weight: 600; color: var(--text);
  margin: 18px 0 8px;
}
.rc-hint {
  font-size: .75rem; color: var(--text-3);
  margin-top: 6px; line-height: 1.5;
}
.rc-qr-area {
  background: var(--bg-card); border: 1px dashed var(--border-2);
  border-radius: var(--radius); padding: 12px; min-height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.rc-qr-area .qr-card {
  width: 100%; max-width: 260px; text-align: center;
  border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; box-shadow: var(--shadow);
}
.rc-qr-area .qr-card img {
  width: 100%; display: block; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.rc-qr-area .qr-title {
  padding: 10px; font-size: .8rem; color: var(--text-2); background: #fafafa;
}
.pay-method-bar { margin-top: 4px; }
.pm-item .pm-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 2px; border-radius: 5px;
  font-size: .74rem; line-height: 1; overflow: visible;
  color: #fff; margin-right: 6px; font-weight: 700; letter-spacing: .5px;
  flex: 0 0 auto; box-sizing: border-box;
}
.pm-icon.alipay { background: linear-gradient(135deg, #1a8cff, #1677ff); }
.pm-icon.wechat { background: linear-gradient(135deg, #12c869, #07c160); }
.wd-uploader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; border: 1.5px dashed var(--border-2); border-radius: var(--radius);
  padding: 26px 16px; background: var(--bg); color: var(--text-2);
  cursor: pointer; transition: border-color .15s ease;
}
.wd-uploader:active { border-color: var(--primary); background: var(--primary-lighter); }
.wdu-icon { font-size: 1.8rem; }
.wdu-text { font-size: .85rem; text-align: center; }
.wd-qr-preview {
  width: 100%; max-width: 200px; border-radius: var(--radius-sm);
  margin: 10px auto 0; display: block; box-shadow: var(--shadow);
}
.rc-steps {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-lighter); border-radius: var(--radius);
  padding: 12px 10px; margin-top: 18px; font-size: .72rem;
  color: var(--text-2); flex-wrap: wrap; gap: 4px;
}
.rcs-item { display: flex; align-items: center; gap: 4px; }
.rcs-no {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem;
}
.rcs-arrow { color: var(--text-4); }
.btn-block { width: 100%; margin-top: 8px; }

/* 消息长按菜单 */
.msg-menu-mask {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.25); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; animation: mmin .18s forwards;
}
@keyframes mmin { to { opacity: 1; } }
.msg-menu {
  position: absolute;
  background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  padding: 8px 0; min-width: 160px; max-width: 240px;
  font-size: .9rem; overflow: hidden;
  animation: mmup .18s ease forwards;
}
@keyframes mmup { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.msg-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; color: #333; cursor: pointer;
  transition: background .12s ease;
}
.msg-menu-item:active { background: #f0f0f0; }
.msg-menu-item + .msg-menu-item { border-top: 1px solid #f2f2f2; }
.mmi-icon { font-size: 1.05rem; width: 22px; text-align: center; }
.msg-row { user-select: none; -webkit-user-select: none; }

/* 广告弹出层 */
.ad-modal-mask {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity .25s ease;
}
.ad-modal-mask.show { opacity: 1; }
.ad-modal {
  position: relative;
  background: #fff; border-radius: 18px;
  max-width: 380px; width: 100%; max-height: 80vh;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: scale(.92); transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.ad-modal-mask.show .ad-modal { transform: scale(1); }
.ad-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; z-index: 2;
}
.ad-img-wrap { width: 100%; background: #f5f5f5; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.ad-img-wrap img { width: 100%; display: block; max-height: 60vh; object-fit: contain; }
.ad-text-wrap { padding: 32px 24px 24px; }
.ad-text-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.ad-text-body { font-size: .9rem; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.ad-actions {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.ad-reward-tag {
  align-self: center;
  background: linear-gradient(135deg,#ff9500,#ff5e3a); color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600;
  box-shadow: 0 2px 8px rgba(255,94,58,.3);
}
.ad-btn-primary {
  width: 100%; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #4a9fff); color: #fff;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(22,119,255,.35);
}
.ad-btn-primary:active { transform: scale(.98); }

/* ── 聊天网盘多媒体小卡片（免下载直接点开预览） ── */
.msg-audio-card {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid #dbeafe; padding: 10px 12px;
  border-radius: 14px; max-width: 250px; min-width: 190px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.08);
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  user-select: none;
}
.msg-audio-card:active { transform: scale(0.98); }
.msg-row.mine .msg-audio-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border: 1px solid #1e40af; color: #fff;
  box-shadow: 0 3px 10px rgba(37,99,235,0.25);
}
.mac-disc {
  width: 38px; height: 38px; border-radius: 50%;
  background: #1e293b; color: #f8fafc;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  animation: ap-spin 4s linear infinite;
}
.msg-row.mine .mac-disc { background: rgba(255,255,255,0.2); color: #fff; }
.mac-info { flex: 1; min-width: 0; }
.mac-title { font-size: .84rem; font-weight: 600; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-row.mine .mac-title { color: #fff; }
.mac-meta { font-size: .7rem; color: #64748b; margin-top: 2px; }
.msg-row.mine .mac-meta { color: rgba(255,255,255,0.8); }
.mac-btn-play {
  width: 30px; height: 30px; border-radius: 50%;
  background: #2563eb; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0; margin-left: 4px;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.msg-row.mine .mac-btn-play { background: #fff; color: #2563eb; }

/* QQ 风格视频小卡片 */
.msg-video-card {
  position: relative;
  width: 190px;
  height: 125px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.msg-video-card:active {
  transform: scale(0.97);
}
.mvc-bg-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.mvc-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.mvc-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform .15s ease;
}
.msg-video-card:hover .mvc-play-btn {
  transform: scale(1.1);
}
.mvc-top-title {
  position: relative;
  z-index: 2;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.mvc-bottom-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mvc-badge-size {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  font-size: .68rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
}
.mvc-badge-tip {
  color: rgba(255,255,255,0.75);
  font-size: .68rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* QQ 风格图片气泡：纯图片缩略图，无多余边框与文字 */
.msg-image-card {
  position: relative;
  max-width: 200px;
  max-height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  background: #f1f5f9;
  transition: transform .15s ease;
  user-select: none;
  -webkit-user-select: none;
}
.msg-image-card:active {
  transform: scale(0.97);
}
.msg-image-card img {
  display: block;
  max-width: 200px;
  max-height: 220px;
  min-width: 80px;
  min-height: 80px;
  object-fit: cover;
  border-radius: 12px;
}
.mic-size-tag {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 8px;
}


/* ── 聊天文件选择器里的真实缩略图 ── */
.cfp-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; background: #f1f5f9;
}
/* 缩略图加载失败时 onerror 会把它隐藏，自动露出底层的类型图标 */
.cfp-ico > .cfp-emoji { position: relative; z-index: 0; }
.cfp-ico > .cfp-thumb { z-index: 1; }

/* 设置项副标题说明 */
.settings-item .si-sub {
  font-size: .68rem; font-weight: 400; color: var(--text-3);
  margin-top: 2px; line-height: 1.4;
}

/* ── 磁力页内播放器 ── */
.magnet-player-overlay {
  position: fixed; inset: 0; z-index: 100001;
  background: #0f172a; display: flex; flex-direction: column;
  animation: mp-fade-in .25s ease;
}
@keyframes mp-fade-in { from { opacity: 0; } to { opacity: 1; } }
.mp-header {
  flex: 0 0 auto; height: 52px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(15,23,42,.95); border-bottom: 1px solid rgba(255,255,255,.08);
}
.mp-back { flex: 0 0 auto; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; border-radius: 50%; cursor: pointer; }
.mp-back:active { background: rgba(255,255,255,.1); }
.mp-title { flex: 1 1 auto; color: #fff; font-size: .9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.mp-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: .95rem; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; cursor: pointer; }
.mp-btn:active { background: rgba(255,255,255,.2); }
.mp-body { flex: 1 1 auto; display: flex; flex-direction: column; overflow-y: auto; padding: 16px; gap: 14px; }
.mp-video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #020617; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mp-video-wrap video { width: 100%; height: 100%; object-fit: contain; }
.mp-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(2,6,23,.72); transition: opacity .3s; }
.mp-spinner { width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.15); border-top-color: #38bdf8; border-radius: 50%; animation: mp-spin 1s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-status { color: #fff; font-size: .95rem; font-weight: 500; }
.mp-sub { color: rgba(255,255,255,.65); font-size: .78rem; max-width: 80%; text-align: center; line-height: 1.4; }
.mp-info { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mp-stat { color: rgba(255,255,255,.7); font-size: .78rem; }
.mp-stat b { color: #38bdf8; font-weight: 600; margin-left: 4px; }
.mp-tip { color: rgba(255,255,255,.55); font-size: .74rem; line-height: 1.5; text-align: center; padding: 0 8px; }

/* ══ Alist 网盘挂载 / 浏览 ══ */
.alist-mount-list { margin: 4px 0 8px; }
.alist-mount-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.alist-mount-row:active { background: #f8fafc; }
.am-name { font-size: .9rem; font-weight: 600; }
.am-server { font-size: .74rem; color: #94a3b8; margin-top: 2px; word-break: break-all; }
.am-ops { display: flex; gap: 12px; flex-shrink: 0; }
.am-op { font-size: .8rem; color: #1677ff; cursor: pointer; }
.am-op.danger { color: #ef4444; }
.ov-field { margin-bottom: 12px; }
.ov-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.ov-field-row { display: flex; align-items: center; justify-content: space-between; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; transition: .2s; border-radius: 24px; }
.slider:before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; transition: .2s; border-radius: 50%; }
.switch input:checked + .slider { background: #1677ff; }
.switch input:checked + .slider:before { transform: translateX(18px); }
.alist-mount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 16px 16px; }
.alist-mount-card { background: #fff; border: 1px solid #eef2f7; border-radius: 14px; padding: 16px 12px; text-align: center; box-shadow: 0 2px 8px rgba(20,40,80,.04); }
.alist-mount-card:active { background: #f8fafc; }
.amc-ico { font-size: 30px; }
.amc-name { font-size: .86rem; font-weight: 600; margin-top: 6px; word-break: break-all; }
.amc-sub { font-size: .72rem; color: #94a3b8; margin-top: 2px; }
