/* UGOOE 社区 v5 — 大字体圆润风格 */
:root {
  --bg: #14151a;
  --card: #1c1d22;
  --card-hover: #22232a;
  --border: rgba(255,255,255,.06);
  --border-light: rgba(255,255,255,.03);
  --text: #ececf2;
  --text2: #9ca3af;
  --text3: #7f7f8e;
  --green: #01c2c3;
  --green-dim: rgba(1,194,195,.12);
  --red: #ef4444;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
}
*{margin:0;padding:0;box-sizing:border-box}
body{
  background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,PingFang SC,'Inter',system-ui,sans-serif;
  padding-top:56px;padding-bottom:72px;
  -webkit-font-smoothing:antialiased;
  
}

/* ===== 顶部导航 ===== */
.top-bar{
  position:fixed;top:0;left:0;right:0;z-index:100;
  min-height:46px;
  background:rgba(20,21,26,.96);backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 12px;border-bottom:1px solid rgba(255,255,255,.05);
  gap:8px;
}
.top-bar .logo{
  font-size:16px;font-weight:700;color:var(--green);
  text-decoration:none;letter-spacing:-.3px;flex-shrink:0;
  white-space:nowrap;
}
.top-bar .logo span{color:var(--text);font-weight:300}

/* 中间搜索框 */
.top-search{flex:1;min-width:0;padding:0 4px}
.top-search .search-bar{
  display:flex;align-items:center;
  background:rgba(255,255,255,.06);
  border-radius:20px;padding:0 12px;height:32px;
  border:1px solid transparent;transition:all .2s;
  max-width:320px;margin:0 auto;
}
.top-search .search-bar:focus-within{
  border-color:var(--green-dim);
  background:rgba(255,255,255,.08);
  max-width:400px;
}
.top-search .search-icon{color:var(--text3);flex-shrink:0;margin-right:6px}
.top-search .search-bar input{
  background:none;border:none;outline:none;color:var(--text);
  font-size:13px;width:100%;font-family:inherit;
}
.top-search .search-bar input::placeholder{color:var(--text3);font-size:12px}

/* 右侧按钮 */
.top-right{display:flex;gap:4px;align-items:center;flex-shrink:0}
.top-right button{
  width:32px;height:32px;border-radius:50%;
  background:rgba(255,255,255,.04);border:none;
  color:var(--text2);font-size:15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all .2s;position:relative;
}
.top-right button:hover{background:rgba(255,255,255,.08);color:var(--text)}
.top-right .top-pub{
  width:auto;border-radius:18px;padding:0 12px;gap:4px;
  font-size:12px;font-weight:500;background:var(--green-dim);color:var(--green);
}
.top-right .top-pub:hover{background:rgba(1,194,195,.2);color:var(--green)}
.badge-dot-top{
  position:absolute;top:4px;right:4px;width:8px;height:8px;
  background:var(--red);border-radius:50%;border:2px solid var(--bg);
}

/* ===== 瀑布流容器 ===== */
.feed-wrap{max-width:960px;margin:0 auto;padding:8px 4px 8px}
.feed{column-count:2;column-gap:6px;padding:4px 0 8px}
@media(min-width:600px){.feed{column-count:3}}
@media(min-width:900px){.feed{column-count:4}}

