*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{background:#fff;color:#0f1419;font-family:-apple-system,system-ui,"PingFang SC","Segoe UI",Helvetica Neue,Arial;min-height:100%}
body{overflow-x:hidden;padding-bottom:46px;-webkit-user-select:none;user-select:none}

.top-bar{position:sticky;top:0;height:44px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;align-items:center;padding:0 6px;z-index:100;border-bottom:1px solid #eff3f4;padding-top:env(safe-area-inset-top)}
.tb-nav{flex:1;display:flex;align-items:center;gap:18px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 4px;height:100%}
.tb-nav::-webkit-scrollbar{display:none}
.tb-nav-item{color:#536471;font-size:16px;font-weight:600;white-space:nowrap;text-decoration:none;padding:4px 2px;position:relative;transition:color .15s;display:inline-flex;align-items:center;height:100%}
.tb-nav-item.active{color:#0f1419;font-weight:800}
.tb-nav-item.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:22px;height:3px;background:#fe2c55;border-radius:2px}
.tb-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:50%;transition:background .15s;flex-shrink:0}
.tb-icon:active{background:#e7e7e8}
.tb-icon .iconfont{font-size:19px;color:#0f1419}

.feed{max-width:600px;margin:0 auto;min-height:100vh;background:#fff}

/* 卡片：上下内边距压缩 */
.post{padding:8px 16px 4px;border-bottom:1px solid #eff3f4;position:relative;background:#fff}
.post-head{display:flex;align-items:center;gap:10px;margin-bottom:2px}
.post-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#cfd9de;cursor:pointer}
.post-meta{flex:1;min-width:0}
.post-author-line{font-size:14px;color:#0f1419;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.post-author-name{font-weight:700;cursor:pointer}
.post-author-name:hover{text-decoration:underline}
.post-author-name .verified{color:#fe2c55;font-size:13px;margin-left:2px}
.post-handle{color:#536471;font-weight:400;font-size:14px}
.post-time{color:#536471;font-weight:400;font-size:14px}
.post-more{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#536471;cursor:pointer;flex-shrink:0;font-size:17px;margin:-4px -8px 0 0}
.post-more:active{background:#e7e7e8}

/* 领VIP 按钮：小尺寸 + 低调黑色 */
.post-vip-btn{flex-shrink:0;font-size:10px;font-weight:600;color:#fff;background:#0f1419;padding:3px 8px;border-radius:8px;text-decoration:none;line-height:1.2;white-space:nowrap;display:inline-flex;align-items:center;opacity:.85;transition:opacity .15s;margin-left:4px}
.post-vip-btn:active{opacity:.6}

.post-body{padding-left:48px}
.post-title{font-size:15px;line-height:1.5;color:#0f1419;word-break:break-word;white-space:pre-wrap;margin-bottom:8px}
.post-title.collapsed{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}

.post-media{margin-top:6px;border-radius:16px;overflow:hidden;border:1px solid #cfd9de;position:relative;background:#e1e8ed;cursor:pointer}
.post-media-thumb{width:100%;aspect-ratio:16/9;position:relative;display:flex;align-items:center;justify-content:center;background:#cfd9de;overflow:hidden}
.post-media-thumb img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}

.post-media-thumb.locked-thumb img{filter:blur(3px);transform:scale(1.04)}
.post-media-thumb.locked-thumb::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,.12);z-index:1}

.login-tip-badge{position:absolute;bottom:10px;right:10px;background:rgba(0,0,0,.75);color:#fff;font-size:13px;font-weight:700;padding:2px 8px;border-radius:6px;z-index:2;font-family:-apple-system,system-ui,sans-serif;letter-spacing:.3px}

.post-media-play{width:44px;height:44px;background:rgba(0,0,0,.6);border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;z-index:2;transition:transform .15s;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.post-media-thumb:active .post-media-play{transform:scale(.92)}
.post-media-play::after{content:'';display:block;width:0;height:0;border-left:15px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:4px}

.post-media-duration{position:absolute;bottom:10px;left:10px;background:rgba(0,0,0,.75);color:#fff;font-size:13px;font-weight:700;padding:2px 8px;border-radius:6px;z-index:2;font-family:-apple-system,system-ui,sans-serif;letter-spacing:.3px}

.post-media-thumb .preview-end-tip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.75);color:#fff;font-size:12px;font-weight:600;padding:6px 16px;border-radius:14px;z-index:6;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);white-space:nowrap;letter-spacing:.3px;line-height:1.3}

.post-media-badge{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.7);color:#ffd43b;font-size:11px;font-weight:600;padding:3px 9px;border-radius:10px;z-index:4;border:1px solid rgba(255,212,59,.4);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);white-space:nowrap;line-height:1.2}

.unmute-tip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.72);color:#fff;font-size:13px;font-weight:700;padding:9px 18px;border-radius:22px;z-index:20;cursor:pointer;display:flex;align-items:center;gap:6px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:opacity .2s,transform .2s;animation:umPulse 1.6s ease-in-out infinite}
.unmute-tip:active{transform:translate(-50%,-50%) scale(.95)}
.unmute-tip.hide{opacity:0;pointer-events:none}
.unmute-tip::before{content:'🔊';font-size:14px;line-height:1}
@keyframes umPulse{0%,100%{box-shadow:0 4px 14px rgba(0,0,0,.35)}50%{box-shadow:0 4px 22px rgba(254,44,85,.55)}}

.post-player{display:none;width:100%;aspect-ratio:16/9;background:#000;position:relative;overflow:hidden}
.post-media.playing .post-media-thumb{display:none}
.post-media.playing .post-player{display:block}
.post-player .player-box{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.post-player .player-box video{width:100%;height:100%;object-fit:contain;background:#000;display:block}
.post-player .video-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:rgba(255,255,255,.3);z-index:30;cursor:pointer}
.post-player .video-progress i{display:block;height:100%;width:0%;background:#fe2c55;transition:width .1s linear;pointer-events:none}
.post-player .video-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:8;pointer-events:none;background:rgba(0,0,0,.25)}
.post-player .video-loading.hide{display:none}
.post-player .video-loading .spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.25);border-top-color:#fe2c55;border-radius:50%;animation:vspin .8s linear infinite}
@keyframes vspin{to{transform:rotate(360deg)}}

.post-player .fullscreen-btn{position:absolute;bottom:10px;right:10px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;z-index:35;background:transparent;padding:0;border:none;transition:transform .15s}
.post-player .fullscreen-btn:active{transform:scale(.9)}
.post-player .fullscreen-btn svg{width:22px;height:22px;display:block}
.post-player .fullscreen-btn svg polyline{stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;fill:none}

.post-player:fullscreen,
.post-player:-webkit-full-screen{width:100vw;height:100vh;aspect-ratio:auto;border-radius:0}
.post-player:fullscreen .player-box,
.post-player:-webkit-full-screen .player-box{width:100vw;height:100vh}
.post-player:fullscreen .fullscreen-btn,
.post-player:-webkit-full-screen .fullscreen-btn{bottom:20px;right:20px;width:36px;height:36px}
.post-player:fullscreen .fullscreen-btn svg,
.post-player:-webkit-full-screen .fullscreen-btn svg{width:26px;height:26px}

.post-actions{display:flex;align-items:center;justify-content:space-between;padding:8px 0 4px;max-width:100%}
.act{display:flex;align-items:center;gap:5px;background:transparent;border:none;color:#536471;font-size:13px;cursor:pointer;padding:6px 10px;border-radius:20px;font-family:inherit;font-weight:500;transition:all .15s}
.act .iconfont{font-size:20px;line-height:1}
.act .num{min-width:12px;text-align:left;font-variant-numeric:tabular-nums}
.act:active{background:rgba(254,44,85,.08)}
.act.comment-act:active,.act.like-act:active,.act.share-act:active{color:#fe2c55}
.act.like-act.liked{color:#fe2c55}
.act.like-act.liked .iconfont,.act.like-act.liked .num{color:#fe2c55}
.act.view-act{cursor:default}
.act.view-act:active{background:transparent}

/* 广告卡片样式（类名已中性化） */
.post.tj-card{background:#f7f9f9}
.tj-avatar{width:40px;height:40px;border-radius:50%;background:#fe2c55;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:12px;letter-spacing:.5px;flex-shrink:0}
.tj-author-line{font-size:15px;color:#0f1419;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tj-author-name{font-weight:600;color:#0f1419;line-height:1.4;word-break:break-word}
.tj-media{margin-top:8px;border-radius:16px;overflow:hidden;border:1px solid #cfd9de;position:relative;cursor:pointer;background:#e1e8ed}
.tj-media-img{width:100%;aspect-ratio:16/9;display:block;object-fit:cover}
.tj-label{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.75);color:#fff;font-size:11px;padding:3px 10px;border-radius:6px;font-weight:700;letter-spacing:.3px}

.loading-more{text-align:center;padding:20px 0;color:#536471;font-size:14px}
.loading-more .spinner-small{display:inline-block;width:22px;height:22px;border:2px solid #cfd9de;border-top-color:#fe2c55;border-radius:50%;animation:vspin .8s linear infinite;vertical-align:middle}
.end-tip{text-align:center;padding:32px 0;color:#536471;font-size:14px}

.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:43px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;z-index:100;border-top:1px solid #eff3f4;padding-bottom:env(safe-area-inset-bottom)}
.bn-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;font-size:14px;color:#536471;cursor:pointer;font-weight:600;text-decoration:none;transition:color .15s;padding:0;line-height:1}
.bn-item .iconfont{font-size:17px;line-height:1}
.bn-item.active{color:#fe2c55}
.bn-item.vip .vip-badge{display:flex;height:22px;padding:0 12px;border-radius:11px;background:linear-gradient(135deg,#fe2c55,#d91e48);color:#fff;align-items:center;justify-content:center;font-size:12px;font-weight:800;letter-spacing:1px;box-shadow:0 2px 8px rgba(254,44,85,.4)}

.mask{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;display:none;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.mask.open{display:flex}
.pop{width:100%;max-width:340px;background:#fff;color:#0f1419;border-radius:16px;padding:28px 22px;box-shadow:0 10px 40px rgba(0,0,0,.2);text-align:center}
.pop h4{font-size:20px;font-weight:800;margin-bottom:14px}
.pop p{font-size:15px;color:#536471;margin-bottom:20px;line-height:1.5}
.pop input{width:100%;padding:13px 14px;margin-bottom:12px;border:1px solid #cfd9de;background:#fff;border-radius:8px;font-size:15px;outline:none;color:#0f1419;font-family:inherit}
.pop input:focus{border-color:#fe2c55}
.pop-btns{display:flex;gap:10px;margin-top:8px}
.pop-btns button{flex:1;padding:12px 0;border:none;border-radius:24px;color:#fff;font-size:15px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .15s}
.pop-btns button:active{transform:scale(.97)}
.btn-blue{background:#fe2c55}
.btn-gray{background:#eff3f4;color:#0f1419}
.btn-close{width:100%;margin-top:12px;padding:11px 0;border:none;border-radius:24px;background:#eff3f4;color:#0f1419;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit}

.comment-mask{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200;display:none;align-items:flex-end;justify-content:center;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.comment-mask.open{display:flex}
.comment-panel{width:100%;max-width:600px;max-height:78vh;background:#fff;border-radius:20px 20px 0 0;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s ease}
.comment-mask.open .comment-panel{transform:translateY(0)}
.comment-handle{width:36px;height:4px;background:#cfd9de;border-radius:2px;margin:8px auto 0}
.comment-header{text-align:center;padding:12px 16px;font-size:16px;font-weight:700;color:#0f1419;position:relative;border-bottom:1px solid #eff3f4}
.comment-close{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:20px;color:#536471;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%}
.comment-close:active{background:#e7e7e8}
.comment-list{flex:1;overflow-y:auto;padding:0 16px;overscroll-behavior:contain}
.comment-item{display:flex;gap:10px;padding:14px 0;border-bottom:1px solid #eff3f4}
.comment-item:last-child{border-bottom:none}
.comment-avatar{width:40px;height:40px;border-radius:50%;background:#cfd9de;flex-shrink:0;object-fit:cover}
.comment-body{flex:1;min-width:0}
.c-user{font-size:14px;color:#0f1419;margin-bottom:4px;font-weight:700}
.c-text{font-size:15px;line-height:1.5;color:#0f1419;word-break:break-word}
.c-input-box{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #eff3f4;background:#fff;padding-bottom:calc(12px + env(safe-area-inset-bottom));align-items:center}
.c-input{flex:1;padding:10px 16px;background:#eff3f4;border:1px solid transparent;border-radius:22px;color:#0f1419;font-size:15px;outline:none;font-family:inherit}
.c-input:focus{border-color:#fe2c55;background:#fff}
.c-send{padding:0 18px;background:#fe2c55;border:none;border-radius:22px;color:#fff;font-size:15px;font-weight:700;cursor:pointer;height:40px;font-family:inherit}
.c-send:disabled{opacity:.5}

.t-toast-wrap{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:9999;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.t-toast{background:rgba(15,20,25,.92);color:#fff;padding:12px 22px;border-radius:12px;font-size:14px;margin-top:10px;animation:tToastIn .25s ease;max-width:78%;text-align:center;line-height:1.5;box-shadow:0 10px 30px rgba(0,0,0,.3);font-weight:500}
.t-toast.t-success{background:rgba(21,128,61,.96)}
.t-toast.t-error{background:rgba(220,38,38,.96)}
@keyframes tToastIn{from{opacity:0;transform:translateY(14px) scale(.92)}to{opacity:1;transform:translateY(0) scale(1)}}