* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f2f3f5; color: #1a1a1a; }

.wy-wrap { max-width: 680px; margin: 0 auto; position: relative; padding: 0 5px; }

/* ===== 顶图 ===== */
.wy-header-wrap { position: relative; margin-bottom: 38px; }
.wy-cover { position: relative; width: 100%; height: 180px; overflow: visible; background: #2c3e50; }
.wy-cover-img { position: absolute; inset: 0; background: center/cover no-repeat; }
.wy-cover-video { position: absolute; inset: 0; }
.wy-cover-video video { width: 100%; height: 100%; object-fit: cover; }
.wy-cover-video.has-poster::after { content: ''; position: absolute; inset: 0; background: inherit; pointer-events: none; }
.wy-cover-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.45) 100%); }
.wy-cover-meta { position: absolute; bottom: 6px; right: 80px; z-index: 20; display: flex; align-items: center; height: 40px; }
.wy-cover-name { font-size: 16px; color: #fff; font-weight: 600; letter-spacing: 1px; line-height: 1.2; background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 6px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); margin-top:46px;}
.wy-cover-avatar-wrap { position: absolute; bottom: -28px; right: 20px; width: 56px; height: 56px; background: transparent; border-radius: 3px; padding: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.15); z-index: 30; pointer-events: none; user-select: none; }
.wy-cover-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; pointer-events: none; user-select: none; }
.wy-topbar { position: absolute; top: 10px; right: 10px; z-index: 40; display: flex; gap: 8px; align-items: center; }
.wy-top-btn { padding: 5px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.25); color: #fff; background: rgba(0,0,0,0.35); transition: all .2s; line-height: 1.4; }
.wy-top-btn:hover { background: rgba(0,0,0,0.55); }

