/* ============ Rind · iOS 风格层（v244）============
   作用范围：社交头部 + 关注动态、发现、我的、聊天。
   地图 / 发布 / 消息列表不在本文件范围内，保持原样。 */
:root {
  --ios-tint: #FF5A4E;
  --ios-label: #000;
  --ios-sec: rgba(60, 60, 67, .6);
  --ios-ter: rgba(60, 60, 67, .3);
  --ios-sep: rgba(60, 60, 67, .29);
  --ios-fill: rgba(118, 118, 128, .12);
  --ios-gbg: #F2F2F7;
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
#view-feed, #view-social, #view-profile, #dm-modal { font-family: var(--ios-font); color: var(--ios-label); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 大标题导航 ---------- */
#view-feed .page-head, #view-social .social-head {
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 0; background: #fff;
  display: flex; align-items: flex-end; justify-content: space-between; border: none; position: static;
}
.ios-big-title, #view-feed .page-head h1 {
  font-size: 34px; font-weight: 700; letter-spacing: .37px; line-height: 41px; margin: 34px 0 8px; color: var(--ios-label);
}
#view-social .social-head { flex-direction: column; align-items: stretch; }
#view-social .social-head .ios-big-title { margin-top: 2px; }
#view-social .social-head-btns { display: flex; gap: 18px; justify-content: flex-end; height: 44px; align-items: center; order: -1; }
.ios-icon-btn {
  width: 34px; height: 34px; border-radius: 17px; border: none; background: var(--ios-fill);
  color: var(--ios-tint); display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; padding: 0;
}
.ios-icon-btn .ic { width: 20px; height: 20px; }
.ios-icon-btn:active { opacity: .6; }
.ios-icon-btn:focus-visible, .ipc-act:focus-visible, .wf-like:focus-visible, #view-feed .chip:focus-visible,
#view-social .seg:focus-visible, #view-profile .seg:focus-visible, .dm-field button:focus-visible, .dm-plus-btn:focus-visible { outline: 2px solid var(--ios-tint); outline-offset: 2px; }
.ios-icon-btn .ios-badge {
  position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #FF3B30;
  color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff;
}

/* ---------- 搜索栏 ---------- */
#view-feed .feed-search, #view-social .social-search { padding: 0 16px; background: #fff; margin: 0; position: relative; }
#view-feed .feed-search input, #view-social .social-search input {
  min-height: 0;
  width: 100%; height: 36px; border-radius: 10px; border: none; background: var(--ios-fill); font-size: 17px;
  padding: 0 32px; color: var(--ios-label); outline: none; font-family: inherit; box-shadow: none;
}
#view-feed .feed-search input::placeholder, #view-social .social-search input::placeholder { color: var(--ios-sec); }
#view-feed .feed-search::before {
  content: ''; position: absolute; left: 25px; top: 10px; width: 16px; height: 16px; pointer-events: none;
  background: no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8e' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5L21 21'/%3E%3C/svg%3E");
}
#view-social .social-search .search-ic { left: 24px; color: var(--ios-sec); }

/* ---------- 分段控件 ---------- */
#view-social .seg-tabs, #view-profile .seg-tabs {
  display: flex; height: 32px; background: var(--ios-fill); border-radius: 9px; padding: 2px; gap: 0; border: none;
}
#view-social .seg-tabs { margin: 12px 16px 8px; }
#view-social .seg, #view-profile .seg {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 500;
  border-radius: 7px; border: none; background: transparent; color: var(--ios-label); padding: 0; height: auto; box-shadow: none;
}
#view-social .seg.active, #view-profile .seg.active {
  background: #fff; font-weight: 600; color: var(--ios-label); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
}
#view-social .seg::after, #view-profile .seg::after { display: none; }
#view-social .seg-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--ios-tint); }
#view-social .seg .ios-badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--ios-tint); color: #fff; font-size: 11px; font-weight: 600; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
#view-social .seg .ios-badge.hidden, #view-social .seg-dot.hidden { display: none; }
#view-social { background: #fff; }

