* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[v-cloak] { display: none; }
html, body { height: 100%; background: #000; color: #fff; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; overscroll-behavior: none; }
#app { height: 100dvh; overflow: hidden; position: relative; }

/* ===== 非 Telegram 环境提示 ===== */
.not-tg { height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; background: linear-gradient(180deg, #14141a, #0e0e11); }
.not-tg-brand { font-size: 26px; font-weight: 800; background: linear-gradient(90deg, #ff2d55, #ff9f1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 24px; }
.not-tg-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.not-tg-step { font-size: 13px; color: #888; line-height: 1.8; }

/* ===== 信息流 ===== */
.feed { height: 100dvh; position: relative; overflow: hidden; }
.feed-top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: calc(env(safe-area-inset-top) + 12px) 16px 8px; display: flex; justify-content: center; pointer-events: none; }
.brand { font-size: 18px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(90deg, #ff2d55, #ff9f1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.feed-slider { transition: transform .35s ease; will-change: transform; }
.feed-item { height: 100dvh; position: relative; overflow: hidden; background: #000; }
.feed-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-info { position: absolute; left: 12px; right: 80px; bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 10; pointer-events: none; }
.feed-author { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #333; flex-shrink: 0; }
.feed-author span { font-size: 14px; font-weight: 600; }
.follow-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 11px; padding: 4px 10px; border-radius: 14px; }
.follow-btn.on { background: rgba(255,255,255,.3); }
.feed-desc { margin-top: 8px; font-size: 13px; line-height: 1.5; text-shadow: 0 1px 3px rgba(0,0,0,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-side { position: absolute; right: 8px; bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.side-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.avatar-lg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: #333; }
.plus-badge { width: 18px; height: 18px; border-radius: 50%; background: #ff2d55; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: -12px; }
.icon { font-size: 24px; line-height: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.icon.on { color: #ff2d55; }
.count { font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.loading-tip { position: absolute; bottom: 40px; width: 100%; text-align: center; font-size: 12px; color: #aaa; z-index: 15; }

/* ===== 评论弹层 ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: flex; align-items: flex-end; }
.comment-panel { width: 100%; background: #16161a; border-radius: 16px 16px 0 0; max-height: 70dvh; display: flex; flex-direction: column; }
.comment-head { padding: 16px; text-align: center; font-weight: 600; border-bottom: 1px solid #2a2a30; }
.comment-list { flex: 1; overflow-y: auto; padding: 12px; }
.comment-item { display: flex; gap: 10px; margin-bottom: 14px; }
.comment-name { font-size: 12px; color: #888; }
.comment-text { font-size: 14px; margin-top: 2px; }
.comment-input { display: flex; gap: 8px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid #2a2a30; }
.comment-input input { flex: 1; background: #2a2a30; border: none; border-radius: 20px; padding: 10px 14px; color: #fff; font-size: 14px; }
.comment-input button { background: #ff2d55; color: #fff; border: none; border-radius: 20px; padding: 0 18px; font-size: 14px; }
.empty { text-align: center; color: #666; padding: 30px 0; font-size: 13px; }

/* ===== 通用页面 ===== */
.page { height: 100dvh; overflow-y: auto; background: #0e0e11; }
.page-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; padding: calc(env(safe-area-inset-top) + 10px) 12px 10px; background: #0e0e11; border-bottom: 1px solid #1f1f24; }
.back { font-size: 26px; width: 40px; cursor: pointer; }
.page-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.spacer { width: 40px; }

/* ===== 发布 ===== */
.publish-body { padding: 16px; }
.upload-box { width: 100%; aspect-ratio: 3/4; background: #1c1c22; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.upload-preview { width: 100%; height: 100%; object-fit: cover; }
.upload-empty { text-align: center; color: #888; font-size: 13px; }
.upload-plus { font-size: 44px; color: #ff2d55; margin-bottom: 8px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.form-row label { font-size: 13px; color: #aaa; width: 60px; flex-shrink: 0; }
.text-input { flex: 1; background: #1c1c22; border: none; border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; resize: none; font-family: inherit; }
.mini-btn { background: #2a2a30; border: none; color: #fff; border-radius: 6px; padding: 8px 14px; font-size: 13px; }
.big-btn { width: 100%; background: #ff2d55; color: #fff; border: none; border-radius: 10px; padding: 14px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.big-btn:disabled { opacity: .5; }
.big-btn.small { width: auto; padding: 8px 20px; font-size: 14px; margin-top: 0; }
.big-btn.gray { background: #3a3a40; }
.big-btn.outline { background: transparent; border: 1px solid #555; }
.big-btn.green { background: #22c55e; }
.big-btn.red { background: #ef4444; }
.tip { text-align: center; color: #666; font-size: 12px; margin-top: 10px; }

/* ===== 主页 ===== */
.profile-head { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 16px; }
.avatar-xl { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #333; border: 2px solid #2a2a30; }
.profile-name { font-size: 17px; font-weight: 700; margin-top: 10px; }
.profile-stats { display: flex; gap: 40px; margin-top: 14px; }
.profile-stats div { text-align: center; }
.profile-stats b { font-size: 16px; display: block; }
.profile-stats span { font-size: 12px; color: #888; }
.profile-actions { display: flex; gap: 10px; margin-top: 14px; }
.tabs { display: flex; border-bottom: 1px solid #1f1f24; }
.tab { flex: 1; text-align: center; padding: 12px; font-size: 14px; color: #888; border-bottom: 2px solid transparent; }
.tab.on { color: #fff; border-bottom-color: #ff2d55; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.grid-item { aspect-ratio: 1; position: relative; overflow: hidden; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-badge { position: absolute; left: 6px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 2px 6px; }

/* ===== 私信 ===== */
.conv-list { padding: 8px 0; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1a1a1f; }
.conv-info { flex: 1; overflow: hidden; }
.conv-name { font-size: 14px; font-weight: 600; }
.conv-last { font-size: 12px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-badge { background: #ff2d55; color: #fff; border-radius: 50%; min-width: 18px; height: 18px; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* ===== 聊天 ===== */
.chat { display: flex; flex-direction: column; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 14px; font-size: 14px; margin-bottom: 8px; background: #26262c; width: fit-content; }
.msg.mine { background: #ff2d55; margin-left: auto; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid #1f1f24; }
.chat-input input { flex: 1; background: #1c1c22; border: none; border-radius: 20px; padding: 10px 14px; color: #fff; font-size: 14px; }
.chat-input button { background: #ff2d55; color: #fff; border: none; border-radius: 20px; padding: 0 18px; }

/* ===== 审核 ===== */
.pending-list { padding: 12px; }
.pending-item { background: #16161a; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.pending-video { width: 100%; border-radius: 8px; background: #000; max-height: 320px; }
.pending-info { margin-top: 10px; }
.pending-title { font-size: 14px; font-weight: 600; }
.pending-author { font-size: 12px; color: #888; margin: 4px 0 10px; }
.pending-actions { display: flex; gap: 10px; }

/* ===== 底部导航 ===== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: flex; background: rgba(14,14,17,.95); border-top: 1px solid #1f1f24; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 20px; color: #888; }
.nav-item span { font-size: 10px; }
.nav-item.on { color: #ff2d55; }

/* 预览弹层 */
.preview-overlay { position: fixed; inset: 0; background: #000; z-index: 60; display: flex; flex-direction: column; }
.preview-overlay video { flex: 1; width: 100%; object-fit: contain; }
.preview-close { position: absolute; top: calc(env(safe-area-inset-top) + 10px); left: 12px; font-size: 30px; z-index: 61; }


/* ===== 功能扩展样式 ===== */
.feed-top { justify-content: space-between; pointer-events: none; }
.feed-top-brand { font-size: 18px; font-weight: 800; letter-spacing: 1px; background: linear-gradient(90deg, #ff2d55, #ff9f1a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 1px 10px rgba(0,0,0,.5); pointer-events: none; }
.feed-tabs { display: flex; gap: 4px; background: rgba(0,0,0,.45); border-radius: 16px; padding: 3px; pointer-events: auto; }
.ftab { padding: 5px 14px; border-radius: 13px; font-size: 13px; color: #bbb; }
.ftab.on { background: #ff2d55; color: #fff; font-weight: 700; }
.feed-top-icons { display: flex; gap: 14px; pointer-events: auto; }
.top-icon { font-size: 20px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }

.tag-chip { display: inline-block; color: #ff9f1a; margin-left: 6px; font-size: 12px; font-weight: 600; }

.reply-tag { color: #ff9f1a; }
.comment-reply { font-size: 12px; color: #888; margin-top: 4px; }
.reply-cancel { padding: 8px 14px; font-size: 12px; color: #ff9f1a; border-bottom: 1px solid #2a2a30; text-align: center; }

.form-actions { display: flex; gap: 10px; }
.form-actions .big-btn { flex: 1; margin-top: 0; }

.msgs-tabs { display: flex; border-bottom: 1px solid #1f1f24; }
.red-dot { display: inline-block; width: 8px; height: 8px; background: #ff2d55; border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.notify-list { padding: 8px 0; }
.notify-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1a1a1f; }
.notify-text { flex: 1; font-size: 14px; line-height: 1.4; }
.notify-text b { color: #ff9f1a; }
.notify-time { font-size: 11px; color: #666; margin-top: 3px; }

.search-bar { display: flex; gap: 8px; padding: 14px; }
.search-bar input { flex: 1; background: #1c1c22; border: none; border-radius: 20px; padding: 10px 14px; color: #fff; font-size: 14px; }
.search-bar button { background: #ff2d55; color: #fff; border: none; border-radius: 20px; padding: 0 18px; }
.user-list { padding: 4px 0; }
.user-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #1a1a1f; font-size: 14px; }
.gray { color: #888; }

.rank-list { padding: 12px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-bottom: 1px solid #1a1a1f; }
.rank-no { width: 28px; font-size: 16px; font-weight: 800; color: #888; text-align: center; }
.rank-no.top3 { color: #ff9f1a; }
.rank-cover { width: 56px; height: 74px; object-fit: cover; border-radius: 6px; background: #1c1c22; flex-shrink: 0; }
.rank-info { flex: 1; overflow: hidden; }
.rank-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-meta { font-size: 12px; color: #888; margin-top: 4px; }

.report-panel { width: 100%; background: #16161a; border-radius: 16px 16px 0 0; padding: 16px; }
.report-reasons { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; }
.report-choice { background: #2a2a30; border-radius: 18px; padding: 8px 16px; font-size: 13px; }
.report-panel .big-btn { margin-top: 0; }

.draft-panel { width: 100%; background: #16161a; border-radius: 16px 16px 0 0; max-height: 70dvh; display: flex; flex-direction: column; }
.draft-list { flex: 1; overflow-y: auto; padding: 12px; }
.draft-item { display: flex; gap: 12px; padding: 10px; border-bottom: 1px solid #1a1a1f; }
.draft-video { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; flex-shrink: 0; }
.draft-placeholder { width: 72px; height: 96px; border-radius: 6px; background: #1c1c22; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #666; flex-shrink: 0; }
.draft-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.draft-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft-actions { display: flex; gap: 8px; }
.mini-btn.red { background: #ef4444; }

.report-list { padding: 12px; }
.report-item { display: flex; gap: 12px; background: #16161a; border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.report-cover { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; background: #1c1c22; flex-shrink: 0; }
.report-info { flex: 1; min-width: 0; }
.report-title { font-size: 14px; font-weight: 600; }
.report-reason { font-size: 12px; color: #ff9f1a; margin: 4px 0 10px; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
.stat-card { background: #16161a; border-radius: 12px; padding: 16px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 800; color: #ff9f1a; }
.stat-label { font-size: 12px; color: #888; margin-top: 4px; }

.invites { padding: 16px; }
.invite-gen { display: flex; gap: 10px; margin-bottom: 14px; }
.invite-gen input { flex: 1; background: #1c1c22; border: none; border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; }
.invite-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #1a1a1f; font-size: 14px; }

.nav-item { position: relative; }
.nav-dot { position: absolute; top: 3px; right: calc(50% - 18px); width: 9px; height: 9px; background: #ff2d55; border-radius: 50%; }