/* ===== 列表 ===== */
.wy-list { padding: 0 7px; }
.wy-item { background: #fff; border-radius: 12px; padding: 12px 8px; margin-bottom: 12px; }
.wy-item-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wy-item-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #f0f0f0; image-rendering: -webkit-optimize-contrast; }
.wy-item-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: -webkit-optimize-contrast; -webkit-backface-visibility: hidden; }
.wy-item-meta { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.wy-item-nick { font-size: 15px; color: #576b95; font-weight: 600; line-height: 1; display: flex; align-items: center; }
.wy-item-badge { width: 14px; height: 14px; background: transparent; display: none; align-items: center; justify-content: center; flex-shrink: 0; }
.wy-item-badge.show { display: flex; }
.wy-item-badge svg { width: 14px; height: 14px; fill: #5396FF; display: block; }
.wy-item-title { font-size: 16px; color: #1a1a1a; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }
.wy-item-text { font-size: 15px; color: #1a1a1a; line-height: 1.65; word-break: break-word; white-space: pre-wrap; margin-bottom: 10px; }
.wy-item-media { margin-bottom: 10px; }
.wy-item-media img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.wy-item .wy-info { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f0f0; position: relative; }

/* 图片 */
.wy-imgs { display: grid; gap: 2px; margin-bottom: 8px; }
.wy-imgs.g1 { grid-template-columns: 120px; justify-items: start; }
.wy-imgs.g1 img { width: 120px; height: 120px; object-fit: cover; border-radius: 3px; }
.wy-imgs.g2, .wy-imgs.g4 { grid-template-columns: repeat(2, 120px); }
.wy-imgs.g2 img, .wy-imgs.g4 img { width: 120px; height: 120px; object-fit: cover; border-radius: 3px; }
.wy-imgs.g3, .wy-imgs.g5, .wy-imgs.g6, .wy-imgs.g7, .wy-imgs.g8, .wy-imgs.g9 { grid-template-columns: repeat(3, 120px); }
.wy-imgs.g3 img, .wy-imgs.g5 img, .wy-imgs.g6 img, .wy-imgs.g7 img, .wy-imgs.g8 img, .wy-imgs.g9 img { width: 120px; height: 120px; object-fit: cover; border-radius: 3px; }

/* 音乐卡片 */
.wy-music{display:flex;align-items:stretch;gap:0;background:#f5f5f5;border-radius:8px;padding:0;margin:10px 0;overflow:hidden;cursor:pointer;position:relative;}
.wy-music-cover { width: 80px; height: 80px; position: relative; flex-shrink: 0; }
.wy-music-cover img { width: 100%; height: 100%; object-fit: cover; }
.wy-music-cover .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wy-music-cover .play-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wy-music-cover .play-btn svg { width: 14px; height: 14px; fill: #333; margin-left: 2px; }
.wy-music-cover .note-wrap { position: absolute; bottom: 4px; left: 4px; width: 20px; height: 20px; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.wy-music-cover .note-icon { width: 12px; height: 12px; fill: #fff; }
.wy-music.playing .wy-music-cover .note-wrap { animation: rotate 1.5s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wy-music-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px; position: relative; overflow: hidden; }
.wy-music-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(20px); -webkit-filter: blur(20px); opacity: 0.5; z-index: 0; }
.wy-music-content { position: relative; z-index: 1; }
.wy-music-title { font-size: 14px; color: #fff; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.wy-music-artist { font-size: 12px; color: #f5f5f5; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.wy-music-play { display: none; }

/* 视频 */
.wy-video{margin:10px 0;width:100%;}
.wy-video video{width:100%;max-height:160px;border-radius:8px;object-fit:cover;display:block;}

/* 底部信息 */
.wy-info { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #f0f0f0; position: relative; }
.wy-time { font-size: 12px; color: #b0b0b0; }
.wy-del { color: #ff3b30; margin-left: 8px; cursor: pointer; font-size: 12px; }
.wy-like-wrap { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.wy-like-icon { width: 18px; height: 18px; fill: none; stroke: #576b95; stroke-width: 2; transition: all .2s; }
.wy-like-icon.liked { fill: #ff2d55; stroke: #ff2d55; }
.wy-like-count { font-size: 13px; color: #576b95; }
.wy-comment-icon { width: 18px; height: 18px; fill: none; stroke: #576b95; stroke-width: 2; cursor: pointer; margin-left: 12px; }

/* 互动区 */
.wy-social { background: #f7f7f7; border-radius: 4px; margin-top: 10px; padding: 8px 12px; }
.wy-likes{display:none;}.wy-likes:empty{display:none;padding:0;border:none;margin:0;}.lk-name{font-size:13px;color:#576b95;}.lk-sep{font-size:13px;color:#576b95;}
.lk-heart{width:14px;height:14px;margin-right:6px;flex-shrink:0;color:#576b95;}

/* 评论 */
.wy-cm-list {  }
.wy-cm { font-size: 14px; line-height: 1.55; color: #1a1a1a; padding: 5px 0; cursor: pointer; display: flex; align-items: flex-start; gap: 6px; border-bottom: 1px solid #e8e8e8; }
.wy-cm:last-child { border-bottom: none; }
.wy-cm .cm-avatar{width:18px;height:18px;border-radius:3px;overflow:hidden;flex-shrink:0;margin-top:1px;background:#eee;}
.wy-cm .cm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wy-cm .cm-body { flex: 1; }
.wy-cm .cm-name { color: #576b95; font-weight: 500; }
.wy-cm .cm-re { color: #666; }
.wy-cm .cm-to { color: #576b95; font-weight: 500; }

/* ===== 登录弹窗 ===== */
.wy-modal-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 300; }
.wy-modal-mask.show { display: block; }
.wy-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; padding: 28px 24px 24px; width: 86%; max-width: 340px; z-index: 301; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.wy-modal.show { display: block; }
.wy-modal h4 { text-align: center; font-size: 17px; margin-bottom: 20px; color: #1a1a1a; }
.wy-modal input { width: 100%; padding: 12px; border: 1px solid #e8e8e8; border-radius: 8px; font-size: 15px; outline: none; margin-bottom: 12px; background: #fafafa; }
.wy-modal input:focus { border-color: #07c160; background: #fff; }
.wy-modal button { width: 100%; padding: 12px; background: #07c160; color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; margin-top: 4px; font-weight: 500; }
.wy-modal button:active { opacity: 0.9; }
.wy-modal .wy-modal-close { position: absolute; top: 12px; right: 16px; color: #999; font-size: 20px; cursor: pointer; line-height: 1; }

/* ===== 发帖大弹窗 ===== */
.wy-post-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 400; }
.wy-post-mask.show { display: block; }
.wy-post-box { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 16px; width: 90%; max-width: 420px; z-index: 401; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.wy-post-box.show { display: block; }
.wy-post-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f5f5f5; }
.wy-post-cancel { font-size: 15px; color: #666; cursor: pointer; border: none; background: none; }
.wy-post-title { font-size: 16px; font-weight: 600; color: #1a1a1a; position: absolute; left: 50%; transform: translateX(-50%); }
.wy-post-submit { font-size: 15px; color: #07c160; font-weight: 500; cursor: pointer; border: none; background: none; }
.wy-post-body { padding: 16px; max-height: 60vh; overflow-y: auto; }
.wy-post-row { display: flex; gap: 12px; }
.wy-post-avatar { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f0f0f0; }
.wy-post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wy-post-content { flex: 1; min-width: 0; }
.wy-post-title-input { width: 100%; border: none; outline: none; font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; padding: 0; }
.wy-post-title-input::placeholder { color: #999; }
.wy-post-textarea { width: 100%; border: none; outline: none; font-size: 15px; color: #1a1a1a; line-height: 1.6; resize: none; height: 80px; padding: 0; }
.wy-post-textarea::placeholder { color: #999; }
.wy-post-textarea { flex: 1; border: none; outline: none; font-size: 16px; line-height: 1.6; resize: none; min-height: 100px; font-family: inherit; color: #1a1a1a; }
.wy-post-textarea::placeholder { color: #b2b2b2; }
.wy-post-tools { display: flex; gap: 24px; padding: 12px 16px; border-top: 1px solid #f5f5f5; }
.wy-post-tool { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #576b95; }
.wy-post-tool svg { width: 20px; height: 20px; }

/* 小弹框（图片/音乐/视频） */
.wy-sub-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 500; }
.wy-sub-mask.show { display: block; }
.wy-sub-box { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 12px; padding: 20px; width: 86%; max-width: 340px; z-index: 501; }
.wy-sub-box.show { display: block; }
.wy-sub-title { font-size: 16px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.wy-sub-input { width: 100%; padding: 10px; border: 1px solid #e8e8e8; border-radius: 6px; font-size: 14px; outline: none; margin-bottom: 10px; font-family: inherit; }
.wy-sub-input:focus { border-color: #07c160; }
.wy-sub-btns { display: flex; gap: 10px; margin-top: 6px; }
.wy-sub-btns button { flex: 1; padding: 10px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.wy-sub-btns .wy-sub-cancel { background: #f5f5f5; color: #666; }
.wy-sub-btns .wy-sub-ok { background: #07c160; color: #fff; }

/* 已选附件提示 */
.wy-post-attachments { padding: 0 16px 10px; }
.wy-post-attachments:empty { display: none; }
.wy-attach-tag { display: inline-flex; align-items: center; gap: 4px; background: #f0f9f4; color: #07c160; padding: 4px 10px; border-radius: 12px; font-size: 12px; margin-right: 6px; margin-bottom: 4px; }
.wy-attach-tag .wy-attach-del { cursor: pointer; font-size: 14px; }

/* 评论输入 */
.wy-input-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 200; }
.wy-input-mask.show { display: block; }
.wy-input-box { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #f7f7f7; padding: 12px 16px 80px; z-index: 201; border-top: 1px solid #e0e0e0; animation: slideUp .2s ease; }
.wy-input-box.show { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wy-input-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.wy-input-meta input { flex: 1; min-width: 80px; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; outline: none; background: #fff; }
.wy-input-meta input:focus { border-color: #07c160; }
.wy-input-box textarea { width: 100%; padding: 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 15px; outline: none; resize: none; height: 70px; background: #fff; }
.wy-input-box button { margin-top: 10px; padding: 9px 22px; background: #07c160; color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; float: right; font-weight: 500; }
.wy-input-box button:active { opacity: 0.9; }
.wy-input-hint { font-size: 12px; color: #999; margin-top: 12px; float: left; }

.wy-loading { text-align: center; padding: 28px; color: #ccc; font-size: 13px; }
.wy-toast { position: fixed; top: 22%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.78); color: #fff; padding: 10px 22px; border-radius: 20px; font-size: 14px; z-index: 99999; pointer-events: none; animation: toastIn .25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.wy-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.wy-overlay img { max-width: 92%; max-height: 92%; object-fit: contain; border-radius: 4px; }
.wy-preview-nav { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10000; }
.wy-preview-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all .2s; }
.wy-preview-dot.active { background: #fff; transform: scale(1.3); }
.wy-preview-btn { position: fixed; top: 50%; left: 20px; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: #fff; border: none; padding: 15px 12px; border-radius: 50%; cursor: pointer; z-index: 10000; font-size: 20px; user-select: none; }
.wy-preview-btn:hover { background: rgba(255,255,255,0.3); }
.wy-preview-btn.next { left: auto; right: 20px; }