/* ---------- 关注动态：分组卡片 ---------- */
#view-social #social-body:has(.ipc) { background: var(--ios-gbg); padding: 12px 0 calc(var(--tabbar-h) + 16px); min-height: 100%; }
.ipc {
  background: #fff; border-radius: 16px; margin: 0 16px 12px; padding: 14px 16px 4px; border: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer;
}
.ipc-head { display: flex; align-items: center; gap: 10px; }
.ipc-head .avatar { width: 40px; height: 40px; font-size: 16px; flex-shrink: 0; }
.ipc-meta { min-width: 0; }
.ipc-name { font-size: 15px; font-weight: 600; line-height: 20px; }
.ipc-time { font-size: 13px; color: var(--ios-sec); margin-top: 1px; }
.ipc-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; flex-shrink: 0; }
.ipc-chip .ic { width: 13px; height: 13px; }
.tone-orange { background: #FFF1E6; color: #E8740C; } .tone-blue { background: #E8F1FF; color: #2F6FDB; }
.tone-purple { background: #F2ECFF; color: #7A4FD6; } .tone-teal { background: #E3F6F5; color: #138A84; }
.tone-green { background: #E5F8EF; color: #1F9D63; } .tone-pink { background: #FFECF1; color: #D9406D; }
.tone-gray { background: var(--ios-fill); color: var(--ios-sec); }
.ipc .ipc-title { font-size: 17px; font-weight: 600; line-height: 22px; margin: 10px 0 0; color: var(--ios-label); }
.ipc .ipc-body { font-size: 15px; line-height: 21px; color: #3c3c43; margin-top: 4px; white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ipc-photos { display: grid; gap: 3px; margin-top: 10px; border-radius: 12px; overflow: hidden; }
.ipc-photos img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ios-fill); }
.ipc-photos.n1 { grid-template-columns: 1fr; aspect-ratio: 4 / 3; max-height: 320px; }
.ipc-photos.n2 { grid-template-columns: 1fr 1fr; height: 170px; }
.ipc-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 190px; }
.ipc-photos.n3 img:first-child { grid-row: span 2; }
.ipc-loc { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ios-sec); margin-top: 8px; }
.ipc-loc .ic { width: 14px; height: 14px; color: var(--ios-tint); }
.ipc-actions { display: flex; justify-content: space-between; height: 40px; align-items: center; margin-top: 4px; }
.ipc-act { display: inline-flex; align-items: center; gap: 5px; border: none; background: none; color: var(--ios-sec); font-size: 14px; padding: 6px 4px; cursor: pointer; font-family: inherit; }
.ipc-act .ic { width: 21px; height: 21px; }
.ipc-act.on, .ipc-act.fav-on { color: var(--ios-tint); }
.ipc-act.on .ic, .ipc-act.fav-on .ic { fill: var(--ios-tint); stroke: var(--ios-tint); }
.ipc-act:active { opacity: .5; }

