/* ============================================
   星澜云盘 v2 - 百度网盘移动端 UI 完全复刻
   ============================================ */

/* ====== CSS 变量 ====== */
:root {
  --primary: #2D81FF;
  --primary-light: #E8F2FF;
  --text-black: #000000;
  --text-secondary: #666666;
  --text-gray: #999999;
  --text-placeholder: #C0C0C0;
  --bg-white: #FFFFFF;
  --bg-page: #F5F5F5;
  --bg-search: #F5F5F5;
  --bg-card-light: #F0F0F0;
  --bg-tap: #E8E8E8;
  --border: #EEEEEE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  --status-bar-height: 20px;
  --top-nav-height: 48px;
  --bottom-nav-height: 55px;
}

/* ====== Reset ====== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-black);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}
body {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
input, button, textarea { font-family: var(--font); outline: none; border: none; background: none; }

/* ====== 页面容器 ====== */
#app { min-height: 100vh; background: var(--bg-white); }
.page { display: none; min-height: 100vh; background: var(--bg-white); }
.page.active { display: block; }

/* ====== 状态栏占位 ====== */
.status-bar { height: var(--status-bar-height); background: transparent; }

/* ====== 顶部主导航 ====== */
.top-header {
  position: relative; z-index: 100;
  height: var(--top-nav-height);
  background: var(--bg-white);
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.top-header .header-left { width: 60px; flex-shrink: 0; }
.top-header .header-title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 600; color: var(--text-black);
}
.top-header .header-title.hidden { visibility: hidden; }
.top-header .header-right {
  width: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
}
.top-header .header-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; transition: background 0.15s;
}
.top-header .header-btn:active { background: var(--bg-tap); transform: scale(0.92); }
.top-header .header-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: var(--text-gray); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ====== 子页面顶部（带返回） ====== */
.sub-header {
  position: relative; z-index: 100;
  height: var(--top-nav-height);
  background: var(--bg-white);
  display: flex; align-items: center;
  padding: 0 4px 0 8px;
  border-bottom: 1px solid var(--border);
}
.sub-header .back-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; margin-left: -4px; flex-shrink: 0;
}
.sub-header .back-btn:active { background: var(--bg-tap); transform: scale(0.92); }
.sub-header .back-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: var(--text-black); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sub-header .sub-title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 600; color: var(--text-black);
}
.sub-header .sub-right { width: 48px; flex-shrink: 0; text-align: center; }

/* ====== 底部Tab导航 ====== */
#bottomNav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 0;
  transition: transform 0.15s;
}
.nav-item:active { transform: scale(0.92); }
.nav-item .nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.nav-item .nav-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--text-gray); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item .nav-label { font-size: 11px; color: var(--text-gray); line-height: 1; }
.nav-item.active .nav-icon svg { stroke: var(--primary); }
.nav-item.active .nav-label { color: var(--primary); }

