:root {
  --bg: #070a14; --card: rgba(21, 28, 52, .62); --card-solid: #10162b;
  --line: rgba(148, 168, 255, .13);
  --text: #e7ecff; --sub: #8b95bd;
  --primary: #5b7cff; --primary-d: #3d5ae0;
  --grad: linear-gradient(135deg, #7c9bff, #5b7cff 52%, #9a6bff);
  --danger: #ff7a7a; --ok: #3ddba4;
  --side-grad: linear-gradient(180deg, rgba(14, 19, 40, .88) 0%, rgba(9, 13, 28, .92) 100%);
  --shadow-sm: 0 2px 10px rgba(2, 4, 14, .35);
  --shadow-md: 0 10px 30px rgba(2, 4, 14, .45);
  --shadow-lg: 0 24px 60px rgba(0, 2, 12, .6);
  --glow: 0 0 0 1px rgba(122, 148, 255, .18), 0 8px 32px rgba(70, 100, 255, .12);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: transparent; color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }

/* ===== 氛围背景层：渐变网格 / 粒子画布 / 颗粒纹理 ===== */
.bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(1000px 640px at 88% -12%, rgba(96, 130, 255, .17), transparent 62%),
  radial-gradient(820px 560px at -12% 34%, rgba(150, 96, 255, .11), transparent 58%),
  radial-gradient(900px 620px at 58% 112%, rgba(38, 196, 255, .09), transparent 58%),
  radial-gradient(520px 380px at 30% 8%, rgba(255, 122, 89, .05), transparent 60%),
  var(--bg); }
#bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }

::selection { background: rgba(91, 124, 255, .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(120, 140, 220, .28); border-radius: 9px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
a { color: var(--primary); }

/* ===== 登录页 ===== */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: transparent; padding: 16px; position: relative; z-index: 2; }
.login-card { background: linear-gradient(165deg, rgba(30, 40, 74, .72), rgba(13, 18, 38, .66)); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(148, 168, 255, .16); border-radius: 20px; padding: 38px 32px; width: 372px; max-width: 100%; text-align: center; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06); animation: cardUp .55s var(--spring) backwards; }
@keyframes cardUp { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
.login-logo { width: 66px; height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: #fff; border-radius: 20px; background: var(--grad); box-shadow: 0 10px 30px rgba(91, 124, 255, .45), 0 0 0 1px rgba(255,255,255,.12) inset; overflow: hidden; }
.login-logo img, .brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.login-card h1 { font-size: 20px; margin: 16px 0 4px; letter-spacing: 1px; color: #f0f4ff; }
.login-sub { color: var(--sub); font-size: 12px; margin-bottom: 24px; letter-spacing: 3px; }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 12px; font-size: 14px; background: rgba(8, 12, 26, .55); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-card input::placeholder { color: #5d6788; }
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 124, 255, .18), 0 0 24px rgba(91, 124, 255, .12); background: rgba(10, 15, 32, .75); }
.login-err { color: var(--danger); font-size: 12px; min-height: 18px; margin-top: 8px; }

/* ===== 主布局：左侧边栏 ===== */
.app { min-height: 100vh; display: flex; position: relative; z-index: 2; }
.sidebar { width: 216px; flex-shrink: 0; background: var(--side-grad); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #a9b4de; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20; box-shadow: 4px 0 30px rgba(0, 2, 12, .5); border-right: 1px solid rgba(148, 168, 255, .1); }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; border-bottom: 1px solid rgba(148, 168, 255, .12); }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; border-radius: 12px; background: var(--grad); box-shadow: 0 6px 18px rgba(91, 124, 255, .5), inset 0 1px 0 rgba(255,255,255,.25); overflow: hidden; }
.brand-name { font-weight: 700; font-size: 15px; color: #f0f3ff; letter-spacing: 1px; line-height: 1.3; }
.brand-name em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: #8fa0dd; letter-spacing: 2px; margin-top: 2px; }

/* 侧边导航 */
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 11px; cursor: pointer; white-space: nowrap; color: #a9b4de; font-size: 14px; transition: background .18s ease, color .18s ease, transform .15s var(--spring), box-shadow .18s ease; user-select: none; position: relative; animation: navIn .4s var(--spring) backwards; }
.nav-item:hover { background: rgba(120, 140, 255, .12); color: #fff; transform: translateX(2px); }
.nav-item:active { transform: scale(.96); }
.nav-item.active { background: var(--grad); color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(91, 124, 255, .4), inset 0 1px 0 rgba(255,255,255,.2); }
.nav-item.active::before { content: ''; position: absolute; left: -10px; top: 22%; height: 56%; width: 3px; border-radius: 3px; background: #9db0ff; box-shadow: 0 0 10px rgba(122, 148, 255, .9); }
.nav-ico { font-size: 16px; line-height: 1; }
@keyframes navIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

/* 侧栏底部：铃铛 + 用户 */
.topbar-user { border-top: 1px solid rgba(148, 168, 255, .12); padding: 13px 16px; font-size: 12px; color: #a9b4de; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; line-height: 1.7; }
.topbar-user .tag-admin { background: var(--grad); color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 8px; margin: 0 2px; }
.topbar-user a { color: #8fa0dd; cursor: pointer; transition: color .15s ease; margin: 0 2px; }
.topbar-user .user-ops { flex-basis: 100%; display: block; }
.topbar-user a:hover { color: #fff; }
.alert-bell { cursor: pointer; position: relative; font-size: 18px; line-height: 1; user-select: none; transition: transform .2s var(--spring); }
.alert-bell:hover { transform: scale(1.18) rotate(10deg); }
.alert-bell:active { transform: scale(.92); }
.sound-btn { cursor: pointer; font-size: 16px; line-height: 1; user-select: none; opacity: .75; transition: transform .2s var(--spring), opacity .15s ease; }
.sound-btn:hover { transform: scale(1.15); opacity: 1; }
.sound-btn:active { transform: scale(.9); }
.alert-badge { position: absolute; top: -7px; right: -10px; background: linear-gradient(135deg, #ff7373, #e03a3a); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 16px; font-weight: 600; box-shadow: 0 2px 10px rgba(224, 58, 58, .6); animation: badgePop .3s var(--spring) backwards; }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* 内容区 */
.main { flex: 1; min-width: 0; padding: 26px 30px 40px; max-width: 1240px; animation: fadePage .3s ease; }
@keyframes fadePage { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h2.page-title { font-size: 19px; margin-bottom: 18px; padding-left: 13px; border-left: 4px solid; border-image: var(--grad) 1; letter-spacing: .5px; line-height: 1.3; font-weight: 700; color: #f2f5ff; }

/* 滚动渐入：视图渲染后子元素依次浮现 */
.main > *:nth-child(1) { animation: revealUp .45s cubic-bezier(.22, .9, .32, 1) backwards; }
.main > *:nth-child(2) { animation: revealUp .45s cubic-bezier(.22, .9, .32, 1) .05s backwards; }
.main > *:nth-child(3) { animation: revealUp .45s cubic-bezier(.22, .9, .32, 1) .1s backwards; }
.main > *:nth-child(n+4) { animation: revealUp .45s cubic-bezier(.22, .9, .32, 1) .15s backwards; }
.main > .sec-head { animation: revealUp .45s cubic-bezier(.22, .9, .32, 1) .12s backwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 卡片与网格 */
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(165deg, rgba(32, 43, 78, .55), rgba(14, 20, 40, .5)); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); border-radius: 15px; padding: 16px; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .04); transition: box-shadow .25s ease, transform .3s var(--spring), border-color .25s ease; }
.card:hover { box-shadow: var(--shadow-md), var(--glow); transform: translateY(-3px); border-color: rgba(148, 168, 255, .3); }
.stat-num { font-size: 26px; font-weight: 800; background: linear-gradient(135deg, #9db5ff, #5b7cff 55%, #b78aff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--sub); font-size: 12px; margin-top: 2px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.sec-head h3 { font-size: 15px; letter-spacing: .5px; color: #eef2ff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
/* 手机点按不闪灰块（触屏体验） */
body { -webkit-tap-highlight-color: transparent; }
/* 素材中心工具栏：分类标签 + 操作按钮（手机上按钮换行、标签横滑） */
.asset-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asset-toolbar .tabs { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.asset-toolbar-btns { display: flex; gap: 6px; margin-left: auto; flex: none; }
.tab { padding: 6px 15px; border-radius: 999px; background: rgba(24, 32, 60, .55); border: 1px solid var(--line); cursor: pointer; font-size: 13px; color: var(--sub); transition: all .2s var(--spring); }
.tab:hover { border-color: var(--primary); color: #cdd9ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(70, 100, 255, .15); }
.tab:active { transform: scale(.95); }
.tab.active { background: var(--grad); border-color: rgba(255, 255, 255, .18); color: #fff; box-shadow: 0 4px 16px rgba(91, 124, 255, .4); }

/* 表格 */
.tbl-wrap { background: linear-gradient(165deg, rgba(28, 38, 70, .5), rgba(13, 18, 38, .48)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 15px; overflow-x: auto; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid rgba(148, 168, 255, .08); vertical-align: top; }
th { background: rgba(16, 23, 46, .8); color: #93a2d8; font-weight: 600; white-space: nowrap; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s ease; }
tr:hover td { background: rgba(91, 124, 255, .07); }

/* 按钮 */
.btn { border: 1px solid var(--line); background: rgba(30, 40, 72, .55); color: var(--text); padding: 7px 15px; border-radius: 10px; cursor: pointer; font-size: 13px; transition: all .18s var(--spring); box-shadow: var(--shadow-sm); }
.btn:hover { border-color: rgba(148, 168, 255, .45); color: #cdd9ff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(50, 80, 220, .22); }
.btn:active { transform: translateY(0) scale(.95); box-shadow: none; }
.btn.primary { background: var(--grad); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 4px 16px rgba(91, 124, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.primary:hover { filter: brightness(1.1); color: #fff; box-shadow: 0 8px 26px rgba(91, 124, 255, .5); }
.btn.danger { color: #ff9d9d; border-color: rgba(255, 122, 122, .35); background: rgba(80, 24, 30, .25); }
.btn.danger:hover { background: rgba(150, 40, 48, .35); border-color: var(--danger); color: #ffc9c9; box-shadow: 0 6px 18px rgba(224, 72, 72, .25); }
.btn.small { padding: 4px 11px; font-size: 12px; }
.btn.block { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 4px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* 标签 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; }
.b-gray { background: rgba(120, 136, 190, .16); color: #9aa6cf; }
.b-blue { background: rgba(91, 124, 255, .16); color: #9db5ff; }
.b-green { background: rgba(61, 219, 164, .13); color: #6fe8c0; }
.b-red { background: rgba(255, 110, 110, .14); color: #ff9d9d; }
.b-gold { background: linear-gradient(135deg, rgba(157, 181, 255, .2), rgba(183, 138, 255, .2)); color: #c3d2ff; }

/* 表单 */
.form-row { margin-bottom: 13px; }
.form-row label { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; letter-spacing: .3px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-family: inherit; background: rgba(8, 12, 26, .55); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.form-row input::placeholder, .form-row textarea::placeholder { color: #5d6788; }
.form-row select option { background: #10162b; color: var(--text); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 124, 255, .16), 0 0 20px rgba(91, 124, 255, .1); background: rgba(10, 15, 32, .8); }
.form-row textarea { min-height: 90px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); padding: 6px 11px; border-radius: 10px; cursor: pointer; font-size: 13px; margin: 0; color: var(--text); background: rgba(24, 32, 60, .5); transition: border-color .15s ease, background .15s ease, transform .15s var(--spring); }
.checks label:hover { border-color: rgba(148, 168, 255, .45); background: rgba(91, 124, 255, .12); transform: translateY(-1px); }
.checks label:has(input:checked) { border-color: rgba(91, 124, 255, .6); background: rgba(91, 124, 255, .16); box-shadow: 0 0 12px rgba(91, 124, 255, .15); }
.checks input { accent-color: var(--primary); }

/* 素材 */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.asset-card { background: linear-gradient(165deg, rgba(32, 43, 78, .55), rgba(14, 20, 40, .5)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .3s var(--spring), border-color .25s ease; }
.asset-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), var(--glow); border-color: rgba(148, 168, 255, .32); }
.asset-card:hover .asset-thumb img, .asset-card:hover .asset-thumb video { transform: scale(1.06); }
.asset-thumb { height: 248px; background: linear-gradient(160deg, rgba(40, 54, 96, .6), rgba(18, 25, 50, .6)), repeating-conic-gradient(rgba(255,255,255,.025) 0% 25%, transparent 0% 50%) 0 0 / 18px 18px; display: flex; align-items: center; justify-content: center; font-size: 34px; cursor: pointer; overflow: hidden; }
.asset-thumb .pv { display: block; width: 100%; height: 100%; }
/* 沉浸大图：信息压成图底浮层，操作按钮悬停时展开 */
.thumb-cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(8, 11, 24, .84); padding: 8px 10px 9px; }
.thumb-cap-name { font-size: 12.5px; font-weight: 500; color: #eef1ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-cap-sub { font-size: 10.5px; color: #99a3c7; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb-cap-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.thumb-cap-tags .badge { margin: 0; }
.thumb-ops { display: none; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.thumb-ops .btn { flex: 0 0 auto; white-space: nowrap; padding: 3px 9px; font-size: 11.5px; }
.asset-card:hover .thumb-ops { display: flex; }
/* 类型区分角标：视频中央播放键 + 右上角类型徽章 + 左上角时长 */
.asset-thumb { position: relative; }
/* 外网访问（ext-access）：隐藏全部下载入口；水印由 JS 注入 */
.ext-access [data-act="dl"] { display: none !important; }
#ext-watermark { top: 0; left: 0; width: 100vw; height: 100vh; }
.thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.thumb-play::before { content: ''; width: 36px; height: 36px; border-radius: 50%; background: rgba(8, 12, 26, .62); border: 1px solid rgba(255, 255, 255, .28); }
.thumb-play::after { content: ''; position: absolute; width: 0; height: 0; border-left: 11px solid rgba(255, 255, 255, .92); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.thumb-type { position: absolute; top: 6px; right: 6px; font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 999px; background: rgba(8, 12, 26, .72); pointer-events: none; }
.thumb-type.t-video { color: #9fc4ff; border: 1px solid rgba(120, 160, 255, .4); }
.thumb-type.t-image { color: #b9e8cd; border: 1px solid rgba(110, 210, 160, .4); }
.thumb-dur { position: absolute; top: 6px; left: 6px; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 6px; background: rgba(8, 12, 26, .78); color: #e8edff; pointer-events: none; }
/* 送审状态徽章：可点击跳审核中心 */
.rev-jump { cursor: pointer; }
.rev-jump:hover { filter: brightness(1.3); }
@keyframes revFocusGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(108, 140, 255, 0); } 30% { box-shadow: 0 0 0 3px rgba(108, 140, 255, .55); } }
.rev-focus { animation: revFocusGlow 1s ease 3; border-color: rgba(148, 168, 255, .6) !important; }
.asset-thumb img, .asset-thumb video { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.asset-info { padding: 10px 12px; flex: 1; }
.asset-name { font-size: 13px; font-weight: 500; word-break: break-all; color: #e9edff; }
.asset-meta { font-size: 11px; color: var(--sub); margin-top: 4px; }
.asset-ops { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px; border-top: 1px solid rgba(148, 168, 255, .09); background: rgba(10, 14, 30, .45); }
.asset-ops .btn { flex: 0 0 auto; white-space: nowrap; }
.asset-ops .badge { flex: 0 0 auto; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(4, 6, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; }
.modal-card { background: linear-gradient(170deg, rgba(30, 41, 76, .92), rgba(14, 19, 40, .94)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(148, 168, 255, .18); border-radius: 18px; padding: 22px; width: 480px; max-width: 100%; box-shadow: var(--shadow-lg), 0 0 60px rgba(70, 100, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .06); animation: modalIn .34s var(--spring) backwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.94); } to { opacity: 1; transform: none; } }
.modal-card h3 { margin-bottom: 16px; font-size: 16px; padding-left: 11px; border-left: 3px solid var(--primary); line-height: 1.35; color: #f0f4ff; }
.modal-ops { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Toast / 预览 */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, rgba(46, 60, 110, .92), rgba(22, 30, 62, .94)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #e8ecff; padding: 11px 22px; border-radius: 999px; z-index: 99; font-size: 13px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(122, 148, 255, .3), 0 0 30px rgba(70, 100, 255, .2); animation: toastIn .3s var(--spring) backwards; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0); } }
.viewer { position: fixed; inset: 0; background: rgba(3, 5, 14, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.viewer-body { max-width: 92vw; max-height: 88vh; overflow: auto; }
.viewer-body img, .viewer-body video { max-width: 92vw; max-height: 80vh; display: block; border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 50px rgba(70, 100, 255, .15); }

/* 历史时间线 */
.hist { font-size: 12px; color: var(--sub); border-left: 2px solid rgba(148, 168, 255, .3); padding-left: 12px; margin-top: 8px; }
.hist div { margin-bottom: 6px; }

.empty { text-align: center; color: var(--sub); padding: 40px 0; font-size: 13px; letter-spacing: 1px; }
.warn-note { background: linear-gradient(135deg, rgba(120, 96, 40, .22), rgba(70, 56, 24, .18)); border: 1px solid rgba(230, 184, 90, .3); color: #e8cf9a; border-radius: 11px; padding: 10px 14px; font-size: 12px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }

/* 消息提醒条目 */
.alert-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 6px; border-bottom: 1px solid rgba(148, 168, 255, .08); border-radius: 8px; transition: background .15s ease; }
.alert-item:hover { background: rgba(91, 124, 255, .07); }
.alert-item.unread { background: linear-gradient(135deg, rgba(91, 124, 255, .14), rgba(154, 107, 255, .08)); }
.alert-item .a-icon { font-size: 20px; }
.alert-item .a-body { flex: 1; }
.alert-item .a-title { font-weight: 600; font-size: 13px; color: #eef2ff; }
.alert-item .a-detail { font-size: 12px; color: var(--sub); margin-top: 2px; }
.alert-item .a-time { font-size: 11px; color: var(--sub); margin-top: 2px; }

/* ===== 审核中心：卡片 + 可视化链路 ===== */
.rev-card { margin-bottom: 14px; }
.rev-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rev-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rev-title { font-size: 15px; color: #f0f4ff; }
.rev-meta { font-size: 12px; color: var(--sub); }
.rev-deliver { margin-top: 10px; font-size: 12px; color: var(--sub); background: rgba(10, 14, 30, .5); border: 1px solid rgba(148, 168, 255, .08); border-radius: 9px; padding: 8px 12px; white-space: pre-wrap; }
.rev-deliver b { color: #cdd9ff; }
.rev-comment { margin-top: 8px; font-size: 12px; color: #e8cf9a; background: linear-gradient(135deg, rgba(140, 104, 40, .2), rgba(90, 66, 26, .18)); border: 1px solid rgba(230, 184, 90, .3); border-radius: 9px; padding: 8px 12px; }
.rev-ops { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(148, 168, 255, .16); display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.rev-hint { font-size: 12px; color: var(--sub); margin-right: auto; }

/* ---- 数据中心 · 采集卡片 ---- */
.metric-card { max-width: 100%; padding: 12px 14px; margin-bottom: 14px; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.metric-head h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.metric-ops { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.metric-note { font-size: 12px; color: var(--sub); margin: 8px 0; }
.metric-trow th { padding: 6px 12px; }
.metric-trow .metric-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.metric-trow .metric-head h3 .badge { font-weight: 400; letter-spacing: 0; }
.metric-trow .metric-ops .btn { white-space: nowrap; }
.viral-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f0b23e; margin-left: 4px; vertical-align: 2px; }
.lnk-cell { max-width: 200px; }
.lnk-cell a { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary); font-size: 12px; }
.metric-chart { margin: 10px 0; overflow-x: auto; }
.metric-chart svg { max-width: 100%; height: auto; }

.flow { display: flex; align-items: flex-start; margin: 16px 0 6px; overflow-x: auto; padding: 2px 0; }
.flow-node { flex: 1; min-width: 92px; text-align: center; position: relative; padding: 0 4px; }
.flow-line { position: absolute; top: 18px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; border-radius: 2px; background: rgba(148, 168, 255, .16); }
.flow-node.done .flow-line { background: linear-gradient(90deg, rgba(157, 176, 255, .5), #5b7cff); }
.flow-node.bad .flow-line { background: linear-gradient(90deg, rgba(240, 162, 162, .5), #ff6b6b); }
.flow-dot { width: 38px; height: 38px; margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 17px; border-radius: 50%; background: rgba(24, 32, 62, .7); border: 2px solid rgba(148, 168, 255, .2); position: relative; z-index: 1; transition: all .2s ease; }
.flow-node.done .flow-dot { background: var(--grad); border-color: rgba(255, 255, 255, .25); box-shadow: 0 4px 14px rgba(91, 124, 255, .4); }
.flow-node.bad .flow-dot { background: linear-gradient(135deg, #ff8a8a, #e04848); border-color: rgba(255, 255, 255, .2); box-shadow: 0 4px 14px rgba(224, 72, 72, .4); }
.flow-node.current .flow-dot { border-color: var(--primary); background: rgba(16, 23, 46, .9); animation: flowPulse 1.6s ease-in-out infinite; }
@keyframes flowPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(91, 124, 255, .4); } 50% { box-shadow: 0 0 0 9px rgba(91, 124, 255, 0); } }
.flow-label { font-size: 13px; font-weight: 600; margin-top: 7px; color: #dfe6ff; }
.flow-node.current .flow-label { color: #9db5ff; }
.flow-sub { font-size: 11px; color: var(--sub); margin-top: 2px; }
.flow-time { font-size: 10px; color: #6d779c; margin-top: 2px; }

/* ===== 手机端顶栏 / 遮罩：默认完全不参与布局，仅小屏生效 ===== */
.mtop { display: none; }
.m-mask { display: none; }
body.drawer-open { overflow: hidden; }

/* 手机适配：顶栏 + 抽屉式侧栏 */
@media (max-width: 720px) {
  /* ---- 顶栏 ---- */
  .mtop {
    display: flex; align-items: center; gap: 10px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 45;
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    background: linear-gradient(180deg, rgba(14, 19, 40, .96), rgba(10, 14, 30, .93));
    backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(148, 168, 255, .14);
    box-shadow: 0 4px 20px rgba(0, 2, 12, .45);
  }
  .m-menu { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center;
    font-size: 19px; line-height: 1; color: #dfe6ff; background: rgba(30, 40, 72, .6);
    border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .15s ease; }
  .m-menu:active { transform: scale(.92); background: rgba(91, 124, 255, .3); }
  .m-logo { width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--grad);
    display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
    color: #fff; overflow: hidden; box-shadow: 0 4px 12px rgba(91, 124, 255, .4); }
  .m-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .m-title { flex: 1; min-width: 0; line-height: 1.25; }
  .m-title b { display: block; font-size: 15px; color: #f0f3ff; letter-spacing: .5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-title em { font-style: normal; font-size: 10px; color: #8fa0dd; letter-spacing: 1.5px; }
  .m-bell { position: relative; flex: none; font-size: 20px; line-height: 1; padding: 8px 4px; cursor: pointer; }
  .m-bell-badge { position: absolute; top: 3px; right: -3px; min-width: 16px; padding: 0 4px;
    background: linear-gradient(135deg, #ff7373, #e03a3a); color: #fff; border-radius: 9px;
    font-size: 10px; line-height: 15px; text-align: center; font-weight: 700;
    box-shadow: 0 2px 8px rgba(224, 58, 58, .55); }

  /* ---- 遮罩 ---- */
  .m-mask { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(3, 5, 14, .55);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  body.drawer-open .m-mask { opacity: 1; pointer-events: auto; }

  /* ---- 主布局：给固定顶栏让位 ---- */
  .app { flex-direction: column; padding-top: calc(52px + env(safe-area-inset-top)); }

  /* ---- 侧栏 → 抽屉 ---- */
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 78vw; max-width: 300px; height: 100%;
    z-index: 60; transform: translateX(-102%); box-shadow: 8px 0 40px rgba(0, 2, 12, .6);
    padding-top: env(safe-area-inset-top);
    transition: transform .26s cubic-bezier(.32, .9, .4, 1); }
  body.drawer-open .sidebar { transform: none; }
  .brand { padding: 16px 16px 14px; }
  .nav { padding: 10px; gap: 4px; }
  .nav-item { padding: 12px 14px; font-size: 15px; }
  .nav-item:active { background: rgba(120, 140, 255, .2); }
  .nav-item.active::before { display: none; }
  .topbar-user { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); font-size: 13px; }

  /* ---- 内容区 ---- */
  .main { padding: 14px 12px calc(28px + env(safe-area-inset-bottom)); max-width: 100%; }
  h2.page-title { font-size: 17px; margin-bottom: 14px; }

  /* ---- 网格降列 ---- */
  .grid { gap: 10px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* 沉浸大图移动端兜底：触屏没有 hover，操作按钮常驻显示在浮层内 */
  .asset-thumb { height: 190px; }
  .thumb-ops { display: flex; margin-bottom: 6px; }
  .stat-num { font-size: 22px; }
  .card { padding: 13px; border-radius: 13px; }
  .card:hover { transform: none; }
  .asset-card:hover { transform: none; }

  /* ---- 触控目标：按钮 / 标签 ≥ 40px ---- */
  .btn { padding: 11px 16px; font-size: 14px; border-radius: 11px; min-height: 44px; }
  .btn:hover { transform: none; }
  .btn.small { padding: 8px 13px; font-size: 13px; min-height: 38px; }
  .btn.block { padding: 14px; min-height: 48px; letter-spacing: 3px; }
  .tab { padding: 9px 15px; font-size: 13px; min-height: 38px; }
  /* 分类/筛选标签行：窄屏改为横向滑动，不再折行挤压 */
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .asset-toolbar { align-items: stretch; }
  .asset-toolbar-btns { margin-left: 0; flex: 1 1 100%; }
  .asset-toolbar-btns .btn { flex: 1; }
  /* 标题行：窄屏标题与按钮允许换行，不再挤压 */
  .sec-head { flex-wrap: wrap; gap: 8px; }
  /* 沉浸卡片操作按钮：窄卡上一行横滑，避免浮层被撑高盖住画面 */
  .thumb-ops { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .thumb-ops::-webkit-scrollbar { display: none; }
  .tab:hover { transform: none; }
  .checks label { padding: 10px 14px; font-size: 14px; }

  /* ---- 表单：字号 ≥16px，避免 iOS 聚焦时自动放大页面 ---- */
  .form-row input, .form-row select, .form-row textarea { font-size: 16px; padding: 11px 12px; min-height: 44px; }
  .form-row textarea { min-height: 110px; }
  .form-row label { font-size: 13px; margin-bottom: 6px; }
  .pf-body { flex-direction: column; }
  .pf-body input { min-height: 44px; font-size: 16px; }

  /* ---- 表格：横向滚动 + 首列吸边 ---- */
  .tbl-wrap { -webkit-overflow-scrolling: touch; border-radius: 12px; }
  table { min-width: 560px; font-size: 13px; }
  th, td { padding: 10px 11px; }
  thead th:first-child, tbody td:first-child { position: sticky; left: 0; background: #131a33; z-index: 1; }
  thead th:first-child { background: #141c38; }
  tbody tr:hover td:first-child { background: #17203c; }

  /* ---- 弹窗 → 底部抽屉 ---- */
  .modal { align-items: flex-end; padding: 0; background: rgba(4, 6, 16, .74); }
  .modal-card { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    max-height: 88vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    animation: sheetIn .28s cubic-bezier(.32, .9, .4, 1) backwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
  .modal-card h3 { font-size: 16px; }
  .modal-ops { flex-direction: column-reverse; gap: 9px; margin-top: 16px; }
  .modal-ops .btn { width: 100%; }

  /* ---- Toast 躲开顶栏 ---- */
  .toast { top: calc(60px + env(safe-area-inset-top)); font-size: 13px; max-width: 88vw; text-align: center; }

  /* ---- 预览 / 链路 / 文件树 ---- */
  .viewer { padding: 12px; }
  .viewer-body, .viewer-body img, .viewer-body video { max-width: 96vw; }
  .flow { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .flow-node { min-width: 84px; }
  .ftree { max-height: 44vh; }
  .fnode { padding: 9px 8px; font-size: 14px; }

  /* ---- 登录页 ---- */
  .login-page { padding: 12px; }
  .login-card { padding: 30px 20px; border-radius: 18px; }
  .login-card input { font-size: 16px; padding: 13px 14px; min-height: 46px; }

  /* ---- 小屏关掉粒子画布（省电省内存） ---- */
  #bgfx { display: none; }
  .grain { opacity: .03; }
}

/* 超窄屏：统计卡改单列 */
@media (max-width: 400px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .stat-num { font-size: 20px; }
}

/* 平板 / 手机横屏：侧栏收窄，桌面布局不变 */
@media (min-width: 721px) and (max-width: 1024px) {
  .sidebar { width: 176px; }
  .main { padding: 20px 18px 34px; }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
}

/* 提醒一键跳转：定位高亮动画 */
.rev-flash { animation: revFlash 1.1s ease-in-out 3; outline: 2px solid var(--primary); }
@keyframes revFlash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 6px rgba(91, 124, 255, .3); } }

/* ===== 多平台发布选择器（登记发布：平台多选 + 逐平台账号/链接） ===== */
.form-row label input[type="checkbox"], .form-row label input[type="radio"] { width: auto !important; min-width: 0; height: auto; margin: 0 6px 0 0; vertical-align: -1px; accent-color: var(--primary); cursor: pointer; flex: none; }
.form-row label input[type="radio"] { width: 15px !important; height: 15px; }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.pf-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(8, 12, 26, .4); overflow: hidden; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.pf-item.on { border-color: rgba(91, 124, 255, .42); background: rgba(91, 124, 255, .08); box-shadow: inset 0 0 0 1px rgba(122, 148, 255, .12); }
.form-row .pf-head { display: flex !important; align-items: center; gap: 4px; margin: 0 !important; padding: 10px 12px; font-size: 13px !important; color: var(--text) !important; letter-spacing: 0 !important; cursor: pointer; user-select: none; }
.pf-head input[type="checkbox"] { width: 15px !important; height: 15px; flex: none; }
.pf-body { padding: 0 12px 11px; display: flex; gap: 8px; }
.pf-body input { flex: 1 1 50%; min-width: 0; }
@media (max-width: 620px) { .pf-body { flex-direction: column; } }

/* ===== 文件夹树（素材中心 / 脚本 / 成片库共用）：玻璃面板 + 资源管理器式节点 ===== */
.fbar { position: relative; overflow: hidden; padding: 12px 14px 10px; border-radius: 16px;
  background: linear-gradient(165deg, rgba(32, 43, 80, .74), rgba(13, 18, 38, .68));
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(148, 168, 255, .16);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .05); }
.fbar::before { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 155, 255, .55), transparent); }
.fbar-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.fbar-ico { width: 26px; height: 26px; flex: none; border-radius: 8px; font-size: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); box-shadow: 0 4px 14px rgba(91, 124, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .28); }
.fbar-head .ftitle { font-size: 13px; font-weight: 700; color: #eaf0ff; letter-spacing: .3px; }
.fbar-ops { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fmini { width: 26px; height: 26px; flex: none; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(10, 15, 32, .55); color: var(--sub);
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s var(--spring), box-shadow .18s ease; }
.fmini:hover { color: #fff; border-color: var(--primary); background: rgba(91, 124, 255, .24); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91, 124, 255, .28); }
.ftree { position: relative; max-height: 340px; overflow: auto; padding: 4px 2px; margin: 0 -2px; }
.fnode { position: relative; display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 10px; border-radius: 9px;
  cursor: pointer; font-size: 13px; color: #dbe3ff; user-select: none; line-height: 1.4;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
/* 层级连接线：按 --d（缩进层级）定位，视觉上串起父子关系 */
.fnode[style*="--d"]::before { content: ''; position: absolute; top: 0; bottom: 50%; width: 1px;
  left: calc(var(--d, 0) * 18px - 2px); background: rgba(148, 168, 255, .22); pointer-events: none; }
.fnode[style*="--d:0"]::before { display: none; }
.fnode:hover { background: rgba(124, 155, 255, .12); color: #fff; }
.fnode.sel { color: #fff; background: linear-gradient(90deg, rgba(91, 124, 255, .30), rgba(154, 107, 255, .14));
  box-shadow: inset 0 0 0 1px rgba(124, 155, 255, .40), 0 2px 12px rgba(91, 124, 255, .18); }
.fnode.sel::after { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.fnode.root { font-weight: 600; margin-bottom: 2px; }
.fnode .ftoggle { width: 15px; height: 15px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; color: var(--sub); font-size: 10px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.fnode .ftoggle:hover { background: rgba(124, 155, 255, .18); color: #fff; }
.fnode .ftoggle i { font-style: normal; display: inline-block; transition: transform .18s var(--spring); }
.fnode .ftoggle.op i { transform: rotate(90deg); }
.fnode .ftoggle.none i { opacity: .22; }
.fnode .ficon { flex: none; font-size: 14px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.fnode .fname { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fnode .fcount { flex: none; min-width: 22px; text-align: center; font-size: 11px; padding: 1px 6px; border-radius: 9px;
  color: #9fb0e8; background: rgba(124, 155, 255, .12); border: 1px solid rgba(148, 168, 255, .14); }
.fnode.sel .fcount { color: #fff; background: rgba(91, 124, 255, .38); border-color: rgba(160, 185, 255, .42); }
.fnode .fops { flex: none; display: none; gap: 5px; font-size: 12px; }
.fnode:hover .fops, .fnode.sel .fops { display: inline-flex; }
.fnode .fops a { width: 20px; height: 20px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  color: #b9c6ff; background: rgba(124, 155, 255, .14); transition: background .15s ease, color .15s ease, transform .15s ease; }
.fnode .fops a:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.fnode .fops a.danger { color: #ffb3b3; background: rgba(255, 122, 122, .14); }
.fnode .fops a.danger:hover { background: var(--danger); color: #3a0d0d; }
.fempty { margin: 6px 0; padding: 16px 12px; text-align: center; border-radius: 12px;
  border: 1px dashed rgba(148, 168, 255, .22); background: rgba(10, 15, 32, .35); }
.fempty .fe-ico { font-size: 22px; opacity: .9; margin-bottom: 4px; }
.fempty .fe-t { font-size: 13px; font-weight: 600; color: #dbe3ff; }
.fempty .fe-s { font-size: 12px; color: var(--sub); margin-top: 2px; }
.fcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed rgba(148, 168, 255, .16); font-size: 12px; color: var(--sub); }
.fcrumb .fc-lab { opacity: .75; }
.fcrumb .fsep { opacity: .4; }
.fcrumb a.crumb { cursor: pointer; color: #a9bcff; padding: 2px 7px; border-radius: 7px; transition: background .15s ease, color .15s ease; }
.fcrumb a.crumb:hover { background: rgba(91, 124, 255, .22); color: #fff; }
.fcrumb b { color: #eaf0ff; font-weight: 600; padding: 2px 8px; border-radius: 7px; background: rgba(91, 124, 255, .18); }
@media (max-width: 720px) {
  .fbar { padding: 10px 11px 8px; border-radius: 14px; }
  .ftree { max-height: 260px; }
  .fnode { min-height: 40px; font-size: 14px; }
  .fnode .fops { display: inline-flex !important; } /* 手机无 hover，操作按钮常显 */
  .fnode .fops a { width: 26px; height: 26px; }
  .fmini { width: 30px; height: 30px; }
}

/* ===== 手机访问弹窗：二维码 + 地址列表 ===== */
.qr-box { width: 208px; margin: 0 auto 14px; background: #fff; border-radius: 12px; padding: 10px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(70, 100, 255, .18); }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-urls { display: flex; flex-direction: column; gap: 8px; }
.qr-url { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; background: rgba(8, 12, 26, .45); }
.qr-url span { flex: 1; min-width: 0; font-size: 13px; word-break: break-all; color: #cdd9ff; }
.qr-tip { margin-top: 12px; font-size: 12px; color: var(--sub); line-height: 1.7; }
@media (max-width: 720px) {
  .qr-box { width: 176px; margin-bottom: 12px; padding: 8px; }
  .qr-url { padding: 10px; }
}

/* 手机端：抽屉是浮层，弹窗必须盖在它之上，否则抽屉开着时点开的弹窗看不见 */
@media (max-width: 720px) {
  #modal { z-index: 3000 !important; }
  #drawerMask, .drawer-mask { z-index: 1500 !important; }
}
/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