/* ---------- 发现：芯片 + 两列瀑布流 ---------- */
#view-feed { background: var(--ios-gbg); }
#view-feed .page-head, #view-feed .feed-search, #view-feed #feed-chips { background: #fff; }
#view-feed #feed-chips { display: flex; gap: 8px; padding: 12px 16px 10px; overflow-x: auto; scrollbar-width: none; margin: 0; flex-shrink: 0; }
#view-feed #feed-chips::-webkit-scrollbar { display: none; }
#view-feed .chip {
  flex-shrink: 0; height: 32px; padding: 0 13px; border-radius: 16px; border: none; background: var(--ios-fill);
  color: var(--ios-label); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; box-shadow: none;
}
#view-feed .chip .ic { width: 16px; height: 16px; }
#view-feed .chip.active { background: #000; color: #fff; }
#view-feed .feed-list { padding: 8px 10px calc(var(--tabbar-h) + 16px); background: var(--ios-gbg); }
.wf-grid { display: flex; gap: 8px; align-items: flex-start; }
.wf-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.wf-card { background: #fff; border-radius: 12px; overflow: hidden; cursor: pointer; }
.wf-cover { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; background: var(--ios-fill); }
.wf-col:nth-child(2) .wf-card:nth-child(odd) .wf-cover, .wf-col:nth-child(1) .wf-card:nth-child(even) .wf-cover { aspect-ratio: 1 / 1; }
.wf-text { aspect-ratio: 1 / 1; padding: 14px; font-size: 15px; font-weight: 600; line-height: 21px; display: flex; align-items: center; overflow: hidden; word-break: break-word; }
.wf-title { font-size: 14px; font-weight: 600; line-height: 19px; padding: 8px 10px 0; color: var(--ios-label); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.wf-foot { display: flex; align-items: center; gap: 5px; padding: 8px 10px 10px; font-size: 12px; color: var(--ios-sec); }
.wf-av { width: 18px; height: 18px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.wf-av-fb { background: var(--ios-fill); color: var(--ios-sec); font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.wf-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.wf-like { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; border: none; background: none; color: var(--ios-sec); font-size: 12px; padding: 2px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.wf-like .ic { width: 14px; height: 14px; }
.wf-like.on { color: var(--ios-tint); } .wf-like.on .ic { fill: var(--ios-tint); stroke: var(--ios-tint); }

/* ---------- 我的 ---------- */
#view-profile { background: #fff; }
#view-profile .ipf { position: relative; padding: calc(env(safe-area-inset-top, 0px) + 10px) 20px 0; min-height: 0; height: auto;
  background: linear-gradient(180deg, #FFF1EE 0%, #fff 220px); background-size: cover; color: var(--ios-label); }
#view-profile .ipf::before, #view-profile .ipf::after { display: none; }
#view-profile .ipf[style*="background-image"] { background-size: cover; }
.ipf-navbtns { display: flex; justify-content: flex-end; gap: 14px; height: 44px; align-items: center; }
#view-profile .ipf .pf-settings { position: static; }
#view-profile .ipf-inner { padding: 0; text-align: left; position: static; display: block; }
.ipf-id { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
#view-profile .ipf .pf-avatar { width: 84px; height: 84px; font-size: 32px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); margin: 0; flex-shrink: 0; }
.ipf-namebox { min-width: 0; }
#view-profile .ipf .pf-name { font-size: 24px; font-weight: 700; line-height: 30px; color: var(--ios-label); text-align: left; margin: 0; text-shadow: none; }
#view-profile .ipf .pf-bio { font-size: 15px; line-height: 21px; color: #3c3c43; margin: 14px 0 0; text-align: left; text-shadow: none; opacity: 1; }
#view-profile .ipf-stats { display: flex; margin: 16px 0 0; background: none; border: none; padding: 0; gap: 0; box-shadow: none; }
#view-profile .ipf-stats .stat { flex: 1; text-align: center; color: var(--ios-label); }
#view-profile .ipf-stats .stat b { display: block; font-size: 19px; font-weight: 700; color: var(--ios-label); }
#view-profile .ipf-stats .stat span { font-size: 13px; color: var(--ios-sec); }
.ipf-btns { display: flex; gap: 10px; margin: 16px 0 14px; }
#view-profile .ipf .pf-edit-btn { flex: 1; height: 36px; border-radius: 10px; border: none; background: var(--ios-fill); color: var(--ios-label);
  font-size: 15px; font-weight: 600; margin: 0; padding: 0; position: static; backdrop-filter: none; font-family: inherit; }
.ipf-btn-sq { width: 44px; height: 36px; border-radius: 10px; border: none; background: var(--ios-fill); color: var(--ios-label); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ipf-btn-sq .ic { width: 18px; height: 18px; }
#view-profile .pf-tabs { margin: 0 20px 2px; position: static; }
#view-profile .my-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 0 calc(var(--tabbar-h) + 8px); }
#view-profile .my-grid > div { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 0; background: var(--ios-fill); cursor: pointer; }
#view-profile .my-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
#view-profile .my-grid .noimg { padding: 10px; font-size: 13px; line-height: 18px; color: #3c3c43; height: 100%; }
.grid-likes { position: absolute; left: 6px; bottom: 5px; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 2px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.grid-likes .ic { width: 12px; height: 12px; fill: #fff; stroke: #fff; }
.noimg + .grid-likes { color: var(--ios-sec); text-shadow: none; } .noimg + .grid-likes .ic { fill: var(--ios-sec); stroke: var(--ios-sec); }
#view-profile .login-hint .big { margin-bottom: 10px; }

/* ---------- 聊天（iMessage 风格）---------- */
#dm-modal .modal-card { background: #fff; padding: 0; }
#dm-modal .dm-head-ios {
  padding: calc(env(safe-area-inset-top, 0px) + 6px) 8px 6px; min-height: 56px; display: flex; align-items: center;
  background: rgba(249,249,249,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: .5px solid rgba(0,0,0,.15);
}
#dm-modal .dm-back { width: 60px; height: 44px; display: flex; align-items: center; color: var(--ios-tint); background: none; border: none; padding: 0 0 0 4px; font-size: 17px; cursor: pointer; }
#dm-modal .dm-title-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
#dm-modal .dm-title-wrap .avatar { width: 32px; height: 32px; font-size: 13px; }
#dm-modal .dm-title-wrap .dm-name { font-size: 12px; font-weight: 500; color: var(--ios-label); max-width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#dm-modal .dm-head-spacer { width: 60px; }
#dm-modal .dm-msgs { background: #fff; padding: 10px 16px; gap: 3px; }
#dm-modal .dm-day { text-align: center; font-size: 11px; font-weight: 500; color: var(--ios-sec); margin: 12px 0 6px; background: none; padding: 0; }
#dm-modal .dm-msg { max-width: 75%; animation: none; }
#dm-modal .dm-msg + .dm-msg.mine, #dm-modal .dm-msg.mine + .dm-msg:not(.mine) { margin-top: 8px; }
#dm-modal .dm-bubble { background: #E9E9EB; color: #000; padding: 8px 13px; font-size: 17px; line-height: 22px; border-radius: 19px; box-shadow: none; word-break: break-word; white-space: pre-wrap; }
#dm-modal .dm-msg.mine .dm-bubble { background: var(--ios-tint); color: #fff; border-radius: 19px; }
#dm-modal .dm-time { display: none; }
#dm-modal .dm-read { font-size: 11px; font-weight: 500; color: var(--ios-sec); margin-top: 2px; align-self: flex-end; }
#dm-modal .dm-share-card { width: 240px; max-width: 100%; border-radius: 16px; overflow: hidden; background: #E9E9EB; padding: 0; display: block; box-shadow: none; cursor: pointer; }
#dm-modal .dm-msg.mine .dm-share-card { background: #E9E9EB; }
#dm-modal .dm-share-img { width: 100%; height: 120px; object-fit: cover; display: block; border-radius: 0; }
#dm-modal .dm-share-body { padding: 8px 12px 10px; }
#dm-modal .dm-share-title { font-size: 15px; font-weight: 600; line-height: 20px; color: #000; }
#dm-modal .dm-share-loc { font-size: 12px; color: var(--ios-sec); margin-top: 2px; }
#dm-modal .dm-share-txt { padding: 10px 12px; font-size: 15px; }
#dm-modal .dm-img { border-radius: 16px; max-width: 220px; }
#dm-modal .dm-input-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(249,249,249,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid rgba(0,0,0,.12);
}
#dm-modal .dm-plus-btn { width: 32px; height: 32px; border-radius: 16px; background: var(--ios-fill); color: #8E8E93; border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; cursor: pointer; }
.dm-field { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 36px; border-radius: 18px; border: .5px solid rgba(0,0,0,.2); background: #fff; padding: 0 3px 0 14px; }
#dm-modal .dm-field input { flex: 1; min-width: 0; border: none; background: transparent; font-size: 17px; padding: 6px 0; outline: none; box-shadow: none; font-family: inherit; border-radius: 0; }
#dm-modal .dm-field input:focus { background: transparent; box-shadow: none; }
#dm-modal .dm-field input::placeholder { color: var(--ios-ter); }
#dm-modal .dm-send-btn { width: 30px; height: 30px; border-radius: 15px; border: none; background: var(--ios-tint); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 0; cursor: pointer; transition: opacity .15s; }
.dm-field:has(input:placeholder-shown) .dm-send-btn { opacity: .35; }

@media (prefers-reduced-motion: reduce) { .ipc-act, .wf-like, #dm-modal .dm-send-btn { transition: none; } }

/* 修正：设置按钮沿用 iOS 圆形按钮；统计数字去阴影；聊天输入框高度 */
#view-profile .ipf .pf-settings { width: 34px; height: 34px; border-radius: 17px; background: var(--ios-fill); color: var(--ios-tint); backdrop-filter: none; top: auto; right: auto; }
#view-profile .ipf { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
#view-profile .ipf-stats .stat b, #view-profile .ipf-stats .stat span, #view-profile .ipf .pf-name { text-shadow: none; }
#dm-modal .dm-field input { height: 34px; min-height: 0; padding: 0; }
#view-profile .ipf { margin: 0; cursor: default; }

/* 桌面：重做的页面居中为手机宽度栏（两侧灰底） */
@media (min-width: 700px) {
  #view-feed, #view-social, #view-profile { padding-left: calc(50% - 280px); padding-right: calc(50% - 280px); background: var(--ios-gbg); }
  #view-social .social-head, #view-social .social-search, #view-profile #profile-body { background: #fff; }
  #view-social .seg-tabs { margin: 0; border-radius: 0; padding: 12px 16px 8px; background: #fff; height: auto; }
  #view-social .seg-tabs .seg { height: 28px; background-clip: padding-box; }
  #view-social .seg-tabs { background: linear-gradient(var(--ios-fill), var(--ios-fill)) content-box, #fff; }
  #dm-modal .modal-card { max-width: 560px; margin: 0 auto; }
}

/* 我的：有封面图时加深色渐变遮罩，文字改白色 (v245) */
#view-profile .ipf[style*="background-image"]::before { display: block; content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.7) 100%); pointer-events: none; z-index: 0; }
#view-profile .ipf[style*="background-image"] > * { position: relative; z-index: 1; }
#view-profile .ipf[style*="background-image"] .pf-name,
#view-profile .ipf[style*="background-image"] .pf-bio,
#view-profile .ipf[style*="background-image"] .ipf-stats .stat,
#view-profile .ipf[style*="background-image"] .ipf-stats .stat b { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
#view-profile .ipf[style*="background-image"] .ipf-stats .stat span { color: rgba(255,255,255,.85); }
#view-profile .ipf[style*="background-image"] .pf-edit-btn,
#view-profile .ipf[style*="background-image"] .ipf-btn-sq { background: rgba(255,255,255,.22); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#view-profile .ipf[style*="background-image"] .pf-settings { color: #fff; }

/* v246: 发现页分类标签右侧渐隐提示可滑动；底部导航文字加大加深 */
#view-feed #feed-chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
#tabbar .tab { font-size: 11px; font-weight: 600; color: #6b6b70; }
#tabbar .tab.active { color: var(--ios-label, #000); }
/* v247 热门标签 */
#view-feed .chip.chip-hot { color: #ff5a1f; }
#view-feed .chip.chip-hot.active { background: linear-gradient(135deg, #ff7a18, #ff3d3d); color: #fff; }
.tone-red { background: #FFEBEA; color: #D93025; }

/* ===== v248 我的页 · 方案 B 沉浸深色（仅限 #view-profile） ===== */
#view-profile.pfb-on { background: #0E0E10; color: #F2F2F2; color-scheme: dark; }
#view-profile.pfb-on #profile-body { background: #0E0E10; min-height: 100%; }
#view-profile .pfb-bar { position: sticky; top: 0; z-index: 5; height: calc(env(safe-area-inset-top, 0px) + 52px); margin-bottom: calc(-1 * (env(safe-area-inset-top, 0px) + 52px));
  display: flex; align-items: flex-end; justify-content: space-between; padding: 0 12px 8px 20px; box-sizing: border-box;
  transition: background-color .25s ease, -webkit-backdrop-filter .25s ease, backdrop-filter .25s ease; }
#view-profile .pfb-bar-name { font-size: 16px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .25s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-bottom: 8px; }
#view-profile.pfb-scrolled .pfb-bar { background: rgba(14,14,16,.78); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); box-shadow: 0 .5px 0 rgba(255,255,255,.08); }
#view-profile.pfb-scrolled .pfb-bar-name { opacity: 1; }
#view-profile .pfb-iconbtn { width: 40px; height: 40px; border-radius: 12px; border: none; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
#view-profile .pfb-iconbtn .ic { width: 22px; height: 22px; }
#view-profile .pfb-hero { position: relative; min-height: min(560px, 74vh); display: flex; align-items: flex-end; cursor: pointer;
  background: radial-gradient(circle at 75% 28%, rgba(255,170,130,.22), transparent 48%), linear-gradient(160deg, #23263a 0%, #3a3047 48%, #5a3b3a 100%);
  background-size: cover; background-position: center; }
#view-profile .pfb-hero.has-cover { background-size: cover; background-repeat: no-repeat; }
#view-profile .pfb-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,14,16,.35) 0%, rgba(14,14,16,0) 22%, rgba(14,14,16,.15) 42%, rgba(14,14,16,.7) 70%, #0E0E10 100%); }
#view-profile .pfb-head { position: relative; z-index: 1; width: 100%; padding: 0 24px 8px; box-sizing: border-box; cursor: default; }
#view-profile .pfb-avatar { width: 72px; height: 72px; font-size: 28px; border-radius: 36px; border: 2px solid rgba(255,255,255,.85); margin: 0; box-shadow: none; }
#view-profile .pfb-name { font-size: 32px; font-weight: 300; letter-spacing: -.5px; line-height: 40px; margin-top: 14px; color: #fff; word-break: break-word; }
#view-profile .pfb-bio { font-size: 15px; line-height: 21px; color: rgba(255,255,255,.65); margin-top: 6px; }
#view-profile .pfb-stats { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 16px; min-height: 18px; display: flex; flex-wrap: wrap; align-items: center; }
#view-profile .pfb-stats b { color: #fff; font-weight: 600; margin-right: 3px; }
#view-profile .pfb-stats .stat[data-action] { cursor: pointer; }
#view-profile .pfb-dot { margin: 0 10px; opacity: .6; }
#view-profile .pfb-acts { display: flex; gap: 10px; margin-top: 20px; }
#view-profile .pfb-primary { flex: 1; height: 44px; border-radius: 12px; border: none; background: #FF5A4E; color: #fff; font-size: 15px; font-weight: 500; font-family: inherit; cursor: pointer; }
#view-profile .pfb-primary:active { opacity: .85; }
#view-profile .pfb-share { width: 44px; height: 44px; background: rgba(255,255,255,.1); }
#view-profile .pfb-share .ic { width: 19px; height: 19px; }
#view-profile .pfb-tabs { display: flex; gap: 28px; padding: 26px 24px 0; }
#view-profile .pfb-tab { border: none; background: none; padding: 0 0 4px; font-size: 16px; font-family: inherit; color: rgba(255,255,255,.4); cursor: pointer; position: relative; }
#view-profile .pfb-tab.active { color: #fff; font-weight: 600; }
#view-profile .pfb-tab.active::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 3px; background: #FF5A4E; margin: 6px auto 0; }
#view-profile .pfb-tab:not(.active)::after { content: ""; display: block; height: 5px; margin-top: 6px; }
#view-profile .pfb-tab:focus-visible, #view-profile .pfb-iconbtn:focus-visible, #view-profile .pfb-primary:focus-visible { outline: 2px solid #FF5A4E; outline-offset: 2px; }
#view-profile.pfb-on #profile-list { padding-top: 14px; }
#view-profile.pfb-on .my-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
#view-profile.pfb-on .my-grid > div { aspect-ratio: 4 / 5; background: #1c1c1f; }
#view-profile.pfb-on .my-grid .noimg { color: rgba(255,255,255,.7); padding: 14px; font-size: 14px; line-height: 20px; }
#view-profile.pfb-on .noimg + .grid-likes { color: rgba(255,255,255,.45); } #view-profile.pfb-on .noimg + .grid-likes .ic { fill: rgba(255,255,255,.45); stroke: rgba(255,255,255,.45); }
#view-profile.pfb-on .loading { color: rgba(255,255,255,.45); }
#view-profile .pfb-empty { padding: 56px 24px calc(var(--tabbar-h) + 40px); text-align: center; font-size: 14px; color: rgba(255,255,255,.4); }
#view-profile .pfb-foot { position: relative; margin: 0 0 calc(var(--tabbar-h) + 16px); }
#view-profile #pfb-footmap { height: 420px; background: #141416; }
#view-profile .pfb-foot-cap { position: absolute; left: 24px; bottom: 18px; font-size: 13px; color: rgba(255,255,255,.55); pointer-events: none; }
#view-profile .pfb-foot-cap b { color: #fff; font-weight: 600; font-size: 15px; }
/* 未登录 */
#view-profile.pfb-out { background: #FAFAF8; }
#view-profile.pfb-out #profile-body { background: #FAFAF8; min-height: 100%; }
#view-profile .pfl { min-height: 100%; padding-bottom: calc(var(--tabbar-h) + 24px); }
#view-profile .pfl-hero { position: relative; height: min(520px, 62vh); background: url(../icons/me-map-bg.jpg) center / cover; }
#view-profile .pfl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(250,250,248,.2), rgba(250,250,248,.4) 50%, #FAFAF8); }
#view-profile .pfl-hero i { position: absolute; width: 9px; height: 9px; border-radius: 5px; background: #FF5A4E; box-shadow: 0 0 0 5px rgba(255,90,78,.18); z-index: 1; }
#view-profile .pfl-text { position: relative; z-index: 2; padding: 0 32px; margin-top: -60px; }
#view-profile .pfl-text h2 { font-size: 30px; font-weight: 600; letter-spacing: -.5px; line-height: 38px; color: #111; margin: 0; }
#view-profile .pfl-text p { font-size: 15px; color: #7a7a7a; margin: 10px 0 0; }
#view-profile .pfl-btn { width: 100%; margin-top: 30px; height: 50px; border-radius: 25px; border: none; background: #111; color: #fff; font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer; }
@media (min-width: 700px) {
  #view-profile.pfb-on { background: #050506; } #view-profile.pfb-on #profile-body { background: #0E0E10; }
  #view-profile.pfb-out #profile-body { background: #FAFAF8; }
}
@media (prefers-reduced-motion: reduce) { #view-profile .pfb-bar, #view-profile .pfb-bar-name { transition: none; } }
#view-profile .pfb-stats .stat { flex: none; text-align: left; white-space: nowrap; }
#view-profile .pfb-stats .stat b { display: inline; font-size: 14px; }
#view-profile.pfb-on .my-grid > div, #view-profile.pfb-on .my-grid img { border-radius: 0; }
#view-profile.pfb-on .my-grid .noimg { background: #1c1c1f; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; }
#view-profile .pfb-avatar:not(:has(img)) { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