/* ===== 帖子卡片 ===== */
.feed-item{
  break-inside:avoid;margin-bottom:6px;
  border-radius:var(--radius-md);overflow:hidden;cursor:pointer;
  background:var(--card);
  box-shadow:0 1px 3px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08);
  transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .25s;
  animation:cardIn .35s ease-out both;position:relative;
}
.feed-item:hover{transform:translateY(-2px);box-shadow:0 4px 16px rgba(0,0,0,.2)}
.feed-item:active{transform:scale(.97)}
.feed-item .img-wrap{
  width:100%;overflow:hidden;position:relative;background:var(--border);
  min-height:140px;border-radius:var(--radius-md) var(--radius-md) 0 0;
}
.feed-item .img-wrap img{width:100%;display:block;transition:transform .3s}
.feed-item:hover .img-wrap img{transform:scale(1.02)}
.feed-item .tag,
.feed-item .cat-tag{
  position:absolute;top:6px;left:6px;
  font-size:10px;font-weight:600;color:var(--green);
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  padding:2px 10px;border-radius:8px;z-index:2;
}
.feed-item .like-overlay{
  position:absolute;bottom:8px;right:8px;
  width:30px;height:30px;border-radius:50%;
  background:rgba(0,0,0,.55);backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;font-size:14px;opacity:0;transition:.15s;z-index:2;
}
.feed-item .img-wrap:hover .like-overlay{opacity:1}
.feed-item .info{padding:10px 12px 12px}
.feed-item .title{
  font-size:13px;font-weight:400;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  color:var(--text);
}
.feed-item .meta{
  display:flex;align-items:center;gap:6px;margin-top:8px;
  font-size:11px;color:var(--text3);
}
/* 卡片底部操作栏 */
.card-actions{
  display:flex;align-items:center;gap:0;margin-top:8px;
  padding-top:6px;border-top:1px solid rgba(255,255,255,.04);
}
.card-action{
  display:flex;align-items:center;gap:3px;
  font-size:10px;color:var(--text3);cursor:pointer;
  padding:4px 6px;border-radius:6px;
  transition:all .15s;user-select:none;
}
.card-action.like-btn,.card-action[onclick*="openD"],.card-action[onclick*="sharePost"]{
  flex:1;justify-content:center;
}
.card-action:hover{background:rgba(255,255,255,.04);color:var(--text2)}
.card-action.like-btn.liked{color:var(--red)}
/* 「我要制作」按钮 — 绿色填充、大字 */
.card-action.make-btn{
  color:#000;font-weight:700;font-size:12px;
  background:var(--green);padding:3px 12px;border-radius:14px;
  white-space:nowrap;
}
.card-action.make-btn svg{stroke:#000;stroke-width:2.5;width:13px;height:13px}
.card-action.make-btn:hover{background:#2ed0d1}
.feed-item .avatar{
  width:18px;height:18px;border-radius:50%;
  background:var(--green-dim);
  color:var(--green);display:flex;align-items:center;justify-content:center;
  font-size:8px;font-weight:700;flex-shrink:0;
}
.feed-item .uname{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.feed-item .meta .likes{display:flex;align-items:center;gap:3px;font-size:11px}
.feed-item .meta .heart.liked{color:var(--red)}
@keyframes cardIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ===== 分类药丸 ===== */
.cat-pills{
  position:sticky;top:0;left:0;right:0;z-index:99;
  padding:6px 12px;display:flex;gap:6px;overflow-x:auto;
  background:rgba(20,21,26,.96);backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.05);
  scrollbar-width:none;-ms-overflow-style:none;
}
.cat-pills::-webkit-scrollbar{display:none}
.cat-pill{
  padding:5px 14px;border-radius:14px;font-size:11px;font-weight:500;
  background:rgba(255,255,255,.04);color:var(--text3);
  border:1px solid transparent;white-space:nowrap;cursor:pointer;
  transition:all .2s;flex-shrink:0;
}
.cat-pill:hover{border-color:rgba(1,194,195,.2);color:var(--text2)}
.cat-pill.active{background:var(--green-dim);color:var(--green);border-color:rgba(1,194,195,.25)}

/* 排序标签 */
.sort-tabs{display:flex;gap:2px;flex-shrink:0}
.sort-tab{
  font-size:10px;padding:2px 8px;border-radius:8px;
  color:var(--text3);cursor:pointer;transition:all .2s;
  white-space:nowrap;
}
.sort-tab:hover{color:var(--text2);background:rgba(255,255,255,.04)}
.sort-tab.active{color:var(--green);background:var(--green-dim);font-weight:500}

/* ===== 统计条 ===== */
.stats-bar{
  display:flex;align-items:center;justify-content:space-between;
  padding:5px 14px;
  background:rgba(20,21,26,.95);
  font-size:11px;color:#9ca3af;
  border-bottom:1px solid rgba(255,255,255,.05);
}

/* ===== 骨架屏 ===== */
.skel-grid{max-width:960px;margin:0 auto;padding:12px 4px 40px;column-count:2;column-gap:6px}
.skel-item{break-inside:avoid;margin-bottom:6px;border-radius:var(--radius-md);overflow:hidden;background:var(--card)}
.skel-img{width:100%;aspect-ratio:3/4;background:linear-gradient(135deg,var(--border) 0%,rgba(255,255,255,.02) 50%,var(--border) 100%);background-size:300% 300%;animation:shimmer 2s ease infinite}
.skel-line{height:10px;border-radius:5px;margin:8px 10px;background:linear-gradient(90deg,var(--border) 0%,rgba(255,255,255,.02) 50%,var(--border) 100%);background-size:200% 100%;animation:shimmer 2s ease infinite}
.skel-line:nth-child(2){width:70%}
@keyframes shimmer{0%{background-position:0% 0%}50%{background-position:100% 100%}100%{background-position:0% 0%}}

/* ===== 空状态 ===== */
.empty-state{text-align:center;padding:80px 20px;color:var(--text3)}
.empty-state .icon{font-size:48px;margin-bottom:12px;opacity:.3}
.empty-state h3{font-size:16px;font-weight:500;color:var(--text2);margin-bottom:6px}
.empty-state p{font-size:13px}
.load-more{text-align:center;padding:16px;font-size:12px;color:var(--text3)}
.load-more .spinner{display:inline-block;width:22px;height:22px;border:2.5px solid var(--border);border-top-color:var(--green);border-radius:50%;animation:spin .6s linear infinite;vertical-align:middle;margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== 底部导航 ===== */
.bottom-bar{
  position:fixed;bottom:0;left:0;right:0;z-index:100;
  height:56px;padding-bottom:env(safe-area-inset-bottom,0);
  background:rgba(20,21,26,.97);backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-top:1px solid rgba(255,255,255,.05);
  display:flex;align-items:center;justify-content:space-around;
}
.bottom-bar a,.bottom-bar button{
  display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:10px;color:var(--text3);text-decoration:none;
  background:none;border:none;cursor:pointer;padding:4px 8px;
  min-width:54px;transition:color .2s;position:relative;
}
.bottom-bar svg{display:block;margin:0 auto;transition:transform .2s}
.bottom-bar a:active svg,.bottom-bar button:active svg{transform:scale(.9)}
.bottom-bar a.active{color:var(--green)}
.bottom-bar a.active svg{stroke:var(--green)}
.bottom-bar .center-btn{
  width:46px;height:46px;border-radius:50%;
  background:var(--green);margin-top:0;
  box-shadow:0 4px 18px rgba(1,194,195,.4);
  transition:transform .2s,box-shadow .2s;
  display:flex;align-items:center;justify-content:center;
  animation:pulseGlow 2s ease-in-out infinite;
}
.bottom-bar .center-btn:active{transform:scale(.92)}
.bottom-bar .center-btn svg{stroke:#000}
@keyframes pulseGlow{
  0%,100%{box-shadow:0 4px 18px rgba(1,194,195,.4)}
  50%{box-shadow:0 4px 30px rgba(1,194,195,.7)}
}
.badge-dot{
  position:absolute;top:0;right:10px;width:8px;height:8px;
  background:var(--red);border-radius:50%;border:2px solid var(--bg);
}
.bottom-bar a.active::after{
  content:'';position:absolute;top:-1px;left:35%;right:35%;
  height:2.5px;border-radius:2px;background:var(--green);
}
.bottom-bar a{position:relative}

/* ===== 详情弹窗 ===== */
.detail-overlay{
  display:none;position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.7);overflow-y:auto;
}
.detail-overlay.show{display:block;animation:fadeIn .2s}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.detail-wrap{max-width:680px;margin:0 auto;min-height:80vh;display:flex;align-items:flex-end;padding-top:48px}
.detail-card{
  background:var(--card);border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  overflow:hidden;width:100%;max-height:85vh;overflow-y:auto;
  animation:slideUp .35s cubic-bezier(.16,1,.3,1);
  box-shadow:0 -4px 40px rgba(0,0,0,.3);
}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.detail-close{
  position:fixed;top:56px;right:16px;z-index:201;
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.55);backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;font-size:15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.detail-close:hover{background:rgba(0,0,0,.7)}
.detail-images{width:100%}
.detail-images img{width:100%;display:block;max-height:50vh;object-fit:contain;background:rgba(0,0,0,.3)}
.detail-body{padding:18px 18px 0}
.detail-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.detail-header .d-avatar{
  width:28px;height:28px;border-radius:50%;
  background:linear-gradient(135deg,var(--green-dim),transparent);
  color:var(--green);display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;flex-shrink:0;
  cursor:pointer;
}
.detail-header .d-name{font-size:14px;font-weight:500;color:var(--text)}
.detail-header .d-time{font-size:11px;color:var(--text3);margin-left:auto}
.detail-title{font-size:17px;font-weight:700;line-height:1.4;margin-bottom:8px}
.detail-meta{font-size:12px;color:var(--text3);margin-bottom:12px}
.detail-content{font-size:14px;line-height:1.7;color:var(--text2);margin-bottom:14px;white-space:pre-wrap}
.detail-prompt-wrap{background:rgba(255,255,255,.02);border-radius:var(--radius-md);padding:14px;margin:10px 0 14px;border:1px solid var(--border)}
.detail-prompt-label{font-size:12px;font-weight:600;color:var(--green);margin-bottom:8px}
.detail-prompt{font-size:12px;font-family:monospace;color:var(--text2);line-height:1.5;white-space:pre-wrap;word-break:break-all}
.copy-prompt-btn{margin-top:8px;padding:5px 14px;background:var(--green-dim);color:var(--green);border:none;border-radius:8px;font-size:12px;cursor:pointer;transition:all .2s}
.copy-prompt-btn:hover{background:rgba(1,194,195,.2)}
.detail-actions{
  display:flex;gap:28px;padding:14px 18px;border-top:1px solid var(--border);margin-top:10px;
}
.detail-actions span{display:flex;align-items:center;gap:6px;color:var(--text3);cursor:pointer;font-size:12px;transition:color .2s}
.detail-actions span:hover{color:var(--text)}
.detail-actions span.liked{color:var(--red)!important}
/* 详情「我要制作」按钮 */
.detail-make-btn{background:var(--green);color:#000;font-weight:700;font-size:12px;padding:3px 12px;border-radius:14px;white-space:nowrap;margin-left:auto;display:flex;align-items:center;gap:5px;cursor:pointer;border:none}
.detail-make-btn svg{stroke:#000;stroke-width:2.5;width:13px;height:13px}
.detail-make-btn:hover{background:#2ed0d1}

/* ===== 评论区（含"制作"按钮） ===== */
.comment-section{padding:0 18px 24px}
.comment-input-wrap{display:flex;gap:10px;margin-bottom:14px}
.comment-input-wrap input{
  flex:1;padding:10px 16px;border-radius:22px;
  border:1px solid var(--border);background:rgba(255,255,255,.03);
  color:var(--text);font-size:14px;outline:none;font-family:inherit;
  transition:border-color .2s;
}
.comment-input-wrap input:focus{border-color:rgba(1,194,195,.25)}
.comment-input-wrap button{
  padding:10px 20px;background:var(--green);color:#000;border:none;
  border-radius:22px;font-weight:600;font-size:13px;cursor:pointer;
  transition:all .2s;white-space:nowrap;
}
.comment-input-wrap button:hover{background:#2ed0d1;box-shadow:0 2px 10px rgba(1,194,195,.25)}
.comment-item{
  display:flex;gap:8px;padding:10px 0;border-bottom:1px solid var(--border);
  font-size:13px;color:var(--text2);line-height:1.5;
}
.comment-item:last-child{border-bottom:none}
.comment-avatar{
  width:22px;height:22px;border-radius:50%;flex-shrink:0;
  background:var(--bg2);object-fit:cover;
  cursor:pointer;transition:opacity .2s;
}
.comment-avatar:hover{opacity:.8}
.comment-body{flex:1;min-width:0}
.comment-header{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.comment-user{color:var(--green);font-weight:500;font-size:12px}
.comment-time{font-size:10px;color:var(--text3);margin-left:auto;white-space:nowrap}
.comment-empty{font-size:12px;color:var(--text3);text-align:center;padding:16px 0}
/* 评论区底部操作栏 */
.comment-actions{display:flex;align-items:center;gap:6px;margin-top:4px}
/* 制作按钮已移除 */
.comment-like-btn{
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 8px;border-radius:12px;
  background:transparent;color:var(--text3);
  border:1px solid var(--border);font-size:11px;cursor:pointer;
  transition:all .2s;
}
.comment-like-btn:hover{color:#ff6b81;border-color:#ff6b8144;background:rgba(255,107,129,.06)}
.comment-like-btn.liked{color:#ff6b81;border-color:#ff6b8144;background:rgba(255,107,129,.08)}
.comment-like-btn svg{flex-shrink:0}

/* 回复样式 */
.comment-reply{padding-left:30px!important;border-bottom:none!important;margin-top:-4px}
.comment-reply-to{font-size:11px;color:var(--text3);margin-bottom:2px}
.comment-reply-to .reply-user{color:var(--green);text-decoration:none}
.comment-reply-btn{
  display:inline-flex;align-items:center;gap:3px;
  padding:2px 8px;border-radius:12px;
  background:transparent;color:var(--text3);
  border:1px solid var(--border);font-size:11px;cursor:pointer;
  transition:all .2s;
}
.comment-reply-btn:hover{color:var(--green);border-color:var(--green-dim)}
.reply-input-wrap{
  margin:8px 0 4px;padding:10px;background:var(--bg2);border-radius:8px;
  border:1px solid var(--border);
}
.reply-label{font-size:11px;color:var(--text3);display:block;margin-bottom:4px}
.reply-input-row{display:flex;gap:6px;align-items:center}
.reply-input{
  flex:1;padding:6px 10px;border-radius:6px;border:1px solid var(--border);
  background:var(--bg1);color:var(--text1);font-size:13px;outline:none;
}
.reply-input:focus{border-color:var(--green)}
.reply-submit{
  padding:6px 14px;border-radius:6px;border:none;
  background:var(--green);color:#000;font-size:12px;font-weight:600;cursor:pointer;
}
.reply-cancel{
  padding:6px 10px;border-radius:6px;border:1px solid var(--border);
  background:transparent;color:var(--text3);font-size:12px;cursor:pointer;
}
.author{color:var(--green);text-decoration:none;font-weight:500}
.author:hover{text-decoration:underline}

/* ===== 发布弹窗 ===== */
.publish-overlay{
  display:none;position:fixed;inset:0;z-index:300;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.publish-overlay.show{display:block;animation:fadeIn .25s ease}
.publish-sheet{
  position:fixed;bottom:0;left:0;right:0;z-index:301;
  background:var(--card);border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  max-height:85vh;overflow-y:auto;
  animation:slideUp .35s cubic-bezier(.16,1,.3,1);
  box-shadow:0 -4px 60px rgba(0,0,0,.4);
}
.pub-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid var(--border);
  position:sticky;top:0;background:var(--card);z-index:2;
}
.pub-close{background:none;border:none;color:var(--text3);font-size:20px;cursor:pointer;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}
.pub-close:hover{background:rgba(255,255,255,.06);color:var(--text)}
.pub-title{font-size:17px;font-weight:600;letter-spacing:-.2px}
.pub-submit{background:var(--green);color:#000;border:none;padding:8px 24px;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:4px}
.pub-submit:disabled{opacity:.4;cursor:not-allowed}
.pub-submit:not(:disabled):hover{background:#2ed0d1;box-shadow:0 2px 10px rgba(1,194,195,.25)}
.pub-submit.loading{opacity:.7;pointer-events:none}
.pub-body{padding:14px 18px 24px}

.pub-mode-bar{display:flex;gap:8px;padding:12px 18px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.01)}
.pub-mode-btn{
  flex:1;padding:10px 12px;border-radius:var(--radius-sm);
  font-size:13px;font-weight:500;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  color:var(--text3);cursor:pointer;
  transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px;
}
.pub-mode-btn:hover{border-color:rgba(1,194,195,.15);color:var(--text2);background:rgba(255,255,255,.04)}
.pub-mode-btn.active{background:var(--green-dim);color:var(--green);border-color:rgba(1,194,195,.25);box-shadow:0 0 0 1px rgba(1,194,195,.1)}

.pub-title-input{
  width:100%;padding:12px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--border);background:rgba(255,255,255,.02);
  color:var(--text);font-size:15px;font-weight:500;outline:none;
  font-family:inherit;margin-bottom:10px;transition:border-color .2s;
}
.pub-title-input:focus{border-color:rgba(1,194,195,.2)}
.pub-title-input::placeholder{color:var(--text3);font-size:14px;font-weight:400}
.pub-textarea{
  width:100%;padding:12px 14px;border-radius:var(--radius-sm);
  border:1px solid var(--border);background:rgba(255,255,255,.02);
  color:var(--text);font-size:14px;outline:none;resize:none;
  margin-top:10px;font-family:inherit;line-height:1.6;transition:border-color .2s;
}
.pub-textarea:focus{border-color:rgba(1,194,195,.2)}
.pub-footnote{font-size:11px;color:var(--text3);margin-top:6px}

.pub-img-grid{display:flex;gap:8px;flex-wrap:wrap}
.pub-add-img{
  width:80px;height:80px;border-radius:var(--radius-sm);
  border:1.5px dashed var(--border);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  cursor:pointer;color:var(--text3);font-size:11px;gap:4px;
  transition:all .2s;
}
.pub-add-img:hover{border-color:var(--green);color:var(--green);background:var(--green-dim)}
.pub-add-label{font-size:11px;letter-spacing:.3px}
.pub-add-hint{font-size:9px;color:var(--text3);opacity:.5}
.pub-img-item{width:80px;height:80px;border-radius:var(--radius-sm);overflow:hidden;position:relative}
.pub-img-item img{width:100%;height:100%;object-fit:cover}
.pub-img-del{position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.6);border:none;color:#fff;font-size:11px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s}
.pub-img-del:hover{background:rgba(239,68,68,.8)}

.pub-progress{margin-top:10px;display:flex;align-items:center;gap:10px}
.pub-progress-bar-wrap{flex:1;height:4px;background:var(--border);border-radius:2px;overflow:hidden}
.pub-progress-bar{height:100%;background:var(--green);border-radius:2px;transition:width .3s;width:0%}
.pub-progress-text{font-size:11px;color:var(--text3);white-space:nowrap}

.pub-cat-btn{display:inline-block;padding:5px 14px;border-radius:14px;font-size:12px;background:rgba(255,255,255,.04);color:var(--text3);cursor:pointer;margin:4px;transition:all .2s;border:1px solid transparent}
.pub-cat-btn:hover{border-color:rgba(1,194,195,.12);color:var(--text2)}
.pub-cat-btn.active{background:var(--green-dim);color:var(--green);border-color:rgba(1,194,195,.2)}

/* ===== 视频发布 ===== */
.pub-video-upload{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:32px 20px;border:1.5px dashed var(--border);border-radius:var(--radius-sm);
  cursor:pointer;color:var(--text3);transition:all .2s;gap:8px;
}
.pub-video-upload:hover{border-color:var(--green);color:var(--green);background:var(--green-dim)}
.pub-video-upload .upload-label{font-size:14px;font-weight:500}
.pub-video-upload .upload-hint{font-size:11px;opacity:.5}
.pub-video-preview{position:relative;margin-top:10px;border-radius:var(--radius-sm);overflow:hidden}
.pub-video-preview video{width:100%;max-height:300px;border-radius:var(--radius-sm);display:block}
.pub-video-remove{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:rgba(0,0,0,.6);border:none;color:#fff;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* ===== Toast ===== */
.toast{
  position:fixed;bottom:80px;left:50%;transform:translateX(-50%);
  background:rgba(0,0,0,.85);color:#fff;padding:10px 22px;
  border-radius:22px;font-size:14px;z-index:999;
  opacity:0;transition:opacity .3s;
  pointer-events:none;white-space:nowrap;backdrop-filter:blur(8px);
}
.toast.show{opacity:1}

/* ===== 我的页面（用户面板+会员入口） ===== */
.profile-page{display:none;max-width:960px;margin:0 auto;padding:16px}
.profile-page.show{display:block}
.profile-header{text-align:center;padding:24px 0 16px}
.profile-avatar{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,var(--green),#01a3a4);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;font-weight:700;color:#000;margin:0 auto 12px;
  box-shadow:0 4px 20px rgba(1,194,195,.2);
}
.profile-name{font-size:19px;font-weight:600;margin-bottom:4px}
.profile-bio{font-size:13px;color:var(--text3);margin-bottom:14px}
.profile-stats{display:flex;justify-content:center;gap:28px;margin-bottom:20px}
.profile-stat{text-align:center}
.profile-stat-num{font-size:20px;font-weight:600;color:var(--text)}
.profile-stat-label{font-size:11px;color:var(--text3)}
/* 会员管理入口 */
.profile-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;padding:16px 0;border-top:1px solid var(--border);margin-top:8px}
.profile-action-btn{
  display:flex;align-items:center;gap:6px;padding:10px 18px;
  border-radius:var(--radius-sm);font-size:13px;font-weight:500;
  background:rgba(255,255,255,.04);color:var(--text2);
  border:1px solid var(--border);cursor:pointer;text-decoration:none;
  transition:all .2s;
}
.profile-action-btn:hover{background:var(--green-dim);color:var(--green);border-color:rgba(1,194,195,.2)}
.profile-action-btn.primary{background:var(--green-dim);color:var(--green);border-color:rgba(1,194,195,.2)}
.profile-tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:14px}
.profile-tab{flex:1;text-align:center;padding:10px 0;font-size:13px;color:var(--text3);cursor:pointer;position:relative;transition:color .2s}
.profile-tab.active{color:var(--green)}
.profile-tab.active::after{content:'';position:absolute;bottom:-1px;left:25%;right:25%;height:2.5px;background:var(--green);border-radius:2px}

/* ===== 消息页面 ===== */
.msg-page{display:none;max-width:600px;margin:0 auto;padding:16px}
.msg-page.show{display:block}
.msg-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.msg-avatar{width:44px;height:44px;border-radius:50%;background:var(--green-dim);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.msg-content{flex:1;min-width:0}
.msg-title{font-size:14px;font-weight:500;color:var(--text);margin-bottom:3px}
.msg-preview{font-size:12px;color:var(--text3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-time{font-size:11px;color:var(--text3);flex-shrink:0}

/* ===== 搜索页面 ===== */
.search-page{display:none;max-width:960px;margin:0 auto;padding:60px 16px 16px}
.search-page.show{display:block}
.search-page .search-input-wrap{display:flex;gap:10px;margin-bottom:16px}
.search-page .search-input-wrap input{flex:1;padding:12px 18px;border-radius:22px;border:1px solid var(--border);background:rgba(255,255,255,.03);color:var(--text);font-size:15px;outline:none}
.search-page .search-input-wrap button{padding:10px 22px;border-radius:22px;background:var(--green);color:#000;border:none;font-weight:600;cursor:pointer;font-size:14px}

/* ===== 点赞动画 ===== */
.like-burst{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  font-size:72px;pointer-events:none;z-index:10;
  animation:likePop .8s ease-out forwards;
  filter:drop-shadow(0 4px 20px rgba(239,68,68,.3));
}
@keyframes likePop{
  0%{opacity:1;transform:translate(-50%,-50%) scale(.3)}
  40%{opacity:1;transform:translate(-50%,-55%) scale(1.2)}
  100%{opacity:0;transform:translate(-50%,-80%) scale(1.8)}
}

/* ===== 卡片渐变 ===== */
.feed-item .img-wrap::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:40%;
  background:linear-gradient(transparent,rgba(28,29,34,.4));
  pointer-events:none;opacity:0;transition:opacity .2s;
}
.feed-item:hover .img-wrap::after{opacity:1}

/* ===== 响应式 ===== */

/* Tablet */
@media(max-width:1024px){
  .feed-wrap{max-width:100%;padding:8px 8px}
  .feed{column-count:3;column-gap:6px}
  .top-bar{padding:6px 10px;gap:6px}
  .top-search .search-bar{max-width:260px}
  .cat-pills{padding:6px 10px}
}

/* Phone */
@media(max-width:768px){
  body{padding-top:52px;padding-bottom:60px}
  .top-bar{min-height:38px;padding:5px 8px;gap:6px}
  .top-bar .logo{font-size:14px}
  .top-search .search-bar{height:30px;padding:0 10px;max-width:200px}
  .top-search .search-bar:focus-within{max-width:260px}
  .top-search .search-icon{width:13px;height:13px}
  .top-search .search-bar input{font-size:12px}
  .top-right button{width:30px;height:30px}
  .top-right .top-pub{padding:0 10px;font-size:11px}
  .top-right .top-pub svg{width:14px;height:14px}

  .cat-pills{padding:5px 8px;gap:5px}
  .cat-pill{padding:4px 12px;font-size:10px;border-radius:12px}

  .stats-bar{padding:4px 10px;font-size:10px}
  .sort-tab{font-size:9px;padding:2px 6px}

  .feed-wrap{padding:6px 4px}
  .feed{column-count:2;column-gap:4px}
  .feed-item .info{padding:8px 10px 10px}
  .feed-item .title{font-size:12px}
  .feed-item .meta{font-size:10px;margin-top:6px}
  .feed-item .avatar{width:16px;height:16px;font-size:7px}
  .feed-item .tag{font-size:9px}
  .feed-item .like-overlay{width:26px;height:26px;font-size:12px}

  .bottom-bar{height:50px}
  .bottom-bar a,.bottom-bar button{padding:2px 6px;min-width:46px;font-size:10px}
  .bottom-bar .center-btn{width:42px;height:42px}
  .bottom-bar svg{width:22px;height:22px}

  .profile-page{padding:12px}
  .profile-avatar{width:56px;height:56px;font-size:20px}
  .profile-stats{gap:20px}
  .profile-stat-num{font-size:18px}
  .profile-tab{font-size:12px;padding:8px 10px}
  .profile-actions{gap:8px}
  .profile-action-btn{padding:8px 14px;font-size:12px}

  .search-page{padding:12px}
  .search-input-wrap{padding:8px 10px}
  .search-input-wrap input{font-size:13px}
  .search-input-wrap button{font-size:12px;padding:8px 16px}

  .msg-page{padding:16px 10px}
  .msg-item{padding:12px}
  .msg-item .msg-title{font-size:13px}
  .msg-item .msg-preview{font-size:11px}

  .empty-state{padding:40px 16px}
  .empty-state .icon{font-size:40px}

  .skel-grid{padding:8px 4px 20px}

  .detail-wrap{padding-top:24px}
  .detail-card{border-radius:var(--radius-lg) var(--radius-lg) 0 0;max-height:92vh}
  .detail-close{top:12px;right:12px;width:32px;height:32px;font-size:13px}
  .detail-images img{max-height:40vh}
  .detail-body{padding:14px 14px 0}
  .detail-title{font-size:15px}
  .detail-actions{gap:18px;padding:12px 14px}
  .comment-section{padding:0 14px 20px}
  .comment-input-wrap input{font-size:13px;padding:8px 14px}
  .comment-input-wrap button{padding:8px 16px;font-size:12px}

  .publish-sheet{max-height:90vh}
  .pub-header{padding:14px}
  .pub-title{font-size:15px}
  .pub-submit{padding:7px 20px;font-size:13px}
  .pub-body{padding:10px 14px 20px}
  .pub-add-img{width:68px;height:68px}
  .pub-img-item{width:68px;height:68px}
  .pub-textarea{font-size:13px}
}

/* Small phone */
@media(max-width:480px){
  body{padding-top:48px;padding-bottom:54px}
  .top-bar{min-height:34px;padding:4px 6px;gap:4px}
  .top-bar .logo{font-size:13px}
  .top-search .search-bar{height:28px;padding:0 8px;max-width:140px}
  .top-search .search-bar:focus-within{max-width:180px}
  .top-search .search-icon{width:12px;height:12px}
  .top-search .search-bar input{font-size:11px}
  .top-right button{width:28px;height:28px}
  .top-right .top-pub{padding:0 8px;font-size:10px}
  .top-right .top-pub svg{width:13px;height:13px}

  .cat-pills{padding:4px 6px;gap:4px}
  .cat-pill{padding:3px 10px;font-size:9px;border-radius:10px}

  .stats-bar{padding:3px 8px;font-size:9px}
  .sort-tab{font-size:8px;padding:1px 5px}

  .feed-wrap{padding:4px 2px}
  .feed{column-count:2;column-gap:3px}
  .feed-item .info{padding:6px 8px 8px}
  .feed-item .title{font-size:11px}
  .feed-item .meta{font-size:9px;margin-top:4px}
  .feed-item .avatar{width:14px;height:14px;font-size:6px}
  .feed-item .cat-tag{font-size:9px}
  .feed-item .tag{font-size:8px;padding:1px 7px;top:4px;left:4px}
  .feed-item .like-overlay{width:24px;height:24px;font-size:11px}

  .bottom-bar{height:44px}
  .bottom-bar a,.bottom-bar button{padding:2px 4px;min-width:38px;font-size:9px}
  .bottom-bar .center-btn{width:36px;height:36px}
  .bottom-bar svg{width:20px;height:20px}

  .profile-page{padding:8px}
  .profile-avatar{width:48px;height:48px;font-size:18px}
  .profile-stats{gap:16px}
  .profile-stat-num{font-size:16px}
  .profile-stat-label{font-size:10px}
  .profile-tab{font-size:11px;padding:6px 8px}
  .profile-action-btn{padding:6px 12px;font-size:11px}

  .empty-state{padding:30px 12px}
  .empty-state .icon{font-size:32px}
  .empty-state h3{font-size:14px}
  .empty-state p{font-size:12px}

  .detail-wrap{padding-top:12px}
  .detail-card{border-radius:var(--radius-md) var(--radius-md) 0 0;max-height:95vh}
  .detail-close{top:8px;right:8px;width:28px;height:28px;font-size:12px}
  .detail-images img{max-height:35vh}
  .detail-body{padding:12px 12px 0}
  .detail-title{font-size:14px}
  .detail-actions{gap:14px;padding:10px 12px;font-size:12px}
  .detail-header .d-avatar{width:24px;height:24px;font-size:11px}
  .detail-header .d-name{font-size:13px}
  .comment-section{padding:0 12px 18px}
  .comment-input-wrap input{font-size:12px;padding:6px 12px}
  .comment-input-wrap button{padding:6px 14px;font-size:11px}
  .comment-item{font-size:12px}

  .publish-sheet{max-height:95vh}
  .pub-header{padding:12px}
  .pub-title{font-size:14px}
  .pub-submit{padding:6px 16px;font-size:12px}
  .pub-body{padding:8px 12px 16px}
  .pub-mode-btn{font-size:12px;padding:8px}
  .pub-add-img{width:56px;height:56px}
  .pub-img-item{width:56px;height:56px}
  .pub-textarea{font-size:12px}
  .pub-footnote{font-size:10px}
}

/* ===== 页脚响应式 ===== */
@media(max-width:768px){
  .site-footer{padding:24px 16px!important}
  .footer-grid{grid-template-columns:1fr 1fr!important;gap:20px!important}
}
@media(max-width:480px){
  .site-footer{padding:20px 12px!important}
  .footer-grid{grid-template-columns:1fr!important;gap:16px!important}
  .footer-bottom{flex-direction:column!important;text-align:center!important;gap:6px!important}
}
