*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:#eef4ff;color:#192338}
a{text-decoration:none;color:inherit}
button{border:none;cursor:pointer;font:inherit}
.app-bg{min-height:100vh;background:linear-gradient(180deg,#eef5ff 0%,#f8fbff 38%,#f5f7fb 100%)}
.container{max-width:430px;margin:auto;background:#fff;min-height:100vh;position:relative;overflow:visible;box-shadow:0 0 0 1px rgba(226,234,248,.6)}
.header-wrap{padding:18px 16px 8px;background:linear-gradient(180deg,#f3f8ff 0%,#ffffff 100%)}
.header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.logo{display:flex;align-items:center;gap:12px;min-width:0}
.logo-box{width:74px;height:74px;flex:0 0 74px;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center;padding:7px;box-shadow:0 12px 30px rgba(46,106,221,.16)}
.logo img{width:100%;height:100%;object-fit:contain;border-radius:16px;display:block}
.logo-texts{display:flex;flex-direction:column;min-width:0}
.brand-name{font-size:28px;line-height:1.1;color:#2380ff;font-weight:800;letter-spacing:-.4px}
.brand-sub{margin-top:6px;font-style:normal;font-size:12px;color:#7b8ba7;white-space:nowrap}
.user{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.92);padding:8px 10px;border-radius:18px;box-shadow:0 8px 20px rgba(0,0,0,.06);border:1px solid #edf2fa;cursor:pointer}
.user-info{display:flex;flex-direction:column;align-items:flex-end}
.user-info strong{font-size:13px;white-space:nowrap}
.user-info span{margin-top:3px;font-size:11px;color:#5e84cc;background:#eef4ff;border-radius:999px;padding:2px 8px}
.avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#3e8cff,#7dc1ff);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(62,140,255,.24)}
.hero-card{margin-top:16px;background:linear-gradient(135deg,#2f79ff 0%,#67acff 100%);border-radius:20px;padding:18px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 14px 30px rgba(47,121,255,.22);color:#fff}
.hero-title{font-size:18px;font-weight:800}.hero-desc{margin-top:6px;font-size:12px;opacity:.95;line-height:1.45}.mini-btn{padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);font-size:13px;font-weight:700}
.list-wrap{padding:14px 14px 0}
.folder{position:relative;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);margin:0 0 12px;border-radius:18px;padding:14px 14px;display:flex;align-items:center;box-shadow:0 10px 24px rgba(32,55,102,.06);border:1px solid #eaf0f8;cursor:pointer;transition:.18s ease;z-index:1}
.folder:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(32,55,102,.10);z-index:8}
.folder-art{width:54px;height:46px;flex:0 0 54px;display:block;margin-right:12px}
.folder-content{flex:1;min-width:0}
.folder-name{font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{font-size:12px;color:#8290aa;margin-top:6px}
.folder-enter{font-size:28px;color:#9fb0c7;margin-left:8px;line-height:1}
.folder-preview{position:absolute;left:50%;bottom:calc(100% + 12px);width:292px;padding:10px;border-radius:18px;background:#fff;border:1px solid #e7eff9;box-shadow:0 18px 42px rgba(21,43,82,.18);opacity:0;visibility:hidden;transform:translate(-50%,8px) scale(.98);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;pointer-events:none;z-index:50}
.folder-preview::after{content:"";position:absolute;left:50%;bottom:-8px;width:16px;height:16px;background:#fff;border-right:1px solid #e7eff9;border-bottom:1px solid #e7eff9;transform:translateX(-50%) rotate(45deg)}
.preview-title{font-size:12px;color:#6d7d98;font-weight:700;margin:2px 2px 8px}
.folder-preview img{width:100%;height:176px;display:block;object-fit:cover;border-radius:13px;background:#eef4ff}
.folder:hover .folder-preview{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.bottom-space{height:86px}
.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:430px;display:flex;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(255,255,255,0) 0%,#fff 35%);z-index:20}
.bottom button{flex:1;padding:14px 10px;border-radius:16px;color:#fff;font-weight:700;font-size:15px}
.btn1{background:#7fb2ff;color:#fff;box-shadow:0 10px 20px rgba(108,160,255,.20)}
.btn2{background:linear-gradient(135deg,#2e78ff,#58a3ff);box-shadow:0 10px 20px rgba(46,120,255,.26)}
.inner-top{display:flex;justify-content:space-between;align-items:center;padding:16px}
.back-link{color:#2f79ff;font-weight:700}.inner-name{font-size:18px;font-weight:800;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.folder-detail{margin:10px 16px 0;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border:1px solid #e9eff8;border-radius:24px;box-shadow:0 12px 26px rgba(36,61,115,.08);padding:26px 18px;text-align:center}
.folder-detail-art{width:96px;height:auto;display:block;margin:0 auto 16px}
.detail-title{font-size:24px;font-weight:800}.detail-meta{margin-top:10px;font-size:13px;color:#7c8aa5}.detail-empty{margin-top:22px;padding:18px;border-radius:16px;background:#f5f9ff;color:#6f7e99;line-height:1.7;font-size:14px}
.detail-preview-img{width:100%;max-height:220px;object-fit:cover;display:block;border-radius:18px;margin:18px 0 0;border:1px solid #e7eff9;box-shadow:0 10px 24px rgba(31,60,110,.08)}
@media (max-width:370px){.logo-box{width:66px;height:66px}.brand-name{font-size:24px}.avatar{width:38px;height:38px}.user{padding:8px}.folder-name{font-size:16px}.folder-preview{width:260px}.folder-preview img{height:158px}}
@media (hover:none){.folder-preview{display:none}}

/* 弹窗名称字体小 */
.modal .folder-name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

/* 弹窗预览图片居中 */
.modal-content img {
    display: block;
    margin: 0 auto 12px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 弹窗居中修正：防止旧样式缓存影响 */
.modal.show{display:flex!important;align-items:center!important;justify-content:center!important}
.modal-content{margin:0!important}
.modal .folder-name{font-size:12px!important}
