*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif;background:#050817;color:#eef4ff;min-height:100vh}.bg:before,.bg:after{content:'';position:fixed;border-radius:999px;filter:blur(76px);opacity:.46;pointer-events:none}.bg:before{width:520px;height:520px;background:#6d5dfc;right:-180px;top:-180px}.bg:after{width:440px;height:440px;background:#09b6ff;left:-170px;bottom:-170px}.top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:26px clamp(18px,4vw,46px)}.brand{display:flex;gap:18px;align-items:center}.logo,.brand-mark{width:72px;height:72px;border-radius:24px;background:linear-gradient(135deg,#46a1ff,#9b5cff);display:grid;place-items:center;font-size:34px;font-weight:900;box-shadow:0 20px 50px rgba(100,95,255,.35)}h1{font-size:34px;margin:0 0 8px}.brand p,.login-card p{margin:0;color:#aac0e6}.logout,.actions a,.actions button,.toolbar button,.upload-btn,.unsupported a{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.10);color:#fff;text-decoration:none;padding:12px 20px;border-radius:16px;font-weight:800;cursor:pointer}.wrap{position:relative;z-index:1;padding:0 clamp(18px,4vw,46px) 50px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stats div{padding:22px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));backdrop-filter:blur(18px);border-radius:24px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.stats b{display:block;font-size:30px;line-height:1.1}.stats span{color:#9eb4d9}.panel{border:1px solid rgba(148,174,255,.22);background:linear-gradient(135deg,rgba(11,22,45,.86),rgba(16,18,52,.84));backdrop-filter:blur(22px);border-radius:30px;padding:24px;box-shadow:0 30px 100px rgba(0,0,0,.32)}.panel.dragover{outline:2px solid rgba(105,151,255,.75);box-shadow:0 0 0 8px rgba(105,151,255,.12),0 30px 100px rgba(0,0,0,.32)}.toolbar{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center}.upload-btn{background:linear-gradient(135deg,#448dff,#8b5cf6);border:none;font-size:18px;box-shadow:0 14px 34px rgba(86,110,255,.32)}.clear-all{background:rgba(255,76,96,.16)!important;border-color:rgba(255,125,140,.32)!important;color:#ffd8dd!important}.clear-all:hover{background:rgba(255,76,96,.26)!important}.clear-all:disabled{opacity:.65;cursor:not-allowed}.toolbar input{height:62px;border-radius:20px;border:1px solid rgba(137,166,223,.32);background:#071226;color:#fff;padding:0 24px;font-size:17px;outline:none}.progress-box{margin:16px 0;padding:16px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10)}.hidden{display:none}.progress-meta{display:flex;justify-content:space-between;color:#dbe7ff;margin-bottom:10px}.progress-sub{margin-top:10px;color:#91a7cc;font-size:13px}.progress{height:12px;border-radius:999px;background:rgba(255,255,255,.12);overflow:hidden}.progress i{display:block;width:0%;height:100%;background:linear-gradient(90deg,#40c9ff,#8b5cf6);transition:.16s}.chips{display:flex;gap:10px;overflow:auto;padding:18px 0 22px}.chips button{white-space:nowrap;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.08);color:#c9d7ef;padding:10px 16px;border-radius:999px;cursor:pointer}.chips button.active{background:#fff;color:#111827}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;align-items:stretch}.card{overflow:hidden;border:1px solid rgba(255,255,255,.14);background:#121a2c;border-radius:26px;transition:transform .22s, box-shadow .22s, border-color .22s;box-shadow:0 10px 28px rgba(0,0,0,.16)}.card:hover{transform:translateY(-4px);box-shadow:0 22px 62px rgba(0,0,0,.30);border-color:rgba(151,171,255,.34)}.thumb{height:auto;aspect-ratio:16/10;background:#081127;display:grid;place-items:center;color:#c4d1f0;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.file-badge{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:9px;background:linear-gradient(135deg,#243554,#4f3b93);text-align:center}.file-badge strong{font-size:42px;letter-spacing:.05em}.file-badge small{font-size:14px;color:#d5def8}.video-badge{background:linear-gradient(135deg,#193957,#623d8d)}.video-badge span{width:68px;height:68px;border-radius:999px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:28px}.thumb.text .file-badge{background:linear-gradient(135deg,#12325e,#1f5a8b)}.thumb.pdf .file-badge{background:linear-gradient(135deg,#57202a,#9a2948)}.thumb.document .file-badge{background:linear-gradient(135deg,#342050,#6753aa)}.info{padding:18px;background:linear-gradient(180deg,#273145,#20283a);border-top:1px solid rgba(255,255,255,.08)}.info h3{margin:0 0 10px;font-size:19px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f3f7ff}.info p{margin:0 0 16px;color:#b7c5df}.actions{display:flex;gap:10px}.actions>*{flex:1;text-align:center;padding:11px 10px;border-radius:15px;background:rgba(255,255,255,.10)}.actions>*:hover{background:rgba(255,255,255,.16)}.danger{color:#ffd1d1}.empty{text-align:center;color:#9fb0d1;padding:50px}.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.74);backdrop-filter:blur(10px);z-index:9;padding:4vw}.modal.show{display:flex;align-items:center;justify-content:center}.modal-box{position:relative;width:min(1220px,96vw);height:88vh;background:#fff;color:#111;border-radius:24px;overflow:hidden;box-shadow:0 40px 120px rgba(0,0,0,.55)}.close{position:absolute;right:16px;top:14px;z-index:2;width:42px;height:42px;border:0;border-radius:99px;background:#111;color:#fff;font-size:25px}.pv,.pv iframe,.pv video{width:100%;height:100%}.pv img{display:block;max-width:100%;max-height:100%;margin:auto}.pv iframe{border:0}.pv pre{height:100%;margin:0;padding:30px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:16px;line-height:1.75;background:#fbfbfd;color:#111}.unsupported{display:grid;place-items:center;align-content:center;height:100%;gap:18px;text-align:center;padding:28px}.unsupported a{background:#111}.hint{position:absolute;bottom:12px;left:24px;color:#fff;background:rgba(0,0,0,.45);padding:8px 12px;border-radius:12px}.login-body{display:grid;place-items:center;overflow:hidden}.login-shell{position:relative;width:min(92vw,560px)}.orb{position:absolute;border-radius:999px;filter:blur(50px);opacity:.7}.orb1{width:220px;height:220px;background:#694cff;right:-80px;top:-80px}.orb2{width:180px;height:180px;background:#00b7ff;left:-90px;bottom:-70px}.login-card{position:relative;padding:44px;border:1px solid rgba(255,255,255,.16);background:rgba(19,29,51,.78);backdrop-filter:blur(26px);border-radius:32px;box-shadow:0 40px 120px rgba(0,0,0,.42)}.login-card h1{margin-top:24px}.login-card input{width:100%;height:66px;border-radius:20px;border:1px solid rgba(148,174,255,.3);background:#071226;color:#fff;padding:0 22px;font-size:24px;margin:24px 0 16px;outline:none}.login-card button{width:100%;height:60px;border:0;border-radius:20px;color:#fff;font-size:20px;font-weight:900;background:linear-gradient(135deg,#448dff,#8b5cf6)}.err{margin-top:14px;background:rgba(255,85,85,.14);border:1px solid rgba(255,130,130,.3);color:#ffd1d1;padding:12px;border-radius:14px}.login-note{margin-top:24px;color:#9fb0d1}.brand-mark{width:90px;height:90px}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.top{align-items:flex-start;padding-top:22px}.brand{gap:12px}.logo{width:56px;height:56px;border-radius:18px;font-size:26px}h1{font-size:26px}.brand p{font-size:13px}.logout{padding:10px 14px}.toolbar{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.panel{padding:16px;border-radius:24px}.grid{grid-template-columns:1fr;gap:16px}.thumb{aspect-ratio:16/11}.modal{padding:0}.modal-box{height:100vh;width:100vw;border-radius:0}.login-card{padding:30px}.brand-mark{width:76px;height:76px}}