/* ====== 搜索栏组件 ====== */
.search-bar-wrap { padding: 10px 16px; }
.search-bar-field {
  display: flex; align-items: center;
  height: 36px; background: var(--bg-search); border-radius: 18px;
  padding: 0 16px; gap: 8px; cursor: pointer;
}
.search-bar-field svg { width: 16px; height: 16px; fill: none; stroke: var(--text-gray); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-bar-field .search-hint { font-size: 14px; color: var(--text-gray); }
.search-bar-field:active { background: #EBEBEB; transform: scale(0.98); }

/* ====== 搜索覆盖层 ====== */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--bg-white); display: none; animation: fadeIn 0.15s;
}
.search-overlay.active { display: block; }
.search-overlay .search-overlay-header {
  display: flex; align-items: center;
  height: var(--top-nav-height); padding: 0 16px;
  border-bottom: 1px solid var(--border); gap: 12px;
}
.search-overlay .search-overlay-field {
  flex: 1; height: 36px; background: var(--bg-search); border-radius: 18px;
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.search-overlay .search-overlay-field svg { width: 16px; height: 16px; fill: none; stroke: var(--text-gray); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.search-overlay .search-overlay-field input { flex: 1; background: transparent; border: none; font-size: 14px; color: var(--text-black); height: 100%; }
.search-overlay .search-overlay-field input::placeholder { color: var(--text-gray); }
.search-overlay .search-cancel { font-size: 14px; color: var(--text-secondary); cursor: pointer; flex-shrink: 0; padding: 8px 0; }
.search-overlay .search-overlay-body { padding: 20px 16px; }
.search-overlay .search-overlay-body .search-history-title { font-size: 12px; color: var(--text-gray); margin-bottom: 12px; }
.search-overlay .search-overlay-body .search-history-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-overlay .search-overlay-body .search-history-tags .tag { padding: 6px 14px; background: var(--bg-search); border-radius: 18px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }

/* ====== 横向滑动区域 ====== */
.h-scroll { overflow-x: auto; overflow-y: hidden; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 16px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .scroll-inner { display: inline-flex; gap: 12px; }

/* ====== 最近文件卡片 ====== */
.recent-card {
  width: 120px; flex-shrink: 0;
  background: var(--bg-card-light); border-radius: 12px;
  padding: 16px 12px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.recent-card:active { transform: scale(0.96); background: #E8E8E8; }
.recent-card .rc-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.recent-card .rc-name { font-size: 12px; color: var(--text-black); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ====== 宫格入口 6宫格 ====== */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.grid-6 .grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 12px 8px; border-radius: 12px; transition: background 0.15s;
}
.grid-6 .grid-item:active { background: var(--bg-tap); transform: scale(0.95); }
.grid-6 .grid-item .gi-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; border-radius: 12px; }
.grid-6 .grid-item .gi-label { font-size: 12px; color: var(--text-black); text-align: center; }
.gi-img { background: #E8F2FF; }
.gi-video { background: #F3E8FF; }
.gi-doc { background: #E8FFE8; }
.gi-music { background: #FFF3E0; }
.gi-zip { background: #FFEBEE; }
.gi-app { background: #E0F7FA; }

/* ====== 文件列表行 ====== */
.file-row {
  display: flex; align-items: center; height: 56px; padding: 0 16px;
  cursor: pointer; border-bottom: 0.5px solid var(--border);
}
.file-row:active { background: var(--bg-tap); }
.file-row .fr-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 8px; margin-right: 12px; }
.file-row .fr-info { flex: 1; min-width: 0; }
.file-row .fr-info .fr-name { font-size: 14px; color: var(--text-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.file-row .fr-info .fr-meta { font-size: 12px; color: var(--text-gray); margin-top: 2px; }
.file-row .fr-info .fr-meta .fr-time { margin-left: 8px; }
.file-row .fr-more { width: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-gray); font-size: 18px; cursor: pointer; }
.fi-folder { background: #FFF3E0; }
.fi-img { background: #E8F2FF; }
.fi-video { background: #F3E8FF; }
.fi-doc { background: #E8FFE8; }
.fi-music { background: #FFF3E0; }
.fi-zip { background: #FFEBEE; }
.fi-other { background: #F0F0F0; }

/* ====== 路径导航 ====== */
.path-bar { height: 32px; display: flex; align-items: center; padding: 0 8px; background: var(--bg-white); font-size: 12px; color: var(--text-gray); }
.path-bar .path-back { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.path-bar .path-back:active { background: var(--bg-tap); }
.path-bar .path-back svg { width: 18px; height: 18px; fill: none; stroke: var(--text-gray); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.path-bar .path-text { margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-bar .path-text .path-sep { margin: 0 4px; color: var(--text-placeholder); }

/* ====== 分类标签栏 ====== */
.tag-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.tag-tabs .tag-item { flex: 1; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-gray); cursor: pointer; position: relative; transition: color 0.15s; }
.tag-tabs .tag-item.active { color: var(--primary); font-weight: 500; }
.tag-tabs .tag-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }

/* ====== 传输页面 ====== */
.transfer-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-white); }
.transfer-tabs .tt-item { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-gray); cursor: pointer; position: relative; }
.transfer-tabs .tt-item.active { color: var(--primary); font-weight: 500; }
.transfer-tabs .tt-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: var(--primary); border-radius: 2px; }
.transfer-panel { display: none; }
.transfer-panel.active { display: block; }

/* 传输分组 */
.transfer-group { padding: 0 16px; }
.transfer-group .tg-title { font-size: 12px; color: var(--text-gray); padding: 12px 0 8px; }
.transfer-group .tg-item { display: flex; align-items: center; height: 56px; border-bottom: 0.5px solid var(--border); cursor: pointer; }
.transfer-group .tg-item:last-child { border-bottom: none; }
.transfer-group .tg-item:active { background: var(--bg-tap); }
.transfer-group .tg-item .tgi-icon { width: 36px; height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; border-radius: 8px; margin-right: 12px; }
.transfer-group .tg-item .tgi-info { flex: 1; min-width: 0; }
.transfer-group .tg-item .tgi-info .tgi-name { font-size: 14px; color: var(--text-black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.transfer-group .tg-item .tgi-info .tgi-progress { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.transfer-group .tg-item .tgi-info .tgi-progress .prog-bar { flex: 1; height: 4px; background: #E8E8E8; border-radius: 2px; overflow: hidden; }
.transfer-group .tg-item .tgi-info .tgi-progress .prog-bar .prog-fill { height: 100%; background: var(--primary); border-radius: 2px; }
.transfer-group .tg-item .tgi-info .tgi-progress .prog-text { font-size: 12px; color: var(--text-gray); white-space: nowrap; }
.transfer-group .tg-item .tgi-status { font-size: 12px; color: var(--text-gray); flex-shrink: 0; margin-right: 8px; }
.transfer-group .tg-item .tgi-action { width: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-gray); cursor: pointer; }

/* ====== 我的页面 ====== */
.mine-profile-card {
  background: linear-gradient(135deg, #E8F2FF, #D0E6FF);
  margin: 12px 16px 0; border-radius: 16px;
  padding: 20px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.mine-profile-card:active { transform: scale(0.98); }
.mine-profile-card .mpc-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #5B9EFF, #2D81FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; flex-shrink: 0; font-weight: 600;
}
.mine-profile-card .mpc-info { flex: 1; min-width: 0; }
.mine-profile-card .mpc-info .mpc-name { font-size: 16px; font-weight: 600; color: var(--text-black); display: flex; align-items: center; gap: 6px; }
.mine-profile-card .mpc-info .mpc-name .vip-badge { font-size: 10px; color: #fff; background: linear-gradient(135deg, #FFD700, #FFA500); border-radius: 4px; padding: 1px 6px; font-weight: 500; line-height: 1.6; }
.mine-profile-card .mpc-info .mpc-desc { font-size: 12px; color: var(--text-gray); margin-top: 2px; }
.mine-profile-card .mpc-arrow { width: 20px; flex-shrink: 0; color: var(--text-gray); font-size: 16px; }

/* 容量卡片 */
.storage-card {
  margin: 12px 16px; background: var(--bg-white); border-radius: 16px;
  padding: 20px; box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 16px;
}
.storage-card .sc-ring { width: 64px; height: 64px; flex-shrink: 0; position: relative; }
.storage-card .sc-ring .ring-svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.storage-card .sc-ring .ring-svg circle { fill: none; stroke-width: 5; }
.storage-card .sc-ring .ring-svg .ring-bg { stroke: #EEEEEE; }
.storage-card .sc-ring .ring-svg .ring-fill { stroke: var(--primary); stroke-dasharray: 170; stroke-dashoffset: 42; stroke-linecap: round; }
.storage-card .sc-ring .ring-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; color: var(--primary); }
.storage-card .sc-info { flex: 1; min-width: 0; }
.storage-card .sc-info .sc-title { font-size: 12px; color: var(--text-gray); margin-bottom: 2px; }
.storage-card .sc-info .sc-used { font-size: 16px; font-weight: 600; color: var(--text-black); }
.storage-card .sc-info .sc-total { font-size: 12px; color: var(--text-gray); margin-top: 2px; }

/* 会员快捷入口 */
.vip-card { margin: 0 16px; background: linear-gradient(135deg, #FFF8E1, #FFF3CD); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: var(--shadow-sm); }
.vip-card:active { transform: scale(0.98); }
.vip-card .vip-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.vip-card .vip-text { flex: 1; }
.vip-card .vip-text .vip-title { font-size: 14px; font-weight: 600; color: #8B6914; }
.vip-card .vip-text .vip-desc { font-size: 12px; color: #A68C40; margin-top: 2px; }
.vip-card .vip-arrow { color: #A68C40; font-size: 16px; }

/* 功能菜单列表 */
.menu-group { margin: 0 16px; padding-top: 12px; }
.menu-group .menu-group-title { font-size: 12px; color: var(--text-gray); padding: 0 4px 8px; }
.menu-group .menu-items { background: var(--bg-white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.menu-group .menu-items .menu-row { display: flex; align-items: center; height: 50px; padding: 0 16px; cursor: pointer; border-bottom: 0.5px solid var(--border); }
.menu-group .menu-items .menu-row:last-child { border-bottom: none; }
.menu-group .menu-items .menu-row:active { background: var(--bg-tap); }
.menu-group .menu-items .menu-row .mr-icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.menu-group .menu-items .menu-row .mr-label { flex: 1; font-size: 14px; color: var(--text-black); }
.menu-group .menu-items .menu-row .mr-arrow { color: var(--text-gray); font-size: 14px; flex-shrink: 0; }

/* ====== 空状态 ====== */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 32px; text-align: center; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state .empty-title { font-size: 14px; color: var(--text-black); margin-bottom: 6px; font-weight: 500; }
.empty-state .empty-desc { font-size: 12px; color: var(--text-gray); line-height: 1.5; max-width: 240px; }

/* ====== 下拉刷新骨架 ====== */
.pull-refresh { height: 36px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-gray); gap: 6px; }
.pull-refresh .pr-spinner { width: 14px; height: 14px; border: 2px solid #E0E0E0; border-top-color: var(--text-gray); border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ====== Toast ====== */
#toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 999; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#toast .toast-msg { background: rgba(0,0,0,0.78); color: #fff; padding: 10px 20px; border-radius: 12px; font-size: 14px; animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); max-width: 280px; text-align: center; backdrop-filter: blur(8px); }
#toast .toast-msg.toast-success { background: rgba(52,199,89,0.9); }
#toast .toast-msg.toast-error { background: rgba(255,59,48,0.9); }

/* ====== 加载动画 ====== */
#loadingOverlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.15s; }
#loadingOverlay.hidden { display: none; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ====== 弹窗 ====== */
.dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 300; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.15s; }
.dialog-box { background: var(--bg-white); border-radius: 12px; width: 300px; max-width: 85vw; box-shadow: var(--shadow-lg); animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); overflow: hidden; }
.dialog-box .dialog-title { font-size: 16px; font-weight: 600; text-align: center; padding: 20px 20px 8px; color: var(--text-black); }
.dialog-box .dialog-body { padding: 8px 20px 16px; text-align: center; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.dialog-box .dialog-btns { display: flex; border-top: 0.5px solid var(--border); }
.dialog-box .dialog-btns .dialog-btn { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; }
.dialog-box .dialog-btns .dialog-btn:active { background: var(--bg-tap); }
.dialog-box .dialog-btns .dialog-btn.cancel { color: var(--text-secondary); }
.dialog-box .dialog-btns .dialog-btn.confirm { color: var(--primary); font-weight: 600; }
.dialog-box .dialog-btns .dialog-btn + .dialog-btn { border-left: 0.5px solid var(--border); }

/* ====== 登录/注册页面 ====== */
.login-page { min-height: 100vh; background: var(--bg-white); display: flex; flex-direction: column; padding: 0 32px; }
.login-page .login-logo { padding: 80px 0 40px; text-align: center; }
.login-page .login-logo .logo-img { font-size: 48px; margin-bottom: 12px; }
.login-page .login-logo .logo-brand { font-size: 24px; font-weight: 700; color: var(--text-black); }
.login-page .login-logo .logo-sub { font-size: 12px; color: var(--text-gray); margin-top: 4px; }
.login-page .input-group { margin-bottom: 16px; }
.login-page .input-field { width: 100%; height: 44px; background: var(--bg-search); border-radius: 8px; padding: 0 14px; font-size: 14px; color: var(--text-black); border: 1px solid transparent; transition: all 0.15s; }
.login-page .input-field:focus { border-color: var(--primary); background: var(--bg-white); }
.login-page .input-field::placeholder { color: var(--text-placeholder); }
.login-page .pwd-wrap { position: relative; }
.login-page .pwd-wrap .input-field { padding-right: 44px; }
.login-page .pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; cursor: pointer; opacity: 0.4; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.login-page .login-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 24px; }
.login-page .login-options .remember-me { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.login-page .login-options .remember-me .check-box { width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 3px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.login-page .login-options .remember-me .check-box.checked { background: var(--primary); border-color: var(--primary); }
.login-page .login-options .remember-me .check-box.checked::after { content: ''; width: 6px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }
.login-page .login-options .forgot-link { font-size: 12px; color: var(--text-gray); cursor: pointer; }
.login-page .btn { width: 100%; height: 44px; border-radius: 22px; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
.login-page .btn:active { transform: scale(0.97); }
.login-page .btn-primary { background: var(--primary); color: #fff; }
.login-page .login-bottom { padding: 24px 0 40px; text-align: center; }
.login-page .login-bottom .switch-link { font-size: 14px; color: var(--text-secondary); }
.login-page .login-bottom .switch-link a { color: var(--primary); font-weight: 500; cursor: pointer; }

/* ====== 子页面通用内容 ====== */
.subpage-content { padding: 20px 16px; text-align: center; color: var(--text-gray); font-size: 14px; }
.page-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; color: var(--text-gray); }

/* ====== 搜索页 ====== */
.search-page { min-height: 100vh; background: var(--bg-white); }
.search-page .search-header { display: flex; align-items: center; height: var(--top-nav-height); padding: 0 16px; border-bottom: 1px solid var(--border); gap: 12px; }
.search-page .search-header .search-input-wrap { flex: 1; height: 36px; background: var(--bg-search); border-radius: 18px; display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.search-page .search-header .search-input-wrap svg { width: 16px; height: 16px; fill: none; stroke: var(--text-gray); stroke-width: 2; }
.search-page .search-header .search-input-wrap input { flex: 1; background: transparent; border: none; font-size: 14px; color: var(--text-black); height: 100%; }
.search-page .search-header .search-cancel { font-size: 14px; color: var(--text-secondary); cursor: pointer; flex-shrink: 0; }
.search-page .search-hot { padding: 20px 16px; }
.search-page .search-hot .hot-title { font-size: 14px; font-weight: 500; color: var(--text-black); margin-bottom: 12px; }
.search-page .search-hot .hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-page .search-hot .hot-tags .tag { padding: 6px 14px; background: var(--bg-search); border-radius: 18px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.search-page .search-hot .hot-tags .tag:active { background: var(--bg-tap); }

/* ====== 段落标题行（在页面内，非顶部导航） ====== */
.section-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; }
.section-row .sr-title { font-size: 14px; font-weight: 600; color: var(--text-black); }
.section-row .sr-more { font-size: 12px; color: var(--text-gray); cursor: pointer; }
.section-row .sr-more:active { color: var(--primary); }

/* ====== 响应式大屏适配 ====== */
@media (min-width: 768px) {
  body { max-width: 430px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,0.08); min-height: 100vh; border-left: 0.5px solid var(--border); border-right: 0.5px solid var(--border); }
  #bottomNav { max-width: 430px; left: 50%; transform: translateX(-50%); }
  .search-overlay { max-width: 430px; left: 50%; transform: translateX(-50%); }
}

/* ====== 安全间距适配 ====== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #bottomNav { padding-bottom: env(safe-area-inset-bottom); }
}

/* ====== 动画关键帧 ====== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFab { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDownSearch { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   星澜云盘 v2 - Disk 首页专属样式
   Phase 2: 极致 UI + 交互复刻
   ============================================ */

/* ====== Disk 页面容器 ====== */
.disk-page { min-height: 100vh; background: var(--bg-white); }

/* ====== Disk 顶部导航栏 ====== */
.disk-top-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 48px;
  background: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
  display: flex; align-items: center;
  padding: 0 16px;
}
.disk-top-header .dth-left { width: 60px; flex-shrink: 0; }
.disk-top-header .dth-title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 600; color: #000000;
}
.disk-top-header .dth-right {
  width: 96px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.disk-top-header .dth-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}
.disk-top-header .dth-btn:active { background: #E8E8E8; transform: scale(0.92); }
.disk-top-header .dth-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: #666666; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ====== Disk 搜索栏 ====== */
.disk-search-wrap {
  padding: 12px 16px 0;
  position: relative; z-index: 50;
}
.disk-search-wrap .disk-search-bar {
  display: flex; align-items: center;
  height: 36px; background: #F5F5F5; border-radius: 18px;
  padding: 0 14px; gap: 8px; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.disk-search-wrap .disk-search-bar:active { transform: scale(0.98); }
.disk-search-wrap .disk-search-bar .ds-icon svg {
  width: 16px; height: 16px;
  fill: none; stroke: #999999; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  display: block;
}
.disk-search-wrap .disk-search-bar .ds-hint {
  font-size: 12px; color: #C0C0C0;
}

/* ====== 横向滑动分类标签栏 ====== */
.disk-tag-bar-wrap {
  padding: 0 16px;
  position: relative; z-index: 50;
}
.disk-tag-bar {
  display: flex; align-items: center;
  height: 36px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.disk-tag-bar::-webkit-scrollbar { display: none; }
.disk-tag-bar .dt-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  height: 36px;
  font-size: 13px; color: #999999;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.disk-tag-bar .dt-tag:active { opacity: 0.7; }
.disk-tag-bar .dt-tag.active {
  color: #2D81FF;
  font-weight: 500;
}
.disk-tag-bar .dt-tag .dt-tag-indicator {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
  border-radius: 1px;
}
.disk-tag-bar .dt-tag.active .dt-tag-indicator {
  background: #2D81FF;
}

/* ====== 空白页面状态（全部标签） ====== */
.disk-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 60px;
}
.disk-empty-state .des-icon { font-size: 72px; margin-bottom: 16px; }
.disk-empty-state .des-title { font-size: 16px; color: #333333; margin-bottom: 8px; }
.disk-empty-state .des-subtitle { font-size: 12px; color: #999999; margin-bottom: 24px; }
.disk-empty-state .des-btn {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 36px;
  background: #2D81FF; border-radius: 20px;
  color: #FFFFFF; font-size: 14px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
  border: none; outline: none;
}
.disk-empty-state .des-btn:active { transform: scale(0.95); opacity: 0.85; }

/* ====== 板块通用 ====== */
.disk-section { margin-top: 20px; }
.disk-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}
.disk-section-header .dsh-title { font-size: 16px; color: #000000; font-weight: 600; }
.disk-section-header .dsh-more { font-size: 12px; color: #999999; cursor: pointer; }
.disk-section-header .dsh-more:active { color: #2D81FF; }

/* ====== 最近文件横向卡片 ====== */
.disk-recent-scroll {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}
.disk-recent-scroll::-webkit-scrollbar { display: none; }
.disk-recent-scroll .disk-recent-inner {
  display: inline-flex; gap: 10px;
}
.disk-recent-scroll .dr-card {
  width: 110px; flex-shrink: 0;
  background: #F8F8F8; border-radius: 10px;
  padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}
.disk-recent-scroll .dr-card:active { transform: scale(0.95); background: #EEEEEE; }
.disk-recent-scroll .dr-card .drc-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.disk-recent-scroll .dr-card .drc-name {
  font-size: 12px; color: #000000;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.disk-recent-scroll .dr-card .drc-size {
  font-size: 11px; color: #999999;
}

/* ====== 常用文件列表 ====== */
.disk-frequent-list { padding: 0 16px; }
.disk-frequent-list .df-row {
  display: flex; align-items: center;
  height: 52px;
  border-bottom: 0.5px solid #EEEEEE;
  cursor: pointer;
  transition: background 0.15s;
}
.disk-frequent-list .df-row:last-child { border-bottom: none; }
.disk-frequent-list .df-row:active { background: #F5F5F5; }
.disk-frequent-list .df-row .df-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border-radius: 6px;
  margin-right: 12px;
}
.disk-frequent-list .df-row .df-icon.dfi-doc { background: #E8FFE8; }
.disk-frequent-list .df-row .df-icon.dfi-img { background: #E8F2FF; }
.disk-frequent-list .df-row .df-icon.dfi-video { background: #F3E8FF; }
.disk-frequent-list .df-row .df-icon.dfi-audio { background: #FFF3E0; }
.disk-frequent-list .df-row .df-icon.dfi-zip { background: #FFEBEE; }
.disk-frequent-list .df-row .df-icon.dfi-other { background: #F0F0F0; }
.disk-frequent-list .df-row .df-icon.dfi-folder { background: #FFF8E1; }
.disk-frequent-list .df-row .df-info { flex: 1; min-width: 0; }
.disk-frequent-list .df-row .df-info .df-name {
  font-size: 14px; color: #000000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.disk-frequent-list .df-row .df-info .df-meta {
  font-size: 11px; color: #999999;
  margin-top: 2px;
}
.disk-frequent-list .df-row .df-time {
  font-size: 11px; color: #999999;
  flex-shrink: 0; margin-left: 8px;
}

/* ====== 文件列表（标签切换时显示） ====== */
.disk-file-list { padding: 0 16px; }
.disk-file-list .dfl-row {
  display: flex; align-items: center;
  height: 52px;
  padding: 0;
  border-bottom: 0.5px solid #EEEEEE;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}
.disk-file-list .dfl-row:active { background: #F5F5F5; }
.disk-file-list .dfl-row.selected { background: #F0F7FF; }
.disk-file-list .dfl-row .dfl-check {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid #D0D0D0;
  display: none; /* hidden until selection mode */
  align-items: center; justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.disk-file-list .dfl-row.selected .dfl-check,
.disk-file-list.selection-mode .dfl-row .dfl-check { display: flex; }
.disk-file-list .dfl-row .dfl-check.checked {
  background: #2D81FF;
  border-color: #2D81FF;
}
.disk-file-list .dfl-row .dfl-check.checked::after {
  content: '';
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.disk-file-list .dfl-row .dfl-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border-radius: 8px;
  margin-right: 12px;
}
.disk-file-list .dfl-row .dfl-icon.df-fl-img { background: #E8F2FF; }
.disk-file-list .dfl-row .dfl-icon.df-fl-video { background: #F3E8FF; }
.disk-file-list .dfl-row .dfl-icon.df-fl-doc { background: #E8FFE8; }
.disk-file-list .dfl-row .dfl-icon.df-fl-audio { background: #FFF3E0; }
.disk-file-list .dfl-row .dfl-icon.df-fl-zip { background: #FFEBEE; }
.disk-file-list .dfl-row .dfl-icon.df-fl-other { background: #F0F0F0; }
.disk-file-list .dfl-row .dfl-info { flex: 1; min-width: 0; }
.disk-file-list .dfl-row .dfl-info .dfl-name {
  font-size: 14px; color: #000000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.disk-file-list .dfl-row .dfl-info .dfl-size {
  font-size: 11px; color: #999999;
  margin-top: 2px;
}
.disk-file-list .dfl-row .dfl-size-right {
  font-size: 11px; color: #999999;
  flex-shrink: 0;
  margin-left: 8px;
  text-align: right;
}

/* ====== 选中操作栏（顶部悬浮） ====== */
.disk-selection-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210;
  height: 48px;
  background: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
  display: flex; align-items: center;
  padding: 0 16px;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}
.disk-selection-bar.active { transform: translateY(0); }
.disk-selection-bar .dsb-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; margin-right: 12px;
  flex-shrink: 0;
}
.disk-selection-bar .dsb-back:active { background: #E8E8E8; transform: scale(0.92); }
.disk-selection-bar .dsb-back svg {
  width: 22px; height: 22px;
  fill: none; stroke: #000000; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.disk-selection-bar .dsb-count {
  flex: 1; font-size: 16px; font-weight: 500; color: #000000;
}
.disk-selection-bar .dsb-select-all {
  font-size: 14px; color: #2D81FF; cursor: pointer;
  flex-shrink: 0;
}
.disk-selection-bar .dsb-select-all:active { opacity: 0.7; }

/* ====== FAB 悬浮按钮 ====== */
.disk-fab {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 180;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #2D81FF;
  box-shadow: 0 4px 12px rgba(45,129,255,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none; outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
}
.disk-fab:active { transform: scale(0.9); }
.disk-fab svg {
  width: 24px; height: 24px;
  fill: none; stroke: #FFFFFF; stroke-width: 2.5;
  stroke-linecap: round;
}

/* ====== FAB 弹出菜单遮罩 ====== */
.disk-fab-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 190;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.disk-fab-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ====== FAB 弹出菜单面板 ====== */
.disk-fab-menu {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 195;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
}
.disk-fab-menu.active { transform: translateY(0); }
.disk-fab-menu .dfm-item {
  display: flex; align-items: center;
  height: 48px;
  padding: 0 20px;
  cursor: pointer;
  border-bottom: 0.5px solid #EEEEEE;
  transition: background 0.15s;
}
.disk-fab-menu .dfm-item:last-child { border-bottom: none; }
.disk-fab-menu .dfm-item:active { background: #F5F5F5; }
.disk-fab-menu .dfm-item .dfm-icon { font-size: 22px; margin-right: 12px; flex-shrink: 0; }
.disk-fab-menu .dfm-item .dfm-label { font-size: 14px; color: #000000; }

/* ====== 下拉刷新指示器 ====== */
.disk-pull-indicator {
  height: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #999999;
  gap: 6px;
  transition: height 0.3s ease-out;
}
.disk-pull-indicator .dpi-arrow {
  display: inline-block;
  transition: transform 0.3s ease-out;
  font-size: 14px;
}
.disk-pull-indicator .dpi-arrow.spinning { animation: spin 0.8s linear infinite; }
.disk-pull-indicator.ready .dpi-arrow { transform: rotate(180deg); }
.disk-pull-indicator.loading .dpi-arrow { animation: spin 0.8s linear infinite; }

/* ====== 排序下拉菜单 ====== */
.disk-sort-menu {
  position: fixed; z-index: 185;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 160px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.disk-sort-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.disk-sort-menu .dsm-item {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
  padding: 0 16px;
  font-size: 13px; color: #333333;
  cursor: pointer;
  transition: background 0.15s;
}
.disk-sort-menu .dsm-item:active { background: #F5F5F5; }
.disk-sort-menu .dsm-item .dsm-check {
  color: #2D81FF;
  font-weight: 600;
  display: none;
}
.disk-sort-menu .dsm-item.active .dsm-check { display: inline; }
.disk-sort-menu .dsm-item .dsm-order {
  font-size: 11px; color: #999999;
  margin-left: 6px;
}

/* ====== 视图切换动画 ====== */
.disk-file-list.grid-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 16px;
}
.disk-file-list.grid-view .dfl-row {
  flex-direction: column;
  height: auto;
  border-bottom: none;
  padding: 12px 8px;
  background: #F8F8F8;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.disk-file-list.grid-view .dfl-row:active { transform: scale(0.96); }
.disk-file-list.grid-view .dfl-row.selected { background: #E8F4FF; }
.disk-file-list.grid-view .dfl-row .dfl-check {
  position: absolute; top: 4px; left: 4px;
  margin-right: 0;
}
.disk-file-list.grid-view .dfl-row .dfl-icon { margin-right: 0; margin-bottom: 6px; }
.disk-file-list.grid-view .dfl-row .dfl-info { text-align: center; }
.disk-file-list.grid-view .dfl-row .dfl-info .dfl-name { font-size: 12px; }
.disk-file-list.grid-view .dfl-row .dfl-size-right { display: none; }
.disk-file-list.grid-view .dfl-row .dfl-info .dfl-size { font-size: 10px; }
.disk-file-list.grid-view .dfl-row {
  animation: gridFadeIn 0.2s ease;
}

@keyframes gridFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ====== 按钮淡入动画（视图切换） ====== */
@keyframes fadeInItem {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== 页面进入动画 ====== */
.disk-page { animation: pageSlideIn 0.3s ease-out; }
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== 图片预览式FAB扩散（备选样式） ====== */
.disk-fab-menu.expand-up {
  border-radius: 16px;
  left: auto; right: 16px; bottom: 148px;
  width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform-origin: bottom right;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.disk-fab-menu.expand-up.active { transform: scale(1); }
.disk-fab-menu.expand-up .dfm-item:first-child { border-radius: 16px 16px 0 0; }
.disk-fab-menu.expand-up .dfm-item:last-child { border-radius: 0 0 16px 16px; }

/* ====== 搜索页增强样式 ====== */
.search-page .search-history-area {
  padding: 20px 16px;
}
.search-page .search-history-area .sha-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.search-page .search-history-area .sha-header .sha-title {
  font-size: 14px; font-weight: 500; color: #000000;
}
.search-page .search-history-area .sha-header .sha-clear {
  font-size: 12px; color: #999999; cursor: pointer;
}
.search-page .search-history-area .sha-header .sha-clear:active { color: #2D81FF; }
.search-page .search-history-area .sha-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.search-page .search-history-area .sha-tags .sha-tag {
  padding: 6px 14px;
  background: #F5F5F5;
  border-radius: 12px;
  font-size: 12px; color: #666666;
  cursor: pointer;
}
.search-page .search-history-area .sha-tags .sha-tag:active { background: #E8E8E8; }
.search-page .search-suggestions {
  padding: 0 16px;
}
.search-page .search-suggestions .ss-item {
  height: 44px;
  display: flex; align-items: center;
  font-size: 14px; color: #333333;
  cursor: pointer;
  border-bottom: 0.5px solid #F5F5F5;
}
.search-page .search-suggestions .ss-item:last-child { border-bottom: none; }
.search-page .search-suggestions .ss-item:active { background: #F5F5F5; }
.search-page .search-suggestions .ss-item .ss-icon {
  margin-right: 10px;
  color: #999999;
  flex-shrink: 0;
}

/* ====== 安全区适配 ====== */
.disk-top-header {
  padding-top: env(safe-area-inset-top);
  height: calc(48px + env(safe-area-inset-top));
}
.disk-selection-bar {
  padding-top: env(safe-area-inset-top);
  height: calc(48px + env(safe-area-inset-top));
}
.disk-content {
  padding-top: calc(48px + env(safe-area-inset-top));
}

/* ============================================
   星澜云盘 v2 - 文件页 #/file 专属样式
   Phase 3: 极致 UI + 交互复刻
   ============================================ */

/* ====== 文件页基础容器 ====== */
.file-page {
  min-height: 100vh;
  background: #FFFFFF;
  position: relative;
  overflow-x: hidden;
}

/* ====== 文件页顶部导航 ====== */
.file-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: #FFFFFF;
  border-bottom: 0.5px solid #EEEEEE;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.file-top-header .fth-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}
.file-top-header .fth-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 72px;
}
.file-top-header .fth-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.file-top-header .fth-icon:active {
  background: #E8E8E8;
  transform: scale(0.92);
}
.file-top-header .fth-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #999999;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ====== 文件页返回导航（子目录） ====== */
.file-sub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: #FFFFFF;
  border-bottom: 0.5px solid #EEEEEE;
  display: flex;
  align-items: center;
  padding: 0 8px 0 4px;
}
.file-sub-header .fsh-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.15s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.file-sub-header .fsh-back:active {
  background: #E8E8E8;
  transform: scale(0.92);
}
.file-sub-header .fsh-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #1A1A1A;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.file-sub-header .fsh-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-sub-header .fsh-right {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-sub-header .fsh-right svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #999999;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ====== 面包屑导航 ====== */
.file-breadcrumb {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background: #FFFFFF;
  border-bottom: 0.5px solid #EEEEEE;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.file-breadcrumb::-webkit-scrollbar {
  display: none;
}
.file-breadcrumb .bc-item {
  font-size: 12px;
  color: #999999;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.file-breadcrumb .bc-item:active {
  color: #2D81FF;
  background: #E8F4FF;
}
.file-breadcrumb .bc-item.current {
  color: #1A1A1A;
  font-weight: 500;
}
.file-breadcrumb .bc-sep {
  font-size: 12px;
  color: #C0C0C0;
  margin: 0 4px;
  flex-shrink: 0;
}

/* ====== 7分类导航条 ====== */
.file-cat-nav {
  height: 48px;
  background: #FFFFFF;
  padding: 0 16px;
  display: flex;
  align-items: flex-end;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-bottom: 0.5px solid #EEEEEE;
}
.file-cat-nav::-webkit-scrollbar {
  display: none;
}
.file-cat-nav .cat-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.15s ease;
}
.file-cat-nav .cat-item:active {
  opacity: 0.7;
}
.file-cat-nav .cat-item .cat-icon {
  font-size: 22px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-cat-nav .cat-item .cat-label {
  font-size: 11px;
  color: #999999;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.file-cat-nav .cat-item.active .cat-label {
  color: #2D81FF;
  font-weight: 500;
}
.file-cat-nav .cat-item .cat-underline {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #2D81FF;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.file-cat-nav .cat-item.active .cat-underline {
  transform: scaleX(1);
}

/* ====== 板块通用 ====== */
.file-section {
  margin-bottom: 0;
}
.file-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
}
.file-section-header .fsh-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
}
.file-section-header .fsh-more {
  font-size: 12px;
  color: #999999;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s ease;
}
.file-section-header .fsh-more:active {
  color: #2D81FF;
}

/* ====== 板块间距 ====== */
.file-section + .file-section {
  margin-top: 8px;
}
.file-section .file-section-divider {
  height: 0.5px;
  background: #EEEEEE;
  margin: 0 16px;
}

/* ====== 最近浏览 - 横向滚动卡片 ====== */
.file-recent-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
}
.file-recent-scroll::-webkit-scrollbar {
  display: none;
}
.file-recent-scroll .recent-inner {
  display: inline-flex;
  gap: 12px;
}
.file-recent-scroll .recent-card {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #F5F5F5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease;
}
.file-recent-scroll .recent-card:active {
  transform: scale(0.92);
  background: #E8E8E8;
}
.file-recent-scroll .recent-card .rc-emoji {
  font-size: 24px;
  line-height: 1;
}
.file-recent-scroll .recent-card .rc-name {
  font-size: 10px;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
  text-align: center;
  line-height: 1.2;
}

/* ====== 收藏/置顶/文件夹 - 列表行 ====== */
.file-list {
  padding: 0 16px;
}
.file-list .fl-row {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0;
  border-bottom: 0.5px solid #EEEEEE;
  cursor: pointer;
  transition: background 0.15s ease;
}
.file-list .fl-row:active {
  background: #F0F0F0;
}
.file-list .fl-row .fl-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 8px;
  margin-right: 12px;
}
.file-list .fl-row .fl-icon-wrap.fi-folder-yellow {
  background: #FFF3E0;
}
.file-list .fl-row .fl-icon-wrap.fi-doc-green {
  background: #E8FFE8;
}
.file-list .fl-row .fl-icon-wrap.fi-img-blue {
  background: #E8F2FF;
}
.file-list .fl-row .fl-icon-wrap.fi-video-purple {
  background: #F3E8FF;
}
.file-list .fl-row .fl-icon-wrap.fi-zip-pink {
  background: #FFEBEE;
}
.file-list .fl-row .fl-icon-wrap.fi-other-gray {
  background: #F0F0F0;
}
.file-list .fl-row .fl-info {
  flex: 1;
  min-width: 0;
}
.file-list .fl-row .fl-info .fl-name {
  font-size: 14px;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.file-list .fl-row .fl-info .fl-meta {
  font-size: 11px;
  color: #999999;
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-list .fl-row .fl-arrow {
  color: #C0C0C0;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 8px;
  opacity: 0.5;
}

/* ====== 子目录文件列表 ====== */
.file-subdir-list {
  padding: 0 16px;
  animation: fadeInUp 0.25s ease-out;
}
.file-subdir-list .sdl-row {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0;
  border-bottom: 0.5px solid #EEEEEE;
  cursor: pointer;
  transition: background 0.15s ease;
}
.file-subdir-list .sdl-row:active {
  background: #F0F0F0;
}
.file-subdir-list .sdl-row .sdl-icon-wrap {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 8px;
  margin-right: 12px;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-folder {
  background: #FFF3E0;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-doc {
  background: #E8FFE8;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-img {
  background: #E8F2FF;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-video {
  background: #F3E8FF;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-zip {
  background: #FFEBEE;
}
.file-subdir-list .sdl-row .sdl-icon-wrap.sdi-other {
  background: #F0F0F0;
}
.file-subdir-list .sdl-row .sdl-info {
  flex: 1;
  min-width: 0;
}
.file-subdir-list .sdl-row .sdl-info .sdl-name {
  font-size: 14px;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.file-subdir-list .sdl-row .sdl-info .sdl-meta {
  font-size: 11px;
  color: #999999;
  margin-top: 2px;
  line-height: 1.3;
}
.file-subdir-list .sdl-row .sdl-arrow {
  color: #C0C0C0;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 8px;
  opacity: 0.5;
}

/* ====== 空状态（各板块共用） ====== */
.file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
}
.file-empty .fe-emoji {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.file-empty .fe-text {
  font-size: 12px;
  color: #999999;
}

/* ====== 骨架屏 ====== */
.file-skeleton {
  padding: 0 16px;
}
.file-skeleton .sk-row {
  display: flex;
  align-items: center;
  height: 56px;
  border-bottom: 0.5px solid #EEEEEE;
}
.file-skeleton .sk-row:last-child {
  border-bottom: none;
}
.file-skeleton .sk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F0F0F0;
  margin-right: 12px;
  flex-shrink: 0;
  animation: skShimmer 1.5s ease-in-out infinite;
}
.file-skeleton .sk-info {
  flex: 1;
}
.file-skeleton .sk-name {
  width: 60%;
  height: 12px;
  background: #F0F0F0;
  border-radius: 4px;
  margin-bottom: 6px;
  animation: skShimmer 1.5s ease-in-out infinite;
}
.file-skeleton .sk-meta {
  width: 30%;
  height: 8px;
  background: #F0F0F0;
  border-radius: 4px;
  animation: skShimmer 1.5s ease-in-out infinite;
}

@keyframes skShimmer {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ====== 长按弹出菜单 ====== */
.file-longpress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.file-longpress-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.file-longpress-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 310;
  background: #FFFFFF;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  padding-bottom: calc(env(safe-area-inset-bottom) + 8px);
}
.file-longpress-menu.active {
  transform: translateY(0);
}
.file-longpress-menu .lpm-item {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  cursor: pointer;
  border-bottom: 0.5px solid #EEEEEE;
  transition: background 0.15s ease;
}
.file-longpress-menu .lpm-item:last-child {
  border-bottom: none;
}
.file-longpress-menu .lpm-item:active {
  background: #F5F5F5;
}
.file-longpress-menu .lpm-item .lpm-icon {
  width: 22px;
  font-size: 18px;
  margin-right: 12px;
  flex-shrink: 0;
  text-align: center;
}
.file-longpress-menu .lpm-item .lpm-label {
  font-size: 14px;
  color: #1A1A1A;
}

/* ====== 转场动画 ====== */
.file-page-transition-left {
  animation: fileSlideInLeft 0.3s ease-out;
}
.file-page-transition-right {
  animation: fileSlideInRight 0.3s ease-out;
}
.file-page-fade-out {
  animation: fileFadeOut 0.25s ease-out forwards;
}

@keyframes fileSlideInLeft {
  from {
    transform: translateX(100%);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fileSlideInRight {
  from {
    transform: translateX(-30%);
    opacity: 0.4;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fileFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== 弹窗弹出动画 ====== */
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDownSheet {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* ====== 全局滚动条样式 ====== */
::-webkit-scrollbar {
  width: 3px;
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* ====== 文件页内容区域 ====== */
.file-content {
  padding-bottom: 12px;
}

/* ====== 文件页动画控制 ====== */
.file-page.file-animating {
  overflow: hidden;
  pointer-events: none;
}

/* ============================================
   传输中心 - v2 完全版 UI
   ============================================ */

/* ----- 标签导航栏 (44px) ----- */
.transfer-tabs-v2 {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  background: #FFFFFF;
  padding: 0 16px;
  border-bottom: 0.5px solid #EEEEEE;
}
.transfer-tabs-v2 .tt-v2-item {
  position: relative;
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 400;
  color: #999999;
  cursor: pointer;
  transition: color 0.2s ease;
}
.transfer-tabs-v2 .tt-v2-item.active {
  color: #2D81FF;
}
.transfer-tabs-v2 .tt-v2-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #2D81FF;
  transition: left 0.2s ease, width 0.2s ease;
}

/* ----- 传输面板 ----- */
.transfer-panel-v2 {
  display: none;
}
.transfer-panel-v2.active {
  display: block;
  animation: transferPanelIn 0.2s ease;
}
@keyframes transferPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- 分区容器 ----- */
.transfer-section {
  padding: 0 16px;
}
.transfer-section .ts-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.transfer-section .ts-title-row .ts-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
}
.transfer-section .ts-title-row .ts-clear-btn {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}
.transfer-section .ts-title-row .ts-clear-btn:active {
  background: #F0F0F0;
}

/* ----- 传输条目 (72px高) ----- */
.transfer-item {
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 0.5px solid #EEEEEE;
  opacity: 1;
  max-height: 72px;
  overflow: hidden;
  transition: opacity 0.3s ease-out, max-height 0.3s ease-out, padding 0.3s ease-out;
}
.transfer-item:last-child {
  border-bottom: none;
}
.transfer-item.ti-removing {
  opacity: 0;
  max-height: 0;
  padding: 0;
  border-bottom: none;
}

/* 图标 36x36 */
.transfer-item .ti-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 12px;
}

/* 信息区域 (占满剩余空间) */
.transfer-item .ti-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

/* 第一行：文件名 + 右侧按钮 (flex row) */
.transfer-item .ti-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.transfer-item .ti-name {
  font-size: 14px;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* 第二行：传输详情 + 百分比 + 进度条 */
.transfer-item .ti-row2 {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.transfer-item .ti-detail {
  font-size: 11px;
  color: #B0B0B0;
  white-space: nowrap;
  flex-shrink: 0;
}
.transfer-item .ti-percent {
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

/* 进度条 (3px) */
.transfer-item .ti-progress {
  flex: 1;
  height: 3px;
  background: #EEEEEE;
  border-radius: 2px;
  overflow: hidden;
}
.transfer-item .ti-progress .ti-progress-fill {
  height: 100%;
  background: #2D81FF;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.transfer-item .ti-progress .ti-progress-fill.tpf-done {
  background: #34C759;
}

/* 已完成 ✓ 标签 */
.transfer-item .ti-check {
  font-size: 11px;
  color: #34C759;
  flex-shrink: 0;
}

/* 等待中 标签 */
.transfer-item .ti-waiting {
  font-size: 11px;
  color: #999;
  flex-shrink: 0;
}

/* 失败原因 */
.transfer-item .ti-error {
  font-size: 11px;
  color: #FF3B30;
  flex-shrink: 0;
}

/* ----- 操作按钮 (28x28) ----- */
.transfer-item .ti-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.transfer-item .ti-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  color: #999;
  transition: background 0.15s ease, transform 0.15s ease;
}
.transfer-item .ti-btn:active {
  background: #F0F0F0;
  transform: scale(0.88);
}

/* ----- 空状态 ----- */
.transfer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}
.transfer-empty .te-emoji {
  font-size: 48px;
  margin-bottom: 12px;
}
.transfer-empty .te-text {
  font-size: 12px;
  color: #999;
}

/* ----- 骨架屏 ----- */
.transfer-skeleton {
  padding: 12px 16px;
}
.transfer-skeleton .sk-item {
  display: flex;
  align-items: center;
  height: 72px;
  border-bottom: 0.5px solid #EEEEEE;
}
.transfer-skeleton .sk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F0F0F0;
  margin-right: 12px;
  flex-shrink: 0;
  animation: skPulse 1.2s ease-in-out infinite;
}
.transfer-skeleton .sk-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.transfer-skeleton .sk-line {
  height: 10px;
  border-radius: 4px;
  background: #F0F0F0;
  animation: skPulse 1.2s ease-in-out infinite;
}
.transfer-skeleton .sk-line:nth-child(1) { width: 60%; }
.transfer-skeleton .sk-line:nth-child(2) { width: 90%; }
@keyframes skPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ----- 确认弹窗 ----- */
.transfer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.2s ease;
}
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.transfer-modal {
  width: 280px;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px 20px 16px;
  text-align: center;
  animation: modalPopIn 0.3s ease-out;
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
.transfer-modal .tm-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.transfer-modal .tm-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}
.transfer-modal .tm-btns {
  display: flex;
  gap: 8px;
}
.transfer-modal .tm-btns .tm-btn {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.transfer-modal .tm-btns .tm-btn:active {
  transform: scale(0.95);
}
.transfer-modal .tm-btns .tm-btn-cancel {
  background: #F5F5F5;
  color: #666;
}
.transfer-modal .tm-btns .tm-btn-cancel:active {
  background: #E8E8E8;
}
.transfer-modal .tm-btns .tm-btn-confirm {
  background: #2D81FF;
  color: #FFFFFF;
}
.transfer-modal .tm-btns .tm-btn-confirm:active {
  background: #1A6FE0;
}