*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden;background:#000;color:#fff;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
:root{--primary:#FE2C55;--gradient-start:#FE2C55;--gradient-end:#25F4EE}
#app{height:100%;position:relative;overflow:hidden}
.page{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;display:none}
.page.active{display:block}
.video-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none}
.video-feed::-webkit-scrollbar{display:none}
.video-card{height:100%;scroll-snap-align:start;position:relative;display:flex;align-items:center;justify-content:center;background:#111}
.video-card img.cover{width:100%;height:100%;object-fit:cover}
.video-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,transparent 30%,transparent 70%,rgba(0,0,0,.5) 100%)}
.play-btn{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:80px;height:80px;border-radius:50%;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;cursor:pointer}
.play-btn::after{content:'';border-left:24px solid #fff;border-top:16px solid transparent;border-bottom:16px solid transparent;margin-left:8px}
.video-info{position:absolute;left:16px;right:80px;bottom:80px;z-index:10}
.video-info .author{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.video-info .author img{width:36px;height:36px;border-radius:50%;border:2px solid #fff}
.video-info .author .name{font-size:16px;font-weight:600}
.video-info .author .follow-btn{background:var(--primary);color:#fff;border:none;padding:4px 12px;border-radius:4px;font-size:13px;cursor:pointer}
.video-info .title{font-size:14px;line-height:1.4;margin-bottom:4px}
.video-info .desc{font-size:13px;color:rgba(255,255,255,.8);line-height:1.4}
.actions{position:absolute;right:12px;bottom:100px;display:flex;flex-direction:column;align-items:center;gap:20px;z-index:10}
.action-btn{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}
.action-btn .icon{width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;font-size:24px}
.action-btn .count{font-size:12px;color:#fff}
.action-btn.liked .icon{color:var(--primary)}
.top-tabs{position:absolute;top:0;left:0;right:0;z-index:20;display:flex;justify-content:center;gap:24px;padding:12px 0;background:linear-gradient(180deg,rgba(0,0,0,.4),transparent)}
.top-tabs .tab{font-size:16px;color:rgba(255,255,255,.6);cursor:pointer;position:relative;padding:4px 0}
.top-tabs .tab.active{color:#fff;font-weight:600}
.top-tabs .tab.active::after{content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:20px;height:2px;background:#fff;border-radius:1px}
.lang-switch{position:absolute;top:12px;right:16px;z-index:20;background:rgba(0,0,0,.3);border-radius:16px;padding:4px;display:flex;gap:2px}
.lang-switch button{background:none;border:none;color:rgba(255,255,255,.6);font-size:12px;padding:4px 8px;border-radius:12px;cursor:pointer}
.lang-switch button.active{background:rgba(255,255,255,.2);color:#fff}
.bottom-nav{position:absolute;bottom:0;left:0;right:0;height:56px;background:#000;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-around;align-items:center;z-index:30}
.bottom-nav .nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;color:rgba(255,255,255,.6);font-size:10px}
.bottom-nav .nav-item.active{color:#fff}
.bottom-nav .nav-item .icon{font-size:22px}
.bottom-nav .nav-item.publish .icon{width:44px;height:30px;border-radius:8px;background:linear-gradient(90deg,var(--gradient-start),var(--gradient-end));display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px}
.comment-drawer{position:absolute;bottom:0;left:0;right:0;height:60%;background:#1a1a1a;border-radius:16px 16px 0 0;z-index:40;transform:translateY(100%);transition:transform .3s;display:flex;flex-direction:column}
.comment-drawer.open{transform:translateY(0)}
.comment-drawer .drawer-header{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;align-items:center}
.comment-drawer .drawer-close{cursor:pointer;font-size:20px;color:rgba(255,255,255,.6)}
.comment-list{flex:1;overflow-y:auto;padding:12px 16px;scrollbar-width:none;-ms-overflow-style:none}
.comment-list::-webkit-scrollbar{display:none}
.comment-item{display:flex;gap:8px;margin-bottom:16px}
.comment-item img{width:32px;height:32px;border-radius:50%}
.comment-item .c-body{flex:1}
.comment-item .c-name{font-size:13px;color:rgba(255,255,255,.6)}
.comment-item .c-text{font-size:14px;margin-top:2px}
.comment-item .c-time{font-size:12px;color:rgba(255,255,255,.4);margin-top:4px}
.comment-input{padding:12px 16px;border-top:1px solid rgba(255,255,255,.1);display:flex;gap:8px}
.comment-input input{flex:1;background:#333;border:none;border-radius:20px;padding:8px 16px;color:#fff;font-size:14px}
.comment-input button{background:var(--primary);color:#fff;border:none;border-radius:20px;padding:8px 16px;cursor:pointer}
.discover-page{height:100%;overflow-y:auto;padding-top:44px;padding-bottom:56px;scrollbar-width:none;-ms-overflow-style:none}
.discover-page::-webkit-scrollbar{display:none}
.discover-header{padding:12px 16px;display:flex;align-items:center;gap:12px}
.discover-header .search-box{flex:1;background:#222;border:none;border-radius:20px;padding:8px 16px;color:#fff;font-size:14px}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px 16px}
.cat-item{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}
.cat-item .cat-icon{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end));display:flex;align-items:center;justify-content:center;font-size:24px}
.cat-item .cat-name{font-size:12px;color:rgba(255,255,255,.8)}
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:8px 0}
.video-grid .vg-item{position:relative;aspect-ratio:9/16;cursor:pointer;overflow:hidden}
.video-grid .vg-item img{width:100%;height:100%;object-fit:cover}
.video-grid .vg-item .vg-info{position:absolute;bottom:0;left:0;right:0;padding:4px;background:linear-gradient(transparent,rgba(0,0,0,.7));font-size:12px}
.profile-page{height:100%;overflow-y:auto;padding-bottom:56px;scrollbar-width:none;-ms-overflow-style:none}
.profile-page::-webkit-scrollbar{display:none}
.profile-header{padding-top:60px;text-align:center}
.profile-header .avatar{width:80px;height:80px;border-radius:50%;margin:0 auto 8px;border:3px solid #fff}
.profile-header .nickname{font-size:20px;font-weight:600}
.profile-header .bio{font-size:13px;color:rgba(255,255,255,.6);margin-top:4px;padding:0 32px}
.profile-stats{display:flex;justify-content:center;gap:32px;margin:16px 0}
.profile-stats .stat{text-align:center}
.profile-stats .stat .num{font-size:18px;font-weight:600}
.profile-stats .stat .label{font-size:12px;color:rgba(255,255,255,.6)}
.profile-tabs{display:flex;border-bottom:1px solid rgba(255,255,255,.1)}
.profile-tabs .ptab{flex:1;text-align:center;padding:12px 0;font-size:14px;color:rgba(255,255,255,.6);cursor:pointer}
.profile-tabs .ptab.active{color:#fff;border-bottom:2px solid #fff}
.messages-page{height:100%;overflow-y:auto;padding-top:44px;padding-bottom:56px;scrollbar-width:none;-ms-overflow-style:none}
.messages-page::-webkit-scrollbar{display:none}
.msg-item{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.05);cursor:pointer}
.msg-item img{width:48px;height:48px;border-radius:50%}
.msg-item .m-body{flex:1}
.msg-item .m-name{font-size:15px}
.msg-item .m-preview{font-size:13px;color:rgba(255,255,255,.5);margin-top:2px}
.msg-item .m-time{font-size:12px;color:rgba(255,255,255,.4)}
.publish-page{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;padding-top:44px;padding-bottom:56px}
.publish-page .upload-area{width:200px;height:200px;border:2px dashed rgba(255,255,255,.3);border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.publish-page .upload-area .icon{font-size:48px}
.publish-page .upload-area .text{font-size:14px;color:rgba(255,255,255,.6)}
.modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);z-index:100;display:flex;align-items:center;justify-content:center}
.modal-content{background:#1a1a1a;border-radius:16px;padding:32px;width:320px;max-width:90vw}
.modal-content h2{text-align:center;margin-bottom:24px}
.modal-content .field{margin-bottom:16px}
.modal-content input{width:100%;background:#333;border:none;border-radius:8px;padding:12px 16px;color:#fff;font-size:15px}
.modal-content button{width:100%;background:var(--primary);color:#fff;border:none;border-radius:8px;padding:12px;font-size:16px;cursor:pointer;margin-top:8px}
.modal-content .switch{text-align:center;margin-top:16px;font-size:14px;color:rgba(255,255,255,.6);cursor:pointer}
.login-prompt{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:50}
.login-prompt p{margin-bottom:16px;color:rgba(255,255,255,.8)}
.login-prompt button{background:var(--primary);color:#fff;border:none;border-radius:8px;padding:12px 32px;font-size:16px;cursor:pointer}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:8px 16px}
.product-card{background:#1a1a1a;border-radius:8px;overflow:hidden;cursor:pointer}
.product-card img{width:100%;aspect-ratio:1;object-fit:cover}
.product-card .prod-info{padding:8px}
.product-card .prod-title{font-size:13px;line-height:1.3;margin-bottom:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card .prod-price{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.product-card .price-now{color:var(--primary);font-size:16px;font-weight:700}
.product-card .price-old{color:rgba(255,255,255,.3);font-size:12px;text-decoration:line-through}
.product-card .prod-sales{font-size:11px;color:rgba(255,255,255,.4)}
.cart-badge{position:absolute;top:-4px;right:-4px;background:var(--primary);color:#fff;font-size:10px;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.video-cart-icon{position:absolute;right:12px;bottom:200px;z-index:10;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px}
.video-cart-icon .icon{width:48px;height:48px;border-radius:50%;background:rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;font-size:24px}
.video-cart-icon .label{font-size:12px;color:#fff}