/* 贴吧式社区公共布局 */
html { background: #f5f6f8; }
body.qqza-theme { min-width: 1080px; color: #25252b; background: #f5f6f8; }
.qqza-theme .qqza-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qqza-header { position: sticky; z-index: 1000; top: 0; height: 60px; border-top: 3px solid var(--qqza-pink); border-bottom: 1px solid #e8e9ed; background: rgba(255,255,255,.98); box-shadow: none; box-sizing: border-box; }
.qqza-header-inner { display: grid; width: min(1500px, calc(100% - 32px)); height: 57px; margin: 0 auto; grid-template-columns: 210px minmax(360px, 570px) minmax(240px, 1fr); align-items: center; gap: 26px; }
.qqza-brand { display: flex; width: 154px; height: 54px; align-items: center; }
.qqza-brand img { display: block; width: 100%; height: 52px; object-fit: contain; object-position: left center; }
.qqza-search { display: flex; width: 100%; height: 38px; justify-self: center; overflow: hidden; border: 1px solid #e8e9ee; border-radius: 20px; background: #f5f6f8; box-sizing: border-box; }
.qqza-search input { width: 100%; min-width: 0; height: 36px; padding: 0 17px; border: 0; outline: 0; color: #29292f; background: transparent; font-size: 13px; }
.qqza-search input::placeholder { color: #a2a3aa; }
.qqza-search button { display: grid; width: 48px; height: 36px; padding: 0; flex: 0 0 48px; place-items: center; border: 0; color: #fff; background: var(--qqza-pink); cursor: pointer; }
.qqza-search button .qqza-icon { width: 18px; height: 18px; }
.qqza-top-actions { display: flex; min-width: 0; justify-self: end; align-items: center; gap: 10px; }
.qqza-publish { display: inline-flex; height: 38px; padding: 0 19px; align-items: center; gap: 6px; border-radius: 20px; color: #fff !important; background: var(--qqza-pink); font-size: 14px; font-weight: 700; }
.qqza-publish:hover { color: #fff !important; background: #d90055; }
.qqza-publish .qqza-icon { width: 17px; height: 17px; stroke-width: 2.2; }
.qqza-top-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #45454d; }
.qqza-top-icon:hover { color: var(--qqza-pink); background: #fff0f6; }
.qqza-top-user { display: flex; max-width: 150px; height: 38px; align-items: center; gap: 8px; color: #34343b; }
.qqza-top-user img { width: 32px; height: 32px; border: 1px solid #ededf1; border-radius: 50%; object-fit: cover; }
.qqza-top-user span { overflow: hidden; max-width: 98px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.qqza-top-login { display: inline-flex; height: 36px; padding: 0 15px; align-items: center; border: 1px solid #ff8ab5; border-radius: 18px; color: var(--qqza-pink) !important; font-size: 13px; font-weight: 700; }

.qqza-app-layout { display: grid; width: min(1500px, calc(100% - 32px)); margin: 0 auto; grid-template-columns: 210px minmax(0, 1fr) 280px; align-items: start; gap: 18px; }
.qqza-leftbar,
.qqza-rightbar { position: sticky; top: 78px; max-height: calc(100vh - 92px); padding-top: 18px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #dedfe4 transparent; }
.qqza-side-nav { display: grid; gap: 4px; padding: 0 0 14px; border-bottom: 1px solid #e9eaee; }
.qqza-side-nav a { display: flex; height: 48px; padding: 0 15px; align-items: center; gap: 13px; border-radius: 8px; color: #2e2e35; font-size: 14px; box-sizing: border-box; }
.qqza-side-nav a:hover { color: var(--qqza-pink); background: #fff; }
.qqza-side-nav a.is-active { color: var(--qqza-pink); background: #fff0f6; font-weight: 700; }
.qqza-side-nav .qqza-icon { width: 21px; height: 21px; }
.qqza-side-section { padding: 17px 0 4px; }
.qqza-side-section h2 { margin: 0 0 8px; padding: 0 15px; color: #9a9aa3; font-size: 12px; font-weight: 500; }
.qqza-side-section > a { display: flex; height: 44px; padding: 0 12px; align-items: center; gap: 11px; border-radius: 7px; color: #44444c; box-sizing: border-box; }
.qqza-side-section > a:hover { color: var(--qqza-pink); background: #fff; }
.qqza-side-section > a b { overflow: hidden; min-width: 0; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.qqza-side-forum-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #f1d1dd; border-radius: 8px; color: #202027; background: #fff; }
.qqza-side-forum-icon .qqza-icon { width: 17px; height: 17px; }
.qqza-side-tools { border-top: 1px solid #e9eaee; }
.qqza-side-tools > a > .qqza-icon { width: 20px; height: 20px; margin-left: 5px; flex: 0 0 20px; }

.qqza-theme .qqza-page-shell.wp { width: auto !important; min-width: 0; min-height: calc(100vh - 120px); margin: 18px 0 42px !important; }
.qqza-right-card { margin: 0 0 14px; padding: 17px; border: 1px solid #e6e7eb; border-radius: 11px; background: #fff; box-sizing: border-box; }
.qqza-family-card-head { display: flex; align-items: center; gap: 11px; }
.qqza-family-avatar { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; overflow: hidden; border-radius: 9px; background: #fff0f6; }
.qqza-family-avatar img { width: 86px; height: 44px; object-fit: contain; }
.qqza-family-card-head div { min-width: 0; }
.qqza-family-card h2 { overflow: hidden; margin: 0 0 5px; color: #27272e; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.qqza-family-card p { overflow: hidden; margin: 0; color: #96969f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.qqza-family-card dl { display: grid; margin: 15px 0; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #f0f0f3; border-bottom: 1px solid #f0f0f3; }
.qqza-family-card dl div { padding: 12px 5px; text-align: center; }
.qqza-family-card dl div + div { border-left: 1px solid #f0f0f3; }
.qqza-family-card dt { margin-bottom: 5px; color: #96969f; font-size: 10px; }
.qqza-family-card dd { color: #292930; font-size: 15px; font-weight: 750; }
.qqza-family-enter { display: flex; height: 36px; align-items: center; justify-content: center; border-radius: 18px; color: var(--qqza-pink) !important; background: #fff0f6; font-size: 12px; font-weight: 700; }
.qqza-right-card > header { display: flex; min-height: 28px; align-items: center; justify-content: space-between; }
.qqza-right-card > header h2,
.qqza-right-notice h2 { margin: 0; color: #292930; font-size: 15px; }
.qqza-right-card > header a { color: #a0a0a9; font-size: 11px; }
.qqza-hot-forums ol { margin: 4px 0 0; }
.qqza-hot-forums li a { display: grid; min-height: 37px; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 4px; color: #4a4a52; }
.qqza-hot-forums li i { color: #aaaab2; font-size: 13px; font-style: normal; }
.qqza-hot-forums li:nth-child(-n+3) i { color: var(--qqza-pink); font-weight: 750; }
.qqza-hot-forums li span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.qqza-hot-forums li em { color: #aaaab2; font-size: 10px; font-style: normal; }
.qqza-right-notice p { margin: 11px 0; color: #707079; font-size: 12px; line-height: 1.75; }
.qqza-right-notice a { color: var(--qqza-pink); font-size: 11px; }

.qqza-feed-page { overflow: hidden; border: 1px solid #e6e7eb; border-radius: 11px; background: #fff; }
.qqza-feed-tabs { display: flex; height: 55px; padding: 0 18px; align-items: stretch; gap: 30px; border-bottom: 1px solid #eeeeF1; box-sizing: border-box; }
.qqza-feed-tabs a { position: relative; display: flex; align-items: center; color: #676770; font-size: 14px; }
.qqza-feed-tabs a:hover,
.qqza-feed-tabs a.is-active { color: #222228; font-weight: 700; }
.qqza-feed-tabs a.is-active::after { position: absolute; right: 2px; bottom: -1px; left: 2px; height: 3px; border-radius: 3px; background: var(--qqza-pink); content: ""; }
.qqza-feed-notice { display: grid; min-height: 43px; padding: 0 20px; grid-template-columns: 20px auto minmax(0,1fr) auto; align-items: center; gap: 8px; border-bottom: 1px solid #f0f0f3; color: #777780; background: #fffafb; font-size: 11px; box-sizing: border-box; }
.qqza-feed-notice .qqza-icon { width: 16px; height: 16px; color: var(--qqza-pink); }
.qqza-feed-notice strong { color: var(--qqza-pink); }
.qqza-feed-notice > div { min-width: 0; overflow: hidden; }
.qqza-feed-notice ul { overflow: hidden; white-space: nowrap; }
.qqza-feed-notice a { color: #9b9ba4; }
.qqza-feed-stream .qqza-home-feed-card { display: block; margin: 0; padding: 20px 22px 0; border: 0; border-bottom: 1px solid #ececf0; border-radius: 0; background: #fff; box-shadow: none; box-sizing: border-box; }
.qqza-home-feed-author { display: flex; min-width: 0; align-items: center; gap: 10px; }
.qqza-home-feed-author > a:first-child { flex: 0 0 42px; }
.qqza-home-feed-author img { display: block; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.qqza-home-feed-author > div { display: grid; min-width: 0; gap: 4px; }
.qqza-home-feed-author b { overflow: hidden; color: #303037; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.qqza-home-feed-author span { color: #a0a0a9; font-size: 10px; }
.qqza-feed-follow { display: inline-flex; min-width: 68px; height: 28px; margin-left: auto; padding: 0 12px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 14px; color: var(--qqza-pink) !important; background: #fff0f6; font-size: 11px; white-space: nowrap; }
.qqza-home-feed-author > a.qqza-feed-follow { width: auto; height: 28px; overflow: visible; flex: 0 0 auto; border-radius: 14px; }
.qqza-home-feed-content { display: block; padding: 12px 0 0; color: inherit; }
.qqza-home-feed-content h3 { margin: 0 0 7px; color: #202026; font-size: 17px; font-weight: 650; line-height: 1.45; }
.qqza-home-feed-content h3 em { display: inline-block; margin: 0 6px 0 0; padding: 1px 5px; border-radius: 3px; color: var(--qqza-pink); background: #fff0f6; font-size: 10px; font-style: normal; vertical-align: 2px; }
.qqza-home-feed-content p { display: -webkit-box; overflow: hidden; margin: 0 0 11px; color: #52525a; font-size: 13px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.qqza-home-feed-images { display: grid; max-width: 680px; margin: 3px 0 2px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.qqza-home-feed-images-1 { max-width: 520px; grid-template-columns: minmax(0, 1fr); }
.qqza-home-feed-images-2 { max-width: 560px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.qqza-home-feed-images span { position: relative; display: block; overflow: hidden; aspect-ratio: 1.55; border-radius: 7px; background: #f3f4f7; }
.qqza-home-feed-images-1 span { aspect-ratio: 1.8; }
.qqza-home-feed-images img { width: 100%; height: 100%; object-fit: cover; }
.qqza-home-feed-images i { position: absolute; z-index: 2; right: 8px; bottom: 8px; display: grid; width: 30px; height: 22px; place-items: center; border-radius: 11px; color: #fff; background: rgba(0,0,0,.62); font-size: 10px; font-style: normal; }
.qqza-home-feed-actions { display: grid; min-height: 45px; margin-top: 11px; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #f1f1f4; }
.qqza-home-feed-actions a { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 5px; color: #73737c; font-size: 11px; }
.qqza-home-feed-actions a:hover { color: var(--qqza-pink); }
.qqza-home-feed-actions .qqza-icon { width: 17px; height: 17px; }
.qqza-home-feed-actions b { color: #a1a1a9; font-size: 10px; font-weight: 500; }
.qqza-feed-more { display: flex; height: 50px; align-items: center; justify-content: center; color: #7c7c85; font-size: 12px; }
.qqza-feed-more:hover { color: var(--qqza-pink); background: #fffafb; }
.qqza-empty { padding: 80px 20px; color: #9b9ba4; text-align: center; }

.qqza-footer { border-top: 1px solid #e8e9ed; background: #fff; }
.qqza-footer-inner { width: min(1500px, calc(100% - 32px)); }
.qqza-mobile-tabs { display: none; }
#qqza-pjax-bar { position: fixed; z-index: 10050; top: 0; left: 0; width: 0; height: 3px; opacity: 0; background: var(--qqza-pink); box-shadow: 0 0 9px rgba(244,0,95,.48); transition: width .28s ease, opacity .18s ease; }
#qqza-pjax-bar.is-active { width: 72%; opacity: 1; }
.qqza-pjax-loading #wp { opacity: .52; transition: opacity .16s ease; }

@media (max-width: 1280px) {
	body.qqza-theme { min-width: 960px; }
	.qqza-app-layout { grid-template-columns: 200px minmax(0,1fr); }
	.qqza-rightbar { display: none; }
	.qqza-header-inner { grid-template-columns: 200px minmax(340px, 540px) minmax(220px, 1fr); }
}

@media (max-width: 980px) {
	body.qqza-theme { min-width: 760px; }
	.qqza-app-layout { grid-template-columns: minmax(0,1fr); }
	.qqza-leftbar { display: none; }
	.qqza-header-inner { grid-template-columns: 180px minmax(260px,1fr) auto; }
	.qqza-theme .qqza-page-shell.wp { margin-top: 14px !important; }
}