/* v2.3 card click preview */
.thumb{cursor:pointer;position:relative}.thumb:after{content:"点击预览";position:absolute;right:12px;top:12px;padding:7px 11px;border-radius:999px;background:rgba(5,8,23,.72);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:800;opacity:0;transform:translateY(-4px);transition:.18s;backdrop-filter:blur(10px)}.card:hover .thumb:after,.thumb:focus:after{opacity:1;transform:translateY(0)}.actions{grid-template-columns:repeat(2,1fr)}.actions a,.actions button{min-height:48px}.file-badge small{opacity:.88}@media(max-width:720px){.thumb:after{opacity:1;transform:none;font-size:11px}}


/* v2.4 preview fit + cleaner modal */
.modal-box{background:#050817;color:#eef4ff;border:1px solid rgba(255,255,255,.12)}
.pv{background:#050817;color:#eef4ff}
.pv-image{height:100%;display:flex;align-items:center;justify-content:center;padding:22px;background:radial-gradient(circle at 50% 20%,rgba(110,92,255,.15),transparent 42%),#050817}
.pv-image img{display:block;width:auto!important;height:auto!important;max-width:96%;max-height:92%;object-fit:contain;border-radius:18px;box-shadow:0 22px 80px rgba(0,0,0,.45);background:#fff}
.pv-video{height:100%;display:flex;align-items:center;justify-content:center;padding:18px;background:#020617}
.pv-video video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:18px;background:#000}
@media(max-width:720px){.pv-image{padding:10px}.pv-image img{max-width:100%;max-height:90%;border-radius:12px}.pv-video{padding:8px}.pv-video video{border-radius:12px}}

/* v2.5 final preview + video cover */
.modal{padding:clamp(10px,2.4vw,30px)!important;background:rgba(0,0,0,.78)!important;backdrop-filter:blur(14px)!important;}
.modal.show{display:flex!important;align-items:center!important;justify-content:center!important;}
.modal-box{width:min(1280px,96vw)!important;height:min(900px,92vh)!important;background:#050817!important;color:#eef4ff!important;border:1px solid rgba(148,174,255,.22)!important;border-radius:28px!important;overflow:hidden!important;box-shadow:0 36px 120px rgba(0,0,0,.65)!important;}
.close{background:rgba(10,15,31,.88)!important;border:1px solid rgba(255,255,255,.18)!important;color:#fff!important;backdrop-filter:blur(12px)!important;}
.pv{width:100%!important;height:100%!important;background:#050817!important;color:#eef4ff!important;}
.pv-image,.pv-video{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;background:#050817!important;overflow:hidden!important;}
.pv-image img{display:block!important;width:auto!important;height:auto!important;max-width:calc(100vw - 80px)!important;max-height:calc(100vh - 120px)!important;object-fit:contain!important;border-radius:18px!important;background:#fff!important;}
.pv-video video{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;background:#000!important;border-radius:18px!important;}
.video-cover{width:100%;height:100%;object-fit:cover;display:block;}
.play-layer{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(180deg,rgba(4,9,24,.05),rgba(4,9,24,.28));pointer-events:none;}
.play-layer span{width:72px;height:72px;border-radius:999px;display:grid;place-items:center;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(10px);font-size:30px;color:#fff;box-shadow:0 16px 50px rgba(0,0,0,.28);}
.card{transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease}.card:hover{transform:translateY(-4px);border-color:rgba(135,160,255,.42);box-shadow:0 22px 70px rgba(0,0,0,.28)}
.thumb img{object-fit:cover;object-position:center;}
.thumb:after{content:'点击预览';opacity:0}.card:hover .thumb:after{opacity:1}
@media(max-width:720px){.modal{padding:0!important}.modal-box{width:100vw!important;height:100vh!important;border-radius:0!important}.pv-image img{max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 90px)!important;border-radius:12px!important}.pv-video video{max-width:100%!important;max-height:calc(100vh - 80px)!important;border-radius:12px!important}.play-layer span{width:58px;height:58px;font-size:24px}.thumb:after{opacity:1}}

/* v2.6 professional preview sizing */
.modal{padding:clamp(12px,2vw,28px)!important;background:rgba(0,0,0,.82)!important;backdrop-filter:blur(16px)!important;}
.modal-box{width:min(1480px,96vw)!important;height:min(920px,92vh)!important;background:linear-gradient(180deg,#050817,#071026)!important;border:1px solid rgba(148,174,255,.22)!important;border-radius:28px!important;overflow:hidden!important;}
#previewPane{width:100%;height:100%;}
.pv{width:100%!important;height:100%!important;}
.pv-image,.pv-video{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:radial-gradient(circle at 50% 10%,rgba(99,102,241,.18),transparent 38%),#020617!important;padding:clamp(14px,2vw,28px)!important;}
.pv-image img{display:block!important;width:auto!important;height:auto!important;max-width:min(92vw,1320px)!important;max-height:calc(92vh - 72px)!important;object-fit:contain!important;border-radius:18px!important;background:#fff!important;box-shadow:0 26px 90px rgba(0,0,0,.55)!important;}
.pv-video video{display:block!important;width:min(92vw,1280px)!important;height:auto!important;max-height:calc(92vh - 86px)!important;aspect-ratio:16/9!important;object-fit:contain!important;background:#000!important;border-radius:18px!important;box-shadow:0 26px 90px rgba(0,0,0,.55)!important;}
.video-stage{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(14px,2vw,28px)!important;background:#020617!important;}
.image-stage{width:100%!important;height:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:clamp(14px,2vw,28px)!important;background:#020617!important;}
.close{right:18px!important;top:18px!important;width:50px!important;height:50px!important;border-radius:50%!important;background:rgba(15,23,42,.86)!important;border:1px solid rgba(255,255,255,.2)!important;}
@media(max-width:720px){.modal{padding:0!important}.modal-box{width:100vw!important;height:100vh!important;border-radius:0!important}.pv-image,.pv-video,.video-stage,.image-stage{padding:10px!important}.pv-image img{max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 84px)!important}.pv-video video{width:calc(100vw - 20px)!important;max-height:calc(100vh - 84px)!important;border-radius:12px!important}}
