:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #252830;
  background: #eceef2;
  --blue: #4164f4;
  --blue-soft: #6da0ff;
  --ink: #252830;
  --muted: #a1a5ae;
  --line: #eef0f3;
  --canvas: #f4f5f8;
  --nav-height: 64px;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; }
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.site-brand-mark { position: relative; display: block; min-width: 0; overflow: hidden; }
.site-brand-mark img { display: block; width: 100%; height: auto; }
.site-brand-first { aspect-ratio: 2161 / 728; mix-blend-mode: multiply; }
/* Frame the second mark's artwork, leaving its original PNG unchanged. */
.site-brand-second { aspect-ratio: 1476 / 328; mix-blend-mode: multiply; }
.site-brand-second img { position: absolute; top: -81.7%; left: -10.16%; width: 120.19%; max-width: none; }
.site-brand-app { aspect-ratio: 1; }

.shell { width: min(100%, 520px); min-height: 100vh; margin: 0 auto; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); background: var(--canvas); box-shadow: 0 0 28px #222a3c10; }
.topbar { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; height: 54px; background: #fff; border-bottom: 1px solid #f2f3f5; }
.topbar h1 { min-width: 0; margin: 0; overflow: hidden; color: #181a20; text-align: center; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600; }
.menu-toggle { display: grid; align-content: center; justify-items: center; gap: 4px; width: 52px; height: 52px; padding: 0; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: #30343d; }
body[data-page="ranks"] .menu-toggle span, body.detail-post .menu-toggle span, body.connection-view .menu-toggle span, body.activity-view .menu-toggle span, body.other-profile .menu-toggle span { display: none; }
body[data-page="ranks"] .menu-toggle::before, body.detail-post .menu-toggle::before, body.connection-view .menu-toggle::before, body.activity-view .menu-toggle::before, body.other-profile .menu-toggle::before { content: ""; width: 12px; height: 12px; margin-left: 5px; border-bottom: 2px solid #30343d; border-left: 2px solid #30343d; transform: rotate(45deg); }
body.rank-detail-view .menu-toggle { visibility: hidden; }
.status { display: block; min-width: 0; margin-right: 12px; overflow: hidden; color: #b0b4bd; text-align: right; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.menu-backdrop { position: fixed; z-index: 30; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #10172580; }
.site-menu { position: fixed; z-index: 31; inset: 0 auto 0 0; display: flex; flex-direction: column; width: min(80vw, 300px); padding-bottom: env(safe-area-inset-bottom); overflow-y: auto; background: #fff; box-shadow: 5px 0 26px #1c264433; transform: translateX(-104%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
.menu-open .site-menu { transform: translateX(0); visibility: visible; }
.menu-head { position: relative; min-height: 116px; padding: 36px 20px 20px; border-bottom: 1px solid var(--line); color: var(--ink); }
.menu-app-logo { display: block; width: 28px; }
.menu-head > .site-brand-second { position: absolute; top: 39px; right: 20px; width: 88px; }
.menu-head small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }
.menu-close { position: absolute; top: 0; right: 0; width: 38px; height: 34px; padding: 0; border: 0; background: transparent; color: #8d929d; font-size: 29px; line-height: 1; }
.site-menu > a { display: flex; align-items: center; gap: 16px; min-height: 55px; padding: 0 21px; border-bottom: 1px solid var(--line); color: #535864; text-decoration: none; font-size: 15px; }
.site-menu > a svg { flex: 0 0 23px; width: 23px; height: 23px; color: #aeb3bc; }
.site-menu > a[aria-current="page"], .site-menu > a:hover { color: var(--blue); background: #f5f7ff; }
.site-menu > a[aria-current="page"] svg, .site-menu > a:hover svg { color: var(--blue); }
.menu-foot { display: grid; gap: 8px; margin-top: auto; padding: 22px; color: #a4a9b2; font-size: 12px; }
.menu-foot > .site-brand-first { width: 60px; margin-bottom: 6px; }
.text-button { justify-self: start; padding: 6px 0; border: 0; background: transparent; color: var(--blue); font-size: 13px; }
.bottom-nav { position: fixed; z-index: 12; left: 50%; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 520px); height: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); transform: translateX(-50%); border-top: 1px solid #eff0f3; background: #fff; box-shadow: 0 -2px 10px #26304b08; }
.bottom-nav-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #aeb3bc; text-decoration: none; font-size: 11px; }
.bottom-nav-link svg { width: 23px; height: 23px; }
.bottom-nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }

.panel { margin: 0; border: 0; background: #fff; }
#workspace { min-height: calc(100vh - 118px); }
#workspace .panel { min-height: calc(100vh - 118px); }
.section-heading { padding: 16px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 18px; }
.section-heading p { margin: 7px 0 0; color: #8d929d; font-size: 13px; line-height: 1.6; }
.login-panel { position: relative; display: grid; place-items: center; min-height: calc(100vh - 118px); min-height: calc(100dvh - 118px - env(safe-area-inset-bottom)); padding: 76px 26px 64px; background: linear-gradient(180deg, #f1f5ff 0, #fff 280px); }
.login-panel > .site-brand-first { position: absolute; top: 24px; left: 24px; width: clamp(88px, 26vw, 110px); }
.login-panel > .site-brand-second { position: absolute; right: 24px; bottom: 24px; width: clamp(88px, 27vw, 118px); }
.login-content { width: 100%; max-width: 352px; }
.login-app-logo { display: block; width: min(220px, 70vw); aspect-ratio: 11 / 4; margin: 0 auto 18px; }
.login-app-logo .site-brand-login { height: 100%; }
.login-app-logo .site-brand-login img { position: absolute; top: 50%; transform: translateY(-50%); }
.login-brand { margin: 0 0 8px; color: #7a88a5; text-align: center; font-size: 12px; letter-spacing: 1px; }
.login-panel .section-heading { padding: 0 0 24px; border: 0; text-align: center; }
.login-panel .section-heading h2 { color: #252d42; font-size: 24px; font-weight: 600; line-height: 1.45; }
.login-panel .section-heading p { margin-top: 10px; color: #80899b; font-size: 13px; line-height: 1.8; }
.login-form { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px 12px; }
.login-form label:nth-child(3), .login-form button { grid-column: 1 / -1; }
.login-form label { gap: 8px; color: #616b7f; font-size: 12px; }
.login-form input { height: 49px; border-color: #e6eaf2; border-radius: 10px; background: #fbfcff; font-size: 16px; }
.login-form input::placeholder { color: #a7afbd; font-size: 14px; }
.login-form input:focus { border-color: var(--blue); background: #fff; }
.login-form .primary-button { min-height: 49px; margin-top: 5px; border-radius: 11px; font-size: 16px; font-weight: 500; box-shadow: 0 5px 14px #4164f41a; }
.login-hint { margin: 14px 0 16px; color: #949cad; text-align: center; font-size: 12px; }
.login-alternate { display: block; width: fit-content; min-height: 44px; margin: 0 auto; padding: 12px; border: 0; background: transparent; color: #697995; text-align: center; text-decoration: none; font-size: 13px; }
.login-alternate:hover { color: var(--blue); }
.session-loading { display: grid; place-items: center; min-height: calc(100dvh - 118px); color: #8792a7; background: #fff; font-size: 14px; }
body.auth-required .shell, body.login-open .shell { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); background: #fff; }
body.auth-required .bottom-nav, body.login-open .bottom-nav { display: grid; }
body.vae-calendar-view.login-open .shell { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
body.vae-calendar-view.login-open .bottom-nav { display: grid; }
body.login-open .vae-calendar-top-action, body.login-open .vae-calendar-actions { display: none; }
body:not(.authenticated) .feed-topbar .tabs, body:not(.authenticated) .feed-compose-button,
body:not(.authenticated) .feed-search-button svg, body:not(.authenticated) .topics-apply { display: none; }
body:not(.authenticated) .feed-topbar h1 { position: static; grid-column: 2; grid-row: 1; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
body:not(.authenticated) .feed-search-button::before { content: ""; width: 19px; height: 2px; background: #30343d; box-shadow: 0 -6px #30343d, 0 6px #30343d; }
body[data-page="topic"].auth-required .login-panel { min-height: calc(100dvh - var(--nav-height) - env(safe-area-inset-bottom)); }
label { display: grid; gap: 7px; min-width: 0; color: #737986; font-size: 13px; }
input { min-width: 0; width: 100%; height: 44px; padding: 0 12px; border: 1px solid #e0e4ec; border-radius: 7px; outline: none; background: #fff; color: var(--ink); font-size: 15px; }
input:focus { border-color: var(--blue); }
.primary-button, .secondary-button { min-height: 40px; padding: 8px 14px; border-radius: 8px; font-size: 14px; }
.primary-button { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.secondary-button { border: 1px solid #dce3f1; background: #fff; color: var(--blue); }
.primary-button:hover { background: #3655d5; }
.secondary-button:hover { background: #f5f7ff; }
button:disabled { cursor: wait; opacity: .55; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 13px 15px 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-form { padding: 13px 15px 17px; }
.search-form label { flex: 0 0 100%; }
.search-form input { flex: 1 1 150px; width: auto; }
.search-form button { flex: 0 0 auto; }
.inline-status { min-height: 20px; margin: 0; padding: 12px 16px; color: #929ba9; font-size: 12px; }
.inline-status:empty { display: none; }
.notice { padding: 11px 16px; border-bottom: 1px solid #f4e7cd; background: #fff9eb; color: #8d6831; font-size: 13px; line-height: 1.5; }
.notice.success { border-color: #d9ede1; background: #f0f9f4; color: #398761; }
.result-slot:empty { display: none; }
.empty { margin: 0; padding: 18px 16px; color: #9ba1ab; font-size: 13px; line-height: 1.55; }
.meta { color: var(--muted); font-size: 12px; line-height: 1.5; }
.more-button { display: block; margin: 15px auto 24px; }

.tabs { display: flex; margin: 0; background: #fff; }
.tab { position: relative; flex: 1 1 0; min-width: 0; min-height: 48px; padding: 9px 5px; border: 0; background: transparent; color: #a0a4ad; white-space: nowrap; font-size: 16px; }
.tab.active { color: var(--blue); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 3px; border-radius: 3px; transform: translateX(-50%); background: var(--blue); }

.card { background: #fff; }
.card h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.card p { margin: 0; color: #3e424b; font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.user-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-text { flex: 1; min-width: 0; }
.user-name { display: block; max-width: 100%; overflow: hidden; color: #353942; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
a.user-name:hover { color: var(--blue); }
.user-text .meta { margin: 3px 0 0; }
.avatar { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 5px; background: #e6ecfb; color: #718bd6; }
.avatar-link { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { font-size: 16px; font-weight: 600; }
.author-avatar-wrap { position: relative; display: inline-flex; flex: 0 0 40px; width: 40px; height: 40px; }
.author-avatar-wrap .profile-avatar-identity { right: -5px; bottom: -4px; width: 18px; height: 18px; border-width: 1px; }
.author-avatar-wrap .profile-avatar-identity-fallback { font-size: 11px; }
.author-time { flex: 0 0 auto; align-self: flex-start; padding-top: 2px; color: #a0a5af; white-space: nowrap; font-size: 12px; }
.author-subtitle { display: block; margin-top: 3px; overflow: hidden; color: #9da3ae; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.picture { display: block; margin: 0; overflow: hidden; background: #edf0f5; }
.picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.picture-failed { display: grid; place-items: center; min-height: 90px; padding: 10px; text-align: center; }
.picture-failed .empty { padding: 4px; }
.topic-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; color: var(--blue); font-size: 13px; }
.topic-chip { max-width: 100%; overflow-wrap: anywhere; }
.topic-row a.topic-chip { color: var(--blue); text-decoration: none; }
.topic-row a.topic-chip:hover { text-decoration: underline; }
.secondary-link { display: inline-flex; align-items: center; margin-top: 10px; color: var(--blue); text-decoration: none; font-size: 13px; }
.secondary-link::after { content: "›"; margin-left: 4px; font-size: 18px; }

/* 圈子顶部按提供的 2.6.8 截图还原；频道图标从该截图定位显示。 */
.feed-topbar { grid-template-columns: 54px minmax(0, 1fr) 54px; border-bottom: 0; }
.feed-topbar .tabs { grid-column: 2; grid-row: 1; height: 54px; }
.feed-topbar .tab { min-height: 54px; padding: 8px 0; font-size: 17px; font-weight: 400; }
.feed-topbar .tab.active { font-weight: 500; }
.feed-topbar .tab.active::after { width: 16px; height: 2px; border-radius: 0; }
.feed-topbar .tab[data-feed="hot"]::before { content: ""; position: absolute; top: 11px; left: calc(50% + 20px); width: 5px; height: 5px; border-radius: 50%; background: #ff393c; }
.feed-search-button { grid-column: 1; grid-row: 1; width: 54px; height: 54px; color: #33363d; }
.feed-search-button span { display: none; }
.feed-search-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.feed-compose-button { display: grid; grid-column: 3; grid-row: 1; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; background: transparent; color: var(--blue); }
.feed-compose-button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.feed-topbar .status { position: absolute; }
.feed-page { background: var(--canvas) !important; }
.feed-channels { display: flex; padding: 12px 0 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; background: #fff; }
.feed-channels::-webkit-scrollbar, .feed-trending-list::-webkit-scrollbar { display: none; }
.feed-channel-page { display: grid; flex: 0 0 100%; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 70px); row-gap: 9px; scroll-snap-align: start; }
.feed-channel { display: flex; flex-direction: column; align-items: center; min-width: 0; color: #696d75; text-decoration: none; }
.feed-channel-logo { display: block; flex: 0 0 46px; width: 72px; height: 46px; background-image: url('/assets/feed/circle-reference.png'); background-size: 393px 852px; background-repeat: no-repeat; }
.feed-channel-logo.feed-channel-image { display: grid; place-items: center; background: none; }
.feed-channel-image img { display: block; width: 72px; height: 46px; object-fit: contain; }
.logo-concert { background-position: -13px -117px; }
.logo-album { background-position: -111px -116px; }
.logo-gromi { background-position: -210px -116px; }
.logo-hangzhou { background-position: -309px -117px; }
.logo-wuhan { background-position: -13px -197px; }
.logo-guangzhou { background-position: -111px -197px; }
.logo-luoyang { background-position: -210px -197px; }
.logo-qingdao { background-position: -309px -197px; }
.feed-channel-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(11px, 3.4vw, 14px); line-height: 20px; }
.feed-channel:hover .feed-channel-name, .feed-trending-list a:hover { color: var(--blue); }
.feed-channel-indicator { position: relative; display: grid; place-items: center; height: 14px; background: #fff; }
.feed-channel-indicator::before { content: ""; display: block; width: 36px; height: 2px; background: #eff1f6; }
.feed-channel-indicator span { position: absolute; left: calc(50% - 18px); display: block; width: 12px; height: 2px; background: var(--blue); }
.feed-trending { padding: 16px 20px 13px; border-top: 6px solid var(--canvas); border-bottom: 6px solid var(--canvas); background: #fff; }
.feed-trending-heading { display: flex; align-items: center; justify-content: space-between; min-height: 25px; }
.feed-trending-heading h2 { margin: 0; color: #30343b; font-size: 18px; font-weight: 600; }
.feed-trending-heading a { color: #9fa3ab; text-decoration: none; font-size: 13px; }
.feed-trending-list { display: flex; gap: 12px; min-width: 0; margin-top: 12px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feed-trending-page { display: grid; flex: 0 0 calc(100% - 22px); min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, 27px); column-gap: 16px; scroll-snap-align: start; }
.feed-trending-list a { display: flex; align-items: center; min-width: 0; overflow: hidden; color: #737780; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.feed-trending-list a span { flex: 0 0 auto; margin-right: 5px; color: var(--blue); font-weight: 700; }
.feed-following-suggestions { display: flex; gap: 10px; min-width: 0; padding: 14px 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; border-bottom: 6px solid var(--canvas); background: #fff; }
.feed-following-suggestions::-webkit-scrollbar { display: none; }
.feed-following-suggestions a { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; min-width: clamp(90px, 23vw, 112px); max-width: 70vw; min-height: 38px; padding: 5px 12px; overflow: hidden; border: 1px solid #edf0f5; border-radius: 2px; color: #30343b; scroll-snap-align: start; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.feed-following-suggestions a:hover { border-color: var(--blue); }
.suggestion-hash, .suggestion-place { color: var(--blue); font-size: 19px; line-height: 1; }
.suggestion-hash { font-weight: 700; }
.suggestion-place svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* 圈子内容流与参考列表使用同一套头像、三列图片和底部信息层级。 */
.post-list { padding-top: 6px; }
.post-card { margin-bottom: 7px; padding: 16px 16px 14px; }
.post-card .author-row { margin-bottom: 13px; }
.post-card .post-title { margin: 0 0 10px; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { color: var(--blue); }
.post-body-link { display: block; color: inherit; text-decoration: none; }
.post-card .post-text { margin: 0 0 12px; color: #2f3239; font-size: 16px; line-height: 1.6; }
.post-pinned { display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 2px; background: var(--blue); color: #fff; vertical-align: 2px; white-space: nowrap; font-size: 12px; font-weight: 400; line-height: 1.4; }
.post-pinned-row { margin: 0 0 10px; }
.preview-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 11px 0 14px; }
.preview-gallery.gallery-count-1 { grid-template-columns: minmax(0, 1fr); }
.preview-gallery.gallery-count-2, .preview-gallery.gallery-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-link { display: block; min-width: 0; overflow: hidden; border-radius: 3px; }
.preview-gallery .picture { width: 100%; aspect-ratio: 1; border-radius: 3px; }
.gallery-count-1 .picture { width: min(100%, 360px); aspect-ratio: 4 / 3; }
.post-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.post-footer-tags { display: flex; flex: 1 1 auto; align-items: center; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.post-location { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--blue); font-size: 13px; }
.post-location svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.post-location span { overflow-wrap: anywhere; }
.post-footer .topic-row { margin: 0; }
.post-footer .post-stats { margin-left: auto; padding-top: 0; }
.post-stats { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; padding-top: 9px; color: #a0a6b0; }
.post-stats:empty { display: none; }
.post-stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 12px; }
.post-stat svg { width: 16px; height: 16px; }
.post-like-button { min-width: 44px; min-height: 36px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; color: inherit; }
.post-like-button:hover:not(:disabled):not(.is-liked) { background: #f1f5ff; color: var(--blue); }
.post-like-button.is-liked { color: var(--blue); cursor: default; }
.post-like-button.is-liked svg path { fill: currentColor; }
.post-like-button[aria-busy="true"] { cursor: wait; }

/* 热门话题独立列表 */
.topics-shell { padding-bottom: 0; background: #fff; }
.topics-topbar { grid-template-columns: 58px minmax(0, 1fr) 112px; height: 60px; border-bottom: 0; }
.topics-topbar h1 { font-size: 19px; }
.topics-back { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; background: transparent; color: #30343d; }
body[data-page="topics"] .bottom-nav { display: none; }
body[data-page="topics"].auth-required .bottom-nav { display: grid; }
.topics-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topics-apply { justify-self: end; min-height: 44px; margin-right: 16px; padding: 0; border: 0; background: transparent; color: var(--blue); white-space: nowrap; font-size: 16px; }
.topics-banner { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; }
.topics-list { margin: 0; padding: 0 20px; list-style: none; }
.topics-list li { border-bottom: 1px solid #f0f1f3; }
.topics-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; color: #171a20; text-decoration: none; }
.topics-list a:hover .topics-list-name { color: var(--blue); }
.topics-list-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.topics-list-name span { margin-right: 6px; color: var(--blue); font-weight: 700; }
.topics-list-heat { flex: 0 0 auto; color: #b6bac2; white-space: nowrap; font-size: 13px; }
.topics-action-message { margin: 0; padding: 10px 20px; background: #fff9eb; color: #8d6831; font-size: 13px; }

/* 话题详情：蓝色话题头部、筛选和频道帖子流。 */
.topic-shell { padding-bottom: 110px; background: #f3f4f7; }
body[data-page="topic"].authenticated .bottom-nav { display: none; }
.topic-hero { min-height: 297px; padding-bottom: 35px; background: #367bea url('/assets/feed/topic-wave.svg') repeat; color: #fff; }
.topic-nav { height: 62px; }
.topic-back { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; background: transparent; color: #fff; }
.topic-back svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic-hero-main { padding: 33px 20px 0; }
.topic-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.topic-heading h1 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: clamp(24px, 6.5vw, 29px); font-weight: 700; line-height: 1.3; }
.topic-follow { flex: 0 0 auto; min-width: 60px; min-height: 34px; padding: 3px 10px; border: 1px solid #ffffffa8; border-radius: 2px; background: transparent; color: #fff; font-size: 15px; }
.topic-follow.following { border-color: #ffffff69; color: #ecf3ff; }
.topic-counts { min-height: 20px; margin: 12px 0 0; color: #c9dbff; font-size: 13px; line-height: 1.5; }
.topic-description { min-height: 63px; margin-top: 19px; padding: 13px 16px; border-radius: 4px; background: #ffffff24; color: #e0eaff; font-size: 13px; line-height: 1.7; }
.topic-description > span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.topic-description button { padding: 0 0 0 3px; border: 0; background: transparent; color: #ffe78c; font-size: 13px; }
.topic-stream { position: relative; min-height: 55vh; margin-top: -13px; padding-bottom: 45px; border-radius: 11px 11px 0 0; background: #fff; }
.topic-filters { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 17px 0 21px; border-bottom: 1px solid #e9ebef; border-radius: 11px 11px 0 0; background: #fff; }
.topic-tabs { display: flex; align-items: center; gap: 24px; }
.topic-tabs button { min-height: 55px; padding: 0 4px; border: 0; background: transparent; color: #b9bec8; font-size: 16px; }
.topic-tabs button.active { color: #1d2026; font-weight: 600; }
.topic-sort-wrap { position: relative; }
.topic-sort-toggle { min-height: 33px; padding: 4px 9px; border: 1px solid #e5e8ee; border-radius: 3px; background: #fff; color: #24272e; font-size: 14px; }
.topic-sort-toggle span { padding-left: 3px; color: #9fa8b7; font-size: 18px; line-height: 0; }
.topic-sort-menu { position: absolute; z-index: 8; top: calc(100% + 5px); right: 0; min-width: 145px; padding: 4px; border: 1px solid #e3e7ee; border-radius: 5px; background: #fff; box-shadow: 0 7px 25px #26365926; }
.topic-sort-menu button { display: block; width: 100%; min-height: 39px; padding: 6px 9px; border: 0; background: transparent; color: #343a43; text-align: left; white-space: nowrap; font-size: 13px; }
.topic-sort-menu button:hover, .topic-sort-menu button:focus-visible { background: #eff4ff; color: var(--blue); }
.topic-status { margin: 0; padding: 13px 20px; color: #9aa1ae; font-size: 13px; line-height: 1.5; }
.topic-status:empty { display: none; }
.topic-stream .post-list { padding-top: 0; background: #f3f4f7; }
.topic-stream .post-card { margin-bottom: 7px; padding: 20px 20px 17px; }
.topic-stream .post-card .author-row { margin-bottom: 18px; }
.topic-stream .post-card .post-title { font-size: 17px; font-weight: 600; }
.topic-stream .preview-gallery { margin-top: 12px; }
.topic-participate { position: fixed; z-index: 6; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; gap: 9px; min-height: 49px; padding: 6px 19px 6px 7px; transform: translateX(-50%); border: 0; border-radius: 999px; background: #4164f4; box-shadow: 0 8px 25px #203aa54d; color: #fff; white-space: nowrap; font-size: 16px; }
.topic-participate span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #fff; color: #4164f4; font-size: 20px; }
.topic-details { width: min(calc(100% - 32px), 460px); max-width: none; max-height: min(75dvh, 640px); padding: 0 20px 22px; border: 0; border-radius: 11px; color: #363b45; box-shadow: 0 15px 55px #1b2e6066; }
.topic-details::backdrop { background: #101a3399; }
.topic-details-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-bottom: 1px solid #ecedf0; }
.topic-details-head h2 { margin: 0; font-size: 18px; }
.topic-details-head button { width: 38px; height: 38px; border: 0; background: transparent; color: #8f98a8; font-size: 28px; }
.topic-details p { max-height: calc(75dvh - 105px); margin: 17px 0 0; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.75; }

/* 发现：沿用圈子的帖子卡片，用户结果直接进入独立主页。 */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.discover-page { background: var(--canvas) !important; }
.discover-rank-entry { display: flex; align-items: center; gap: 12px; min-height: 77px; margin: 7px 0; padding: 12px 16px; background: #fff; color: var(--ink); text-decoration: none; }
.discover-rank-icon { display: grid; flex: 0 0 43px; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #e9f0ff; color: var(--blue); font-size: 29px; line-height: 1; }
.discover-rank-copy { display: grid; flex: 1; min-width: 0; gap: 5px; }
.discover-rank-copy strong { font-size: 16px; font-weight: 600; }
.discover-rank-copy small { color: #9ca3af; font-size: 12px; }
.discover-rank-chevron { color: #b5bbc5; font-size: 27px; }
.discover-search { display: flex; align-items: center; gap: 9px; min-width: 0; margin: 0; padding: 13px 16px; background: #fff; }
.discover-search-icon { display: inline-flex; flex: 0 0 20px; color: #a4aab5; }
.discover-search-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.discover-search input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 11px; border: 0; border-radius: 7px; background: #f3f5f8; font-size: 14px; }
.discover-search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.discover-search button { flex: 0 0 auto; min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: var(--blue); font-size: 14px; font-weight: 600; }
.discover-tabs { border-bottom: 1px solid var(--line); }
.discover-page .inline-status { padding: 13px 16px; background: #fff; }
.discover-page .post-list { padding-top: 0; }

/* 圈子搜索：无底部导航的独立 App 式搜索页。 */
.circle-search-shell { padding-bottom: 0; background: #fff; }
body[data-page="circle-search"].authenticated .bottom-nav { display: none; }
body[data-page="circle-search"].auth-required .circle-search-shell { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
.circle-search-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; gap: 15px; min-height: 62px; padding: 10px 6px 10px 15px; background: #fff; }
.circle-search-form { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; height: 36px; padding: 0 13px; border-radius: 6px; background: #f3f5f8; }
.circle-search-form svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #d7dbe3; stroke-width: 2.2; stroke-linecap: round; }
.circle-search-form input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #30343b; font-size: 16px; }
.circle-search-form input::placeholder { color: #c5c9d2; }
.circle-search-form:focus-within { outline: 2px solid #b9c8ff; }
.circle-search-cancel { flex: 0 0 auto; min-width: 39px; min-height: 40px; padding: 0; border: 0; background: transparent; color: #8d9199; font-size: 16px; }
.circle-search-section { padding: 20px 20px 0; }
.circle-search-section h1, .circle-search-section h2 { margin: 0; color: #24262c; font-size: 17px; font-weight: 600; line-height: 1.4; }
.circle-type-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.circle-type { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; min-width: 0; height: 73px; padding: 6px 2px; border: 0; background: #f3f5f8; color: #696d74; text-decoration: none; font-size: 13px; }
.circle-type svg { display: block; width: 24px; height: 24px; fill: none; stroke: #14171c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.circle-type:hover, .circle-type:focus-visible { background: #eaf0ff; color: #4164f4; }
.circle-type:hover svg, .circle-type:focus-visible svg { stroke: #4164f4; }
.circle-topic-section { padding-top: 35px; padding-bottom: 45px; }
.circle-topic-section h2 { display: flex; align-items: center; gap: 7px; }
.circle-new-mark { color: #4164f4; font-size: 11px; font-style: italic; font-weight: 800; letter-spacing: -.08em; transform: skew(-10deg); }
.circle-topics-status { margin: 18px 0 0; color: #a3a8b1; font-size: 13px; }
.circle-topics-status:empty { display: none; }
.circle-topic-list { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 5px; }
.circle-topic-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 31px; padding: 5px 14px; background: #f3f5f8; color: #696d74; text-decoration: none; overflow-wrap: anywhere; font-size: 14px; line-height: 21px; }
.circle-topic-chip:hover, .circle-topic-chip:focus-visible { background: #eaf0ff; color: #4164f4; }
.circle-search-results-view { min-height: calc(100dvh - 62px); background: #f4f5f8; }
.circle-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 17px; background: #fff; }
.circle-results-heading h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #252830; font-size: 16px; font-weight: 600; }
.circle-results-heading button { flex: 0 0 auto; min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: #4164f4; font-size: 13px; }
.circle-search-results-view .inline-status { margin: 0; padding: 10px 16px; background: #fff; color: #9ca3af; font-size: 13px; }
.circle-search-results-view .inline-status:empty { display: none; }
.circle-search-results-view .post-list { padding-top: 0; }

/* App 帖子类型页：独立双标签、分类型内容卡片。 */
.circle-type-shell { padding-bottom: 0; background: #f4f5f8; }
body[data-page="circle-type"].authenticated .bottom-nav { display: none; }
body[data-page="circle-type"].auth-required .circle-type-shell { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
.circle-type-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: stretch; height: 64px; border-bottom: 5px solid #f4f5f8; background: #fff; }
.circle-type-back { display: grid; flex: 0 0 54px; place-items: center; padding: 0; border: 0; background: #fff; color: #2d3037; }
.circle-type-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circle-type-tabs { display: flex; flex: 1; min-width: 0; }
.circle-type-tabs button { position: relative; flex: 1 1 0; min-width: 0; padding: 0 2px; border: 0; background: #fff; color: #989ba2; white-space: nowrap; font-size: clamp(15px, 4.5vw, 19px); }
.circle-type-tabs button[aria-selected="true"] { color: #4164f4; font-weight: 600; }
.circle-type-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 14px; height: 3px; transform: translateX(-50%); background: #4164f4; }
.circle-type-status { margin: 0; padding: 13px 20px; background: #fff; color: #9ca3ae; font-size: 13px; }
.circle-type-status:empty { display: none; }
.circle-type-results { min-height: calc(100dvh - 64px); }
.circle-list-card { margin-bottom: 6px; padding: 20px 20px 13px; background: #fff; }
.circle-list-card .author-row { margin-bottom: 17px; }
.circle-list-card .avatar, .circle-list-card .author-avatar-wrap { flex-basis: 40px; width: 40px; height: 40px; }
.circle-list-card .user-name { color: #686b72; font-size: 16px; font-weight: 400; }
.circle-list-card .author-time { color: #a5a9b1; font-size: 12px; }
.circle-content-link { display: block; min-width: 0; margin-bottom: 13px; color: #313238; text-decoration: none; }
.circle-content-title { margin: 0 0 12px; color: #14161c; font-size: 19px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.circle-content-text { display: -webkit-box; margin: 0; overflow: hidden; color: #303239; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.circle-list-text .circle-content-link[style] { min-height: 112px; padding: 20px; border-radius: 9px; }
.circle-list-text .circle-content-link[style] .circle-content-text { -webkit-line-clamp: 5; }
.circle-list-long .circle-content-text { -webkit-line-clamp: 4; }
.circle-list-image .circle-content-text, .circle-list-voice .circle-content-text { -webkit-line-clamp: 3; }
.circle-type-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; margin-top: 12px; }
.circle-type-footer .post-footer-tags { gap: 7px 16px; }
.circle-type-footer .post-location, .circle-type-footer .topic-row { font-size: 13px; }
.circle-type-footer .post-stats { flex: 0 0 auto; gap: 12px; margin-left: auto; padding: 0; }
.circle-type-footer .post-stat { color: #a2a7af; font-size: 12px; }
.circle-type-footer .post-like-button { min-width: 34px; padding-right: 0; }
.circle-image-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 15px; }
.circle-image-gallery.circle-image-count-1 { display: block; }
.circle-image-gallery.circle-image-count-2, .circle-image-gallery.circle-image-count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.circle-image-item { display: block; min-width: 0; overflow: hidden; border-radius: 3px; background: #f0f1f4; }
.circle-image-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.circle-image-count-1 .circle-image-item { width: min(70%, 270px); }
.circle-image-count-1 .circle-image-item img { width: 100%; max-height: 410px; aspect-ratio: auto; object-fit: contain; object-position: left top; }
.circle-long-image { display: block; width: min(70%, 270px); max-height: 200px; margin-top: 12px; overflow: hidden; border-radius: 3px; }
.circle-long-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.circle-voice-player { display: flex; align-items: center; gap: 12px; height: 47px; margin: 15px 0; padding: 0 14px; border-radius: 5px; background: #3c5fe9; color: #fff; }
.circle-voice-toggle { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 38px; padding: 0; border: 0; background: transparent; color: #fff; }
.circle-voice-toggle:disabled { opacity: .55; }
.circle-voice-play-icon { display: block; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; }
.circle-voice-toggle.playing .circle-voice-play-icon { width: 12px; height: 15px; border-top: 0; border-bottom: 0; border-right: 4px solid currentColor; border-left: 4px solid currentColor; }
.circle-voice-wave { display: flex; flex: 1; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 32px; overflow: hidden; cursor: pointer; }
.circle-voice-wave span { flex: 0 0 2px; border-radius: 2px; background: #91aaff; }
.circle-voice-wave span.played { background: #fff; }
.circle-voice-duration { flex: 0 0 auto; font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; }
.circle-voice-player audio { display: none; }
.circle-video-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; padding: 10px; }
.circle-video-column { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.circle-video-card { width: 100%; overflow: hidden; border-radius: 5px; background: #fff; }
.circle-video-cover { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; background: linear-gradient(145deg, #222837, #596173); }
.circle-video-cover.has-image { aspect-ratio: auto; }
.circle-video-cover img { display: block; width: 100%; height: auto; max-height: 330px; object-fit: cover; }
.circle-video-title { display: -webkit-box; margin: 12px 10px 10px; overflow: hidden; color: #313238; font-size: 15px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.circle-video-title a { color: inherit; text-decoration: none; }
.circle-video-author { display: flex; align-items: center; gap: 5px; min-width: 0; padding: 0 8px 10px; color: #a4a8b1; font-size: 12px; }
.circle-video-author .avatar { flex-basis: 21px; width: 21px; height: 21px; border-radius: 3px; }
.circle-video-author > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.circle-video-author .post-like-button { min-width: 0; min-height: 28px; padding: 0; color: #9da3ad; }
.circle-video-author .post-stat svg { width: 17px; height: 17px; }
.circle-video-author .post-stat span { font-size: 12px; }
@media (max-width: 360px) {
  .circle-search-header { gap: 7px; padding-right: 12px; padding-left: 12px; }
  .circle-search-section { padding-right: 15px; padding-left: 15px; }
  .circle-type-list { gap: 7px; }
  .circle-type { font-size: 12px; }
  .circle-topic-chip { padding-right: 10px; padding-left: 10px; font-size: 13px; }
  .circle-type-back { flex-basis: 42px; }
  .circle-type-tabs button { font-size: 15px; }
  .circle-voice-wave { gap: 3px; }
}
.search-user-card { margin-top: 7px; padding: 15px 16px; }
.search-user-card .avatar { width: 48px; height: 48px; flex-basis: 48px; border-radius: 50%; }
.search-user-card .user-row { min-width: 0; }
.search-user-card .user-text { min-width: 0; }
.search-user-card .user-text .meta { overflow-wrap: anywhere; }
.search-user-sign { margin: 10px 0 0 58px !important; color: #858d99 !important; font-size: 13px !important; line-height: 1.5 !important; }

/* 每日签到 */
.checkin-page { padding-bottom: 18px; background: var(--canvas) !important; }
.checkin-hero { min-height: 246px; padding: 23px 21px 20px; background: linear-gradient(135deg, #719be9 0%, #5279d8 56%, #4c65bd 100%); color: #fff; text-align: center; }
.checkin-eyebrow { font-size: 12px; letter-spacing: .12em; opacity: .82; }
.checkin-hero h2 { margin: 13px 0 4px; font-size: 25px; font-weight: 600; }
.checkin-rank { margin: 3px 0 0; font-size: 13px; opacity: .9; }
.checkin-action { display: block; min-width: 174px; min-height: 44px; margin: 20px auto 0; padding: 7px 24px; border: 0; border-radius: 999px; background: #fff; color: #4164c9; font-size: 16px; font-weight: 600; box-shadow: 0 5px 15px #263e8533; }
.checkin-action:disabled { cursor: default; background: #ffffffc9; color: #667ca8; opacity: 1; }
.checkin-status { min-height: 19px; margin: 10px 0 0; font-size: 12px; line-height: 1.5; opacity: .9; }
.checkin-reward { margin: 7px 0 0; font-size: 13px; font-weight: 600; }
.checkin-refresh { margin-top: 10px; padding: 3px 8px; border: 0; background: transparent; color: #fff; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.checkin-summary { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 9px; padding: 17px 0; border-radius: 9px; background: #fff; }
.checkin-summary > div { display: grid; gap: 5px; text-align: center; }
.checkin-summary > div + div { border-left: 1px solid var(--line); }
.checkin-summary strong { color: #4f75d8; font-size: 24px; font-weight: 600; }
.checkin-summary span { color: #9ca3ad; font-size: 12px; }
.checkin-calendar-hint { margin: 19px 9px 0; color: #a0a7b3; text-align: center; font-size: 12px; }
.checkin-calendar { margin: 10px 15px 0; padding: 0 10px 12px; border-radius: 5px; background: #fff; box-shadow: 0 2px 8px #26385f12; }
.checkin-calendar-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 54px; border-bottom: 1px solid #e7e7e7; }
.checkin-calendar-head h3 { margin: 0; color: #6ca5ff; text-align: center; white-space: nowrap; font-size: 18px; font-weight: 500; letter-spacing: .02em; }
.checkin-calendar-head button { justify-self: center; width: 42px; height: 42px; padding: 0; border: 0; background: url('/assets/checkin/arrow-left.png') center / 8px 15px no-repeat; }
.checkin-calendar-head button:disabled { opacity: 1; cursor: default; background-image: url('/assets/checkin/arrow-left-disabled.png'); }
.checkin-calendar-head #checkin-next-month { background-image: url('/assets/checkin/arrow-right.png'); }
.checkin-calendar-head #checkin-next-month:disabled { background-image: url('/assets/checkin/arrow-right-disabled.png'); }
.checkin-weekdays, .checkin-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.checkin-weekdays { align-items: center; height: 35px; color: #6ca5ff; font-size: 14px; }
.checkin-calendar-grid { grid-auto-rows: 42px; }
.checkin-day { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; color: #333; font-size: 14px; line-height: 18px; }
.checkin-day.today .checkin-day-number { color: #6ca5ff; font-weight: 600; }
.checkin-day-icon { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; object-fit: contain; }
.checkin-calendar .inline-status { padding: 12px 4px 2px; text-align: center; }

/* 个人主页 */
.profile-page { background: var(--canvas) !important; }
.profile-header { background: var(--canvas); }
.profile-cover { position: relative; height: 156px; background: linear-gradient(125deg, #cde2ff 0%, #759df2 42%, #5971c7 100%); background-position: center; background-size: cover; }
.profile-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #26377555, transparent 50%); }
.profile-like-count { position: absolute; top: 15px; right: 17px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 34px); min-height: 31px; padding: 5px 9px; border-radius: 999px; background: #17244291; color: #fff; text-shadow: 0 1px 3px #17244288; }
.profile-like-count svg { flex: 0 0 18px; width: 18px; height: 18px; fill: #ff647e; }
.profile-like-count strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.profile-cover-counts { position: absolute; right: 17px; bottom: 17px; display: flex; gap: 13px; color: #fff; font-size: 12px; text-shadow: 0 1px 4px #20336755; }
.cover-count { display: inline-flex; align-items: baseline; gap: 3px; min-height: 40px; padding: 7px 2px; color: #fff; text-decoration: none; }
a.cover-count:hover { text-decoration: underline; }
.cover-count strong { font-size: 18px; font-weight: 600; }
.profile-main { position: relative; min-height: 142px; margin-top: -14px; padding: 55px 16px 17px; border-radius: 13px 13px 0 0; background: #fff; }
.profile-avatar-wrap { position: absolute; top: -43px; left: 17px; width: 82px; height: 82px; }
.profile-avatar { width: 82px; height: 82px; flex-basis: 82px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px #1c2a4a22; }
.profile-avatar .avatar-fallback { font-size: 30px; }
.profile-avatar-identity { position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #6ca5ff; box-shadow: 0 1px 4px #1c2a4a33; }
.profile-avatar-identity img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-avatar-identity-fallback { color: #fff; font-size: 18px; font-weight: 700; line-height: 1; }
.profile-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-name-row h2 { margin: 0; overflow: hidden; color: #252830; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; font-weight: 600; }
.level-badge { flex: 0 0 auto; padding: 2px 5px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; }
.profile-subtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; color: #a0a5af; font-size: 13px; }
.profile-region-age { margin: 8px 0 0; color: #9299a5; font-size: 14px; }
.profile-user-id { margin-right: 2px; }
.profile-identity-name:not(:last-child)::after { content: '、'; }
.profile-tabs { padding: 0 34px; border-bottom: 1px solid var(--line); }
.profile-tabs .tab { min-height: 49px; font-size: 16px; }
.profile-info-card, .profile-checkin-card, .profile-extra { margin: 9px 9px 0; padding: 18px 17px; border-radius: 9px; background: #fff; }
.profile-info-card h3, .profile-extra h3 { margin: 0 0 11px; color: #292c32; font-size: 17px; font-weight: 600; }
.profile-checkin-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-checkin-card h3 { flex: 0 0 auto; margin: 0; color: #292c32; font-size: 17px; }
.profile-checkin-card span { color: #9ca1ab; text-align: right; font-size: 13px; line-height: 1.5; }
.profile-info-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px; padding: 8px 0; color: #9ca1ab; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-info-row span:last-child { color: #717884; }
.profile-extras { padding-bottom: 1px; background: var(--canvas); }
.profile-extra > .meta { margin: -5px 0 10px; }
.profile-extra-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.profile-extra-heading h3 { margin: 0; }
.profile-extra-more { flex: 0 0 auto; padding: 4px 0 4px 8px; color: #a0a4ad; text-decoration: none; font-size: 14px; }
.profile-extra-more:hover { color: var(--blue); }
.profile-activities #activity-status { margin: 0; padding: 15px 0; }
.activity-preview-list { position: relative; padding-left: 22px; }
.activity-preview-list:not(:empty)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 2px; border-left: 1px dashed #e3e6eb; }
.activity-preview-item { position: relative; padding: 0 0 23px; }
.activity-preview-item:last-child { padding-bottom: 0; }
.activity-preview-month { margin: 0 0 8px; color: #9da2aa; font-size: 13px; line-height: 1.4; }
.activity-preview-card { position: relative; min-height: 87px; padding: 17px 18px; border-radius: 10px; background: #f4f5f8; }
.activity-preview-card::before { content: ""; position: absolute; top: calc(50% - 4px); left: -27px; width: 8px; height: 8px; border-radius: 50%; background: #bfc4ce; }
.activity-preview-meta { display: flex; justify-content: space-between; gap: 10px; min-width: 0; color: #a0a4ad; font-size: 13px; line-height: 1.4; }
.activity-preview-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-preview-meta span:last-child { text-align: right; }
.activity-preview-title { margin: 11px 0 0; overflow: hidden; color: #33363b; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 1.45; }
.profile-extra-list:empty { display: none; }
.profile-item { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.profile-item:first-child { border-top: 0; }
.profile-item-text { min-width: 0; color: #525965; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-item-text strong { display: block; color: #383d47; font-weight: 500; }
.profile-item-text .meta { margin: 4px 0 0; }
.badge-image { display: block; flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; }
.medal-selected { display: inline-block; margin-top: 6px; padding: 3px 7px; border-radius: 3px; background: #edf2ff; color: var(--blue); font-size: 11px; }
.medal-strip { display: flex; gap: 8px; margin: 0 -17px; padding: 5px 17px 9px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.medal-strip::-webkit-scrollbar { display: none; }
.medal-icon-button { display: grid; flex: 0 0 66px; place-items: center; width: 66px; height: 66px; padding: 3px; border: 2px solid transparent; border-radius: 10px; background: transparent; scroll-snap-align: start; }
.medal-icon-button .badge-image { flex: none; width: 56px; height: 56px; object-fit: contain; }
.medal-icon-button.active { border-color: #b7c7ff; background: #f0f4ff; }
.medal-fallback { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: #e7edff; color: var(--blue); font-size: 29px; }
.medal-strip .empty { flex: 1 0 100%; padding: 12px 0; }
.medal-dialog { position: fixed; inset: 0; width: min(360px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 16px 48px #10172533; }
.medal-dialog::backdrop { background: #10172599; }
.medal-dialog-card { position: relative; max-height: calc(100dvh - 40px); padding: 34px 24px 28px; overflow-y: auto; text-align: center; }
.medal-dialog-close { position: absolute; top: 7px; right: 9px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: #9298a3; font-size: 29px; line-height: 1; }
.medal-dialog-content > .badge-image, .medal-dialog-content > .medal-fallback { width: 96px; height: 96px; margin: 4px auto 16px; }
.medal-dialog-content > .medal-fallback { font-size: 50px; }
.medal-detail-text { min-width: 0; color: #3c4350; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.medal-detail-text h2 { margin: 0; color: #303642; font-size: 18px; font-weight: 600; }
.medal-detail-text .meta { margin: 9px 0 0; }
.activity-view .shell { padding-bottom: 0; background: #fff; }
.activity-view #account-state { visibility: hidden; }
.activity-view .bottom-nav, .activity-view footer { display: none; }
.activity-view #workspace, .activity-view #workspace .panel { min-height: calc(100dvh - 54px); }
.activity-page { background: #fff !important; }
.activity-page-list { position: relative; padding: 16px 24px 12px; }
.activity-page-list:not(:empty)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 36px; width: 1px; background: #eceef1; }
.activity-page-item { position: relative; min-height: 145px; padding: 19px 0 27px 56px; }
.activity-page-dot { position: absolute; z-index: 1; top: 27px; left: 5px; width: 14px; height: 14px; border: 2px solid #6da8ff; border-radius: 50%; background: #fff; }
.activity-page-title { margin: 0; color: #707174; font-size: 16px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.activity-page-meta { display: grid; gap: 11px; margin-top: 27px; color: #b2b8bf; font-size: 13px; line-height: 1.35; }
.activity-page-meta-line { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.activity-page-meta-line svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; }
.activity-page-meta-line span { min-width: 0; overflow-wrap: anywhere; }
.activity-page .inline-status { margin: 0; padding: 12px 24px 20px 80px; color: #a0a4ad; }
.activity-page .inline-status:empty { display: none; }
.activity-page #activity-page-retry { display: block; margin: 0 24px 24px 80px; }
.connection-page { background: #fff !important; }
.connection-page .inline-status { padding: 15px 16px 10px; }
.connection-list { padding: 0 16px; }
.connection-user { padding: 14px 0; border-top: 1px solid var(--line); }
.connection-user:first-child { border-top: 0; }
.connection-user .user-row { margin: 0; }
.connection-user .avatar { flex-basis: 46px; width: 46px; height: 46px; }
.connection-user .user-text .meta { overflow-wrap: anywhere; }
.post-search-tools summary { padding: 15px 17px; color: #717c91; font-size: 13px; cursor: pointer; }
.profile-posts-view #profile .profile-info-card, .profile-posts-view #profile .profile-checkin-card, .profile-posts-view #profile-extras { display: none !important; }
#user-posts { margin-top: 9px; background: var(--canvas); }
#user-posts .post-card { margin-bottom: 7px; }
body:not(.profile-posts-view) #user-posts, body:not(.profile-posts-view) #more-user-posts { display: none !important; }

/* 帖子详情与评论 */
.post-page { background: var(--canvas) !important; }
.post-search-tools { background: #fff; }
.post-search-tools:not([open]) { display: none; }
.post-search-tools[open] { margin-bottom: 7px; }
.post-search-tools .search-form { padding-top: 0; }
#detail > .card { margin: 7px 0; padding: 18px 16px; }
#detail > .card > h3 { margin-bottom: 13px; color: #22252b; font-size: 20px; font-weight: 600; }
#detail .author-row { margin-bottom: 17px; }
.article-body { margin: 15px 0; }
.article-text { margin: 0 0 12px !important; color: #343943 !important; font-size: 16px !important; }
.detail-gallery { display: grid; gap: 9px; }
.detail-picture { max-width: 100%; margin: 9px 0; border-radius: 4px; }
.detail-picture img { width: 100%; max-width: 100%; height: auto; max-height: none; }
.picture-preview-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.post-photo-viewer { width: min(100vw, 520px); max-width: none; height: 100dvh; max-height: 100dvh; margin: auto; padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); border: 0; background: #151820; color: #fff; }
.post-photo-viewer[open] { display: flex; flex-direction: column; }
.post-photo-viewer::backdrop { background: #10131ce6; }
.post-photo-viewer-bar, .post-photo-viewer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; min-height: 44px; }
.post-photo-viewer-bar button, .post-photo-viewer-actions button { min-width: 44px; min-height: 44px; padding: 5px 8px; border: 0; background: transparent; color: #fff; }
.post-photo-viewer-bar button { font-size: 29px; }
.post-photo-viewer-stage { display: grid; flex: 1 1 auto; place-items: center; min-height: 0; overflow: auto; }
.post-photo-viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.post-photo-viewer-stage p { color: #c7cbd4; font-size: 14px; }
.post-photo-viewer-actions a { color: #d1dfff; text-decoration: none; font-size: 13px; }
.post-photo-viewer-actions button:disabled { opacity: .35; }
#detail .topic-row { margin: 15px 0 7px; }
#detail .post-stats { justify-content: flex-start; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
#detail .secondary-button { margin-top: 5px; }
.list-heading { margin: 0; padding: 17px 16px; border-bottom: 1px solid var(--line); background: #fff; color: #30343b; font-size: 17px; font-weight: 600; }
#reviews { margin-top: 8px; background: #fff; }
.review-header { position: sticky; z-index: 3; top: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 15px; border-bottom: 1px solid var(--line); background: #fff; }
.review-tabs { display: flex; align-self: stretch; gap: 20px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.review-tabs::-webkit-scrollbar { display: none; }
.review-tab { position: relative; flex-shrink: 0; padding: 14px 0; border: 0; background: transparent; color: #8b9099; font-size: 15px; white-space: nowrap; }
.review-tab[aria-selected="true"] { color: var(--blue); }
.has-hot .review-tab[aria-selected="true"]::after { position: absolute; bottom: 0; left: 50%; width: 20px; height: 3px; background: var(--blue); content: ""; transform: translateX(-50%); }
.review-sort { display: flex; align-items: center; flex-shrink: 0; gap: 3px; }
.review-sort button { min-height: 44px; padding: 0 3px; border: 0; background: transparent; color: #b2b6bf; font-size: 12px; }
.review-sort button + button::before { margin-right: 7px; color: #d4d6dc; content: "/"; }
.review-sort button[aria-pressed="true"] { color: #565d68; }
.review-panel { background: #fff; outline-offset: -2px; }
.review-card { margin: 0; padding: 15px 15px 14px; border: 0; border-bottom: 1px solid #f0f1f4; background: #fff; }
.review-card .author-row { align-items: flex-start; gap: 10px; margin: 0; }
.review-card .avatar, .review-card .author-avatar-wrap, .review-card .avatar-link { flex: 0 0 35px; width: 35px; height: 35px; }
.review-card .avatar { border-radius: 4px; }
.review-card .profile-avatar-identity { width: 14px; height: 14px; }
.review-card .user-text { flex: 1; min-width: 0; padding-top: 0; }
.review-card .user-name, .review-user-name { color: #656c76; font-size: 14px; font-weight: 400; text-decoration: none; }
.review-card .author-subtitle { display: block; margin-top: 3px; color: #a4a8b0; font-size: 11px; line-height: 1.4; }
.review-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; min-height: 20px; }
.review-name-line .user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-medal { width: 17px; height: 17px; object-fit: contain; }
.review-like-button { display: inline-flex; align-items: center; justify-content: flex-end; flex-shrink: 0; gap: 5px; min-width: 44px; min-height: 38px; margin-top: -4px; padding: 5px 0 5px 4px; border: 0; background: transparent; color: #a0a5ae; font-size: 12px; }
.review-like-button svg { width: 17px; height: 17px; }
.review-like-button.is-liked { color: var(--blue); }
.review-like-button.is-liked svg path { fill: currentColor; }
.review-like-button:disabled { cursor: default; }
.review-like-button[aria-busy="true"] { opacity: .5; }
.review-body { margin-left: 45px; min-width: 0; }
.review-content { margin: 10px 0 0 !important; color: #343943 !important; font-size: 15px !important; line-height: 1.65 !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-picture { width: fit-content; max-width: 100%; margin: 10px 0 0; border-radius: 3px; }
.review-picture img { width: 75px; height: 75px; max-width: 100%; object-fit: cover; }
.review-audio { display: block; width: 100%; max-width: 280px; height: 36px; margin-top: 10px; }
.review-replies-button, .review-reply-count { display: inline-block; margin: 8px 0 0; padding: 4px 7px; border: 0; border-radius: 3px; background: #f3f4f7; color: #66718b; font-size: 12px; }
.review-replies-button { min-height: 32px; }
.reply-preview { margin: 13px 0 0; padding: 10px; border: 0; border-radius: 3px; background: #f5f6f8; color: #878f98; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.reply-preview-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.reply-preview p { margin: 6px 0 0; white-space: pre-wrap; }
.review-meta { color: #a4a8b0; font-size: 11px; }
.review-body > .post-location { display: flex; width: fit-content; margin-top: 13px; font-size: 12px; }
.review-body > .post-location svg { width: 13px; height: 13px; }
.review-status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 70px; padding: 20px 15px; background: #fff; color: #b0b4bd; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.review-status p { margin: 0; }
.review-status > svg { width: 34px; height: 34px; margin: 18px 0 3px; color: #c9cdd6; }
.review-status:has(> svg) { min-height: 165px; }
.review-status .review-error { color: #9c7777; }
.review-load-more, .review-retry { min-height: 40px; padding: 8px 18px; border: 0; background: transparent; color: #838b9a; font-size: 13px; }
.review-retry { color: var(--blue); }
.review-refresh { display: block; min-height: 44px; margin: 0 auto; padding: 9px 20px; border: 0; background: transparent; color: #979eaa; font-size: 12px; }
.review-thread-viewer { width: min(100vw, 520px); max-width: 100vw; height: 90dvh; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 14px 14px 0 0; background: #fff; color: #343943; }
.review-thread-viewer[open] { display: flex; flex-direction: column; }
.review-thread-viewer::backdrop { background: #111a2a80; }
.review-thread-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 54px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.review-thread-header h2 { margin: 0; font-size: 16px; font-weight: 500; }
.review-thread-header button { width: 44px; height: 44px; border: 0; background: transparent; color: #89919d; font-size: 28px; }
.review-thread-scroll { overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
.review-thread-scroll > .list-heading { border-top: 7px solid var(--canvas); font-size: 14px; }
@media (max-width: 360px) {
  .review-header { gap: 8px; }
  .review-tabs { gap: 14px; }
  .review-tab { font-size: 14px; }
}

/* 四类榜单总览与榜单详情 */
.ranks-page { background: var(--canvas) !important; }
.rank-overview { padding-top: 7px; }
.rank-category { display: grid; grid-template-columns: minmax(0, 1fr) 24px; grid-template-rows: 26px auto; gap: 12px 4px; width: 100%; min-height: 150px; margin: 0 0 8px; padding: 17px 16px 15px; border: 0; background: #fff; text-align: left; }
.rank-category > span:first-child { grid-column: 1; color: #25282f; font-size: 17px; font-weight: 500; }
.rank-preview { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.rank-preview-person { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; color: #a5aab4; font-size: 12px; }
.rank-preview-person .avatar { flex: 0 0 47px; width: 47px; height: 47px; }
.rank-preview-person > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-preview-status { grid-column: 1 / -1; padding: 18px 0; color: #abb0ba; font-size: 13px; }
.rank-chevron { grid-column: 2; grid-row: 2; align-self: center; color: #b8bcc5; text-align: right; font-size: 31px; font-weight: 300; }
.rank-back { position: fixed; z-index: 11; top: 0; left: max(0px, calc(50vw - 260px)); width: 52px; height: 54px; padding: 0 0 3px 16px; border: 0; background: #fff; color: #30343d; text-align: left; font-size: 34px; line-height: 1; }
.rank-back span { display: none; }
.rank-hero { display: flex; align-items: center; gap: 15px; min-height: 138px; margin-top: 7px; padding: 15px 25px; background: #fff; }
.rank-hero svg { flex: 0 0 135px; width: 135px; height: 112px; color: #70a6ff; }
.rank-hero strong { color: #2b2f36; font-size: 22px; font-weight: 600; }
.rank-hero p { margin: 8px 0 0; color: #a5aab4; font-size: 13px; }
.rank-periods { margin: 8px 14px 0; overflow: hidden; border: 1px solid #b5b9c2; border-radius: 7px; }
.rank-periods .tab { min-height: 34px; padding: 3px 0; border-right: 1px solid #b5b9c2; color: #a5aab4; font-size: 14px; }
.rank-periods .tab:last-child { border-right: 0; }
.rank-periods .tab.active { background: #aeb2ba; color: #fff; }
.rank-periods .tab.active::after { display: none; }
.rank-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 16px; }
.rank-actions .inline-status { padding: 0; }
.rank-actions .secondary-button { min-height: 28px; padding: 3px 8px; font-size: 11px; }
#rank-update { margin: 0 16px 7px; text-align: center; }
.rank-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 5px; min-height: 190px; padding: 18px 12px 16px; background: #fff; }
.podium-person { min-width: 0; text-align: center; }
.podium-1 { align-self: start; }
.podium-photo { position: relative; width: max-content; margin: 0 auto 18px; }
.podium-photo .rank-avatar { width: 62px; height: 62px; flex-basis: 62px; border-radius: 8px; }
.podium-1 .podium-photo .rank-avatar { width: 76px; height: 76px; flex-basis: 76px; }
.podium-place { position: absolute; right: -8px; bottom: -9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #ffbf11; color: #fff; font-size: 17px; font-weight: 700; }
.podium-person .rank-person .user-name { text-align: center; font-size: 14px; }
.podium-person .rank-person .meta { margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list { margin: 0; padding: 0; list-style: none; background: #fff; }
.rank-entry { display: grid; grid-template-columns: 26px 42px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 61px; padding: 9px 16px; border-top: 1px solid var(--line); }
.rank-place { color: #6da0ff; text-align: center; font-size: 22px; font-weight: 600; }
.rank-entry .rank-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.rank-person { min-width: 0; }
.rank-person .meta { margin: 3px 0 0; }
.my-rank-card { position: fixed; z-index: 8; left: 50%; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); width: min(100%, 520px); padding: 10px 16px; transform: translateX(-50%); background: #6c9ff4; box-shadow: 0 -2px 10px #2b4e9b1c; }
.my-rank-title { display: block; margin-bottom: 3px; color: #fff; font-size: 12px; font-weight: 500; }
.my-rank-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.my-rank-person .rank-avatar { width: 36px; height: 36px; flex-basis: 36px; }
.my-rank-person .rank-person { flex: 1; }
.my-rank-person .user-name, .my-rank-person .meta { color: #fff; }
.rank-detail { padding-bottom: 96px; }

/* Vae 首页与内容页：使用 2.6.8 的实时图标、横幅和内容。 */
body[data-page="vae"] .shell { background: #fff; }
body.vae-home-view .vae-topbar { display: none; }
body.vae-subpage .menu-toggle span { display: none; }
body.vae-subpage .menu-toggle::before { content: ""; width: 12px; height: 12px; margin-left: 5px; border-bottom: 2px solid #30343d; border-left: 2px solid #30343d; transform: rotate(45deg); }
body[data-page="vae"] #workspace, body[data-page="vae"] #workspace .panel { min-height: 0; }
.vae-home { padding-bottom: 24px; background: #fff; }
.vae-masthead { padding: 38px 24px 0; background: radial-gradient(ellipse at 2% 2%, #c9ddff 0, transparent 46%), linear-gradient(165deg, #e4ecff 0%, #f3f6ff 48%, #fff 88%); }
.vae-brand { display: flex; align-items: center; gap: 17px; min-height: 72px; }
.vae-script { flex: 0 0 auto; color: #3f67df; font-family: "Brush Script MT", "Snell Roundhand", "Apple Chancery", cursive; font-size: 45px; font-style: italic; font-weight: 500; letter-spacing: -.09em; line-height: 1; transform: rotate(-7deg); }
.vae-script sup { margin-left: 2px; vertical-align: super; font-family: sans-serif; font-size: 15px; font-style: normal; letter-spacing: 0; }
.vae-brand #vae-slogan { color: #20242d; font-size: clamp(12px, 3.15vw, 17px); line-height: 1.45; }
.vae-banners { display: flex; gap: 9px; margin-top: 12px; padding-bottom: 18px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.vae-banners::-webkit-scrollbar, .vae-dynamic-carousel::-webkit-scrollbar { display: none; }
.vae-banner { display: block; flex: 0 0 100%; overflow: hidden; aspect-ratio: 1080 / 546; border-radius: 12px; background: linear-gradient(135deg, #a9cbe9, #6a8fb7); scroll-snap-align: center; }
.vae-banner-image, .vae-banner-image img { display: block; width: 100%; height: 100%; }
.vae-banner-image img { object-fit: cover; }
.vae-banner-fallback { display: grid; place-items: center; color: #fff; font-size: 35px; font-style: italic; }
.vae-shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 17px 16px 30px; background: #fff; }
.vae-shortcut { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; color: #202329; text-decoration: none; font-size: clamp(12px, 3.1vw, 16px); }
.vae-shortcut-icon { position: relative; display: grid; place-items: center; width: min(14vw, 60px); height: min(14vw, 60px); border-radius: 50%; background: #f4f6ff; }
.vae-shortcut-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vae-new-badge { position: absolute; top: -2px; right: -8px; padding: 2px 4px; border-radius: 2px; background: #ed474e; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.1; }
.vae-shortcut-label { white-space: nowrap; }
.vae-home-section { padding: 0 0 22px; }
.vae-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 24px; }
.vae-section-heading h2 { position: relative; z-index: 0; margin: 0; color: #15181e; font-size: clamp(20px, 5vw, 25px); font-weight: 700; line-height: 1.4; }
.vae-section-heading h2::after { content: ""; position: absolute; z-index: -1; right: 1px; bottom: 3px; left: 0; height: 5px; background: #8fa8ff; }
.vae-section-heading a { color: #a2a6b0; text-decoration: none; font-size: 13px; }
.vae-dynamic-carousel { display: flex; align-items: flex-start; gap: 13px; padding: 10px 24px 4px; overflow-x: auto; scrollbar-width: none; scroll-padding-left: 24px; scroll-snap-type: x mandatory; }
.vae-dynamic-card { position: relative; flex: 0 0 min(91%, 445px); min-width: 0; height: 198px; padding: 16px 18px; overflow: hidden; border-radius: 18px; background: linear-gradient(130deg, #f2e1fa 0%, #e6e9ff 48%, #f9d7ea 100%); scroll-snap-align: start; }
.vae-dynamic-stamp { position: absolute; top: 13px; right: 15px; display: grid; place-items: center; width: 62px; height: 62px; transform: rotate(15deg); border: 1px dashed #c38ad9; border-radius: 50%; color: #79589c; font-size: 12px; font-weight: 700; text-align: center; }
.vae-dynamic-author { display: flex; align-items: center; gap: 9px; padding-right: 70px; font-size: 15px; }
.vae-dynamic-avatar { flex: 0 0 35px; width: 35px; height: 35px; overflow: hidden; border-radius: 7px; background: #fff; }
.vae-dynamic-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vae-dynamic-content { height: 115px; margin-top: 10px; padding: 12px 14px; overflow: hidden; border-radius: 13px; background: #ffffff99; }
.vae-dynamic-content p { display: -webkit-box; margin: 0; overflow: hidden; color: #292530; font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vae-dynamic-content time { display: block; margin-top: 7px; color: #dc9ecb; text-align: right; font-size: 12px; }
.vae-dynamic-action { display: block; margin-top: 6px; color: #6175ce; text-decoration: none; font-size: 12px; }
.vae-news-section { padding-bottom: 60px; }
.vae-menu-button { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #adb2bc; font-size: 22px; }
.vae-news-categories, .vae-list-categories { display: flex; gap: 7px; padding: 8px 24px 13px; overflow-x: auto; scrollbar-width: none; }
.vae-news-categories button, .vae-list-categories button { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #e4e9f3; border-radius: 999px; background: #fff; color: #7e8796; font-size: 12px; }
.vae-news-categories button.active, .vae-list-categories button.active { border-color: #7b9af0; background: #edf2ff; color: #4667d6; }
.vae-news-list { padding: 5px 24px 0; }
.vae-news-card { display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 15px 0; border-bottom: 1px solid #f0f1f4; color: inherit; text-decoration: none; }
.vae-news-poster { position: relative; display: block; flex: 0 0 110px; width: 110px; height: 91px; overflow: hidden; border-radius: 9px; background: #edf0f6; }
.vae-news-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vae-play-mark { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 35px; height: 35px; transform: translate(-50%, -50%); border-radius: 50%; background: #0009; color: #fff; font-size: 15px; }
.vae-news-copy { flex: 1; min-width: 0; }
.vae-news-copy h3 { display: -webkit-box; margin: 1px 0 10px; overflow: hidden; color: #202329; font-size: 16px; font-weight: 600; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vae-news-meta { display: flex; justify-content: space-between; gap: 5px; color: #a2a8b1; font-size: 11px; }
.vae-more-link { display: block; margin: 13px 24px 0; padding: 13px; border-radius: 9px; background: #f4f6fc; color: #647bd4; text-align: center; text-decoration: none; font-size: 13px; }
.vae-loading, .vae-empty { margin: 0; padding: 28px 24px; color: #9ba3af; font-size: 13px; line-height: 1.6; }
.vae-list-page { min-height: calc(100vh - 120px); background: #fff; }
.vae-list-head { padding: 25px 24px 15px; background: linear-gradient(145deg, #e9efff, #fff); }
.vae-list-eyebrow { color: #6c87df; font-size: 12px; letter-spacing: .12em; }
.vae-list-head h2 { margin: 8px 0 0; color: #20242e; font-size: 25px; }
.vae-list { padding: 0 20px; }
.vae-list > .vae-dynamic-card { height: auto; min-height: 198px; margin: 14px 0; }
.vae-list > .vae-dynamic-card .vae-dynamic-content { height: auto; min-height: 115px; }
.vae-list > .vae-dynamic-card .vae-dynamic-content p { -webkit-line-clamp: 5; }
.vae-list.vae-grid-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 15px; padding: 20px; }
.vae-grid-list .vae-empty, .vae-grid-list .vae-loading { grid-column: 1 / -1; }
.vae-media-card, .vae-work-card { display: flex; flex-direction: column; min-width: 0; color: #262a33; text-decoration: none; }
.vae-media-cover, .vae-work-cover { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #eef0f5; }
.vae-media-cover img, .vae-work-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vae-media-card strong, .vae-work-card strong { margin-top: 8px; font-size: 14px; line-height: 1.45; }
.vae-media-card small, .vae-work-card small { margin-top: 4px; color: #9fa6b1; font-size: 11px; }
.vae-event-card { display: block; padding: 17px 0; border-bottom: 1px solid #edf0f4; color: inherit; text-decoration: none; }
.vae-event-poster { display: block; width: 100%; max-height: 200px; overflow: hidden; border-radius: 9px; background: #edf0f4; }
.vae-event-poster img { display: block; width: 100%; max-height: 200px; object-fit: cover; }
.vae-event-copy h3 { margin: 9px 0 6px; color: #202329; font-size: 17px; line-height: 1.4; }
.vae-event-time { margin: 0; color: #708be4; font-size: 12px; }
.vae-event-excerpt { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: #7a828e; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vae-detail-page { min-height: calc(100vh - 120px); padding: 24px 18px 55px; background: #fff; }
.vae-news-detail .vae-detail-page { min-height: 0; padding-bottom: 24px; }
.vae-detail-page h2 { margin: 0 0 12px; color: #1c222d; font-size: 22px; line-height: 1.4; }
.vae-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 21px; color: #9fa6b1; font-size: 12px; }
.vae-detail-tag { padding: 3px 7px; border-radius: 4px; background: #eef3ff; color: #6580d6; }
.vae-detail-stats { display: flex; gap: 15px; margin-top: 25px; padding-top: 15px; border-top: 1px solid #e8ebf1; color: #9ca4af; font-size: 12px; }
.vae-detail-topic { margin-top: 14px; color: #6480dd; font-size: 13px; }
.vae-rich { color: #333943; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.vae-rich p { margin: 0 0 16px; }
.vae-rich h2, .vae-rich h3, .vae-rich h4 { margin: 14px 0; font-size: 17px; }
.vae-rich .vae-rich-image, .vae-detail-gallery .vae-image { display: block; width: 100%; height: auto; margin: 10px 0; background: #f1f2f5; }
.vae-rich .vae-rich-image img, .vae-detail-gallery img { display: block; width: 100%; height: auto; object-fit: contain; }
.vae-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 9px 0 20px; border: 0; background: #161616; }
.vae-detail-cover { display: block; width: 100%; margin-bottom: 18px; background: #eef0f5; }
.vae-detail-cover img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.vae-detail-address { color: #7388c8; font-size: 13px; line-height: 1.5; }
.vae-detail-count, .vae-album-meta { color: #9ca4af; font-size: 13px; }
.vae-photo-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; }
.vae-photo-viewer { width: min(100vw, 520px); max-width: none; height: min(100dvh, 900px); max-height: none; margin: auto; padding: 10px 12px 15px; border: 0; background: #151820; color: #fff; }
.vae-photo-viewer::backdrop { background: #10131cd9; }
.vae-photo-viewer-bar, .vae-photo-viewer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.vae-photo-viewer-bar button, .vae-photo-viewer-actions button { padding: 5px 8px; border: 0; background: transparent; color: #fff; }
.vae-photo-viewer-bar button { font-size: 27px; }
.vae-photo-viewer > img { display: block; width: 100%; height: calc(100% - 92px); object-fit: contain; }
.vae-photo-viewer-actions a { color: #d1dfff; text-decoration: none; font-size: 13px; }
.vae-photo-viewer-actions button:disabled { opacity: .35; }
.vae-album-cover { display: block; width: min(65%, 260px); aspect-ratio: 1; margin: 0 auto 22px; overflow: hidden; border-radius: 10px; background: #eef0f5; }
.vae-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.vae-album-intro { margin-top: 25px; color: #424955; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.vae-track-heading { margin: 30px 0 12px; color: #2c3442; font-size: 17px; }
.vae-track-list { margin: 0 0 23px; padding: 0; list-style: none; }
.vae-track-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #edf0f4; }
.vae-track-list strong { font-size: 14px; font-weight: 500; line-height: 1.5; }
.vae-track-list time { flex: 0 0 auto; color: #a0a7b3; font-size: 12px; }
.vae-album-description { margin-top: 19px; border-top: 1px solid #edf0f4; }
.vae-album-description summary { padding: 17px 0; color: #576cba; font-size: 14px; cursor: pointer; }
.vae-album-description .vae-album-intro { margin: 0; }

footer { display: none; }
@media (max-width: 360px) {
  .topbar { grid-template-columns: 57px minmax(0, 1fr) 57px; }
  .status { margin-right: 7px; font-size: 9px; }
  .feed-topbar { grid-template-columns: 46px minmax(0, 1fr) 46px; }
  .feed-search-button, .feed-compose-button { width: 46px; }
  .feed-topbar .tab { font-size: 16px; }
  .feed-trending { padding-right: 15px; padding-left: 15px; }
  .feed-trending-page { column-gap: 10px; }
  .feed-trending-list a { font-size: 12px; }
  .rank-hero { gap: 5px; padding: 12px 14px; }
  .rank-hero svg { flex-basis: 110px; width: 110px; }
  .post-stats { gap: 8px; }
  .post-stat { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-menu { transition: none; }
}
