.community-page {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
  letter-spacing: 0;
}

.community-scene {
  z-index: 0;
  background: #182722;
}

.community-scene .home-scene-image {
  background-position: center;
  background-size: cover;
}

.community-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 24, 19, 0.34);
  pointer-events: none;
}

.community-scene .paper-grain {
  z-index: 3;
}

.community-main {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 24px 54px;
  transition: filter 0.4s var(--ease-quiet);
}

.community-intro {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
  animation: community-arrive 1s var(--ease-quiet) both;
}

.community-intro p,
.feed-heading p,
.subject-browser p,
.publish-heading p {
  margin: 0;
  color: rgba(255, 246, 232, 0.62);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0;
}

.community-intro h1 {
  margin: 11px 0 12px;
  color: var(--warm-text);
  font-family: "STZhongsong", "华文中宋", "STSong", "SimSun", serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 3px 24px rgba(11, 24, 19, 0.54);
}

.community-intro > span {
  color: rgba(255, 246, 232, 0.78);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  line-height: 1.7;
}

.community-workspace {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(19, 35, 29, 0.48);
  animation: community-fade 1.05s 0.08s var(--ease-quiet) both;
}

.community-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.community-search {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 38px;
  align-items: center;
  padding: 0 8px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.4s var(--ease-quiet), background 0.4s var(--ease-quiet);
}

.community-search:focus-within {
  border-color: rgba(255, 246, 232, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.search-symbol {
  color: rgba(255, 246, 232, 0.68);
  font-family: Georgia, serif;
  font-size: 26px;
  transform: rotate(-18deg);
}

.community-search input,
.publish-form input,
.publish-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--warm-text);
  background: transparent;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.community-search input::placeholder,
.publish-form input::placeholder,
.publish-form textarea::placeholder {
  color: rgba(255, 246, 232, 0.42);
}

.search-clear {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.72);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-scope {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: stretch;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.search-scope button,
.community-tabs button,
.subject-filters button,
.filter-reset {
  color: rgba(255, 246, 232, 0.68);
  background: transparent;
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

.search-scope button {
  min-width: 82px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.search-scope button[aria-pressed="true"] {
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.community-category-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.community-tabs {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.community-tabs button {
  position: relative;
  min-width: 126px;
  padding: 0 16px;
  font-size: 14px;
}

.community-tabs button::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: -1px;
  height: 2px;
  background: var(--warm-text);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-quiet);
}

.community-tabs button[aria-selected="true"] {
  color: var(--warm-text);
}

.community-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.community-tabs span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 11px;
}

.result-summary {
  margin: 0;
  color: rgba(255, 246, 232, 0.52);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  text-align: right;
}

.user-results {
  padding: 18px 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-label-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.section-label-row span {
  color: rgba(255, 246, 232, 0.5);
  font-size: 12px;
}

.user-result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-result-button {
  min-width: 170px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  text-align: left;
}

.user-result-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.community-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--warm-text);
  background: rgba(104, 139, 151, 0.2);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 15px;
}

.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-profile-link {
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s var(--ease-quiet), border-color 0.25s var(--ease-quiet), background 0.25s var(--ease-quiet);
}

.community-profile-link:hover {
  border-color: rgba(255, 246, 232, 0.88);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.user-result-button strong,
.user-result-button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-result-button strong {
  font-size: 13px;
  font-weight: 500;
}

.user-result-button small {
  margin-top: 3px;
  color: rgba(255, 246, 232, 0.5);
  font-size: 11px;
}

.user-result-button > span:last-child {
  color: rgba(255, 246, 232, 0.5);
  font-family: Georgia, serif;
}

.community-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
}

.community-feed,
.publish-panel {
  min-width: 0;
  padding: 28px;
}

.publish-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.publish-panel.is-fixed {
  position: fixed;
  z-index: 12;
  top: 108px;
  right: max(24px, calc((100vw - 1440px) / 2 + 24px));
  width: 350px;
  max-height: calc(100svh - 126px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 246, 232, 0.28) transparent;
}

.publish-panel::-webkit-scrollbar {
  width: 5px;
}

.publish-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.28);
}

.feed-heading,
.publish-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.feed-heading h2,
.subject-browser h2,
.publish-heading h2 {
  margin: 6px 0 0;
  color: var(--warm-text);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
  font-weight: 500;
}

.subject-browser {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.subject-browser > div:first-child {
  min-width: 92px;
}

.subject-browser h2 {
  margin-top: 5px;
  font-size: 20px;
}

.subject-browser .subject-filters {
  margin: 0;
  padding: 0;
}

.publish-heading {
  display: block;
}

.publish-heading > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 246, 232, 0.52);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.filter-reset {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.filter-reset:hover {
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.08);
}

.subject-filters {
  display: flex;
  gap: 8px;
  margin: 18px 0 22px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subject-filters::-webkit-scrollbar {
  display: none;
}

.subject-filters button {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  font-size: 12px;
}

.subject-filters button[aria-pressed="true"] {
  color: var(--warm-text);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

.post-list {
  display: grid;
  gap: 12px;
}

.community-post {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.5s var(--ease-quiet), border-color 0.5s var(--ease-quiet), background 0.5s var(--ease-quiet);
}

.community-post:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.07);
}

.post-author-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.post-author-row strong,
.post-author-row small {
  display: block;
}

.post-author-row strong {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.post-author-row small,
.post-kind {
  color: rgba(255, 246, 232, 0.48);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.post-author-row small {
  margin-top: 3px;
}

.post-kind {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  color: rgba(255, 246, 232, 0.68);
}

.community-post h3 {
  margin: 15px 0 9px;
  color: var(--warm-text);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
}

.post-content {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 246, 232, 0.68);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 132px));
  gap: 8px;
  justify-content: start;
  margin-top: 14px;
}

.post-image-grid[data-count="1"] {
  grid-template-columns: 132px;
}

.post-image-grid button {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(5, 17, 14, 0.18);
  cursor: zoom-in;
}

.post-image-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.55s var(--ease-quiet);
}

.post-image-grid button:hover img {
  transform: scale(1.025);
}

.post-resource-files {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.post-resource-file {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: rgba(255, 246, 232, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  text-decoration: none;
}

.post-resource-file:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.post-resource-file > span:first-child {
  font-family: Georgia, serif;
  font-size: 17px;
  text-align: center;
}

.post-resource-file strong,
.post-resource-file small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-resource-file strong {
  font-size: 11px;
  font-weight: 500;
}

.post-resource-file small,
.post-resource-file > span:last-child {
  color: rgba(255, 246, 232, 0.42);
  font-size: 10px;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.post-tags,
.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.72);
  background: rgba(105, 142, 156, 0.1);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.subject-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fb8ca;
}

.subject-tag[data-tone="rose"]::before {
  background: #c69a9a;
}

.subject-tag[data-tone="gold"]::before {
  background: #d1bd83;
}

.subject-tag[data-tone="green"]::before {
  background: #90b69d;
}

.post-actions button,
.post-link {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.58);
  background: transparent;
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
  text-decoration: none;
}

.post-actions button:hover,
.post-actions button[aria-pressed="true"],
.post-link:hover {
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.09);
}

.post-comments {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.comment-list {
  display: grid;
}

.comment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: rgba(255, 246, 232, 0.78);
  background: rgba(198, 154, 154, 0.12);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 12px;
}

.comment-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-heading strong {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.comment-heading small {
  color: rgba(255, 246, 232, 0.38);
  font-size: 9px;
}

.comment-copy p {
  margin: 5px 0 0;
  color: rgba(255, 246, 232, 0.66);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.65;
}

.comment-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.comment-rating-badge,
.comment-rating-row button {
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: rgba(255, 246, 232, 0.5);
  background: transparent;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 9px;
}

.comment-rating-row button {
  cursor: pointer;
}

.comment-rating-row button:hover,
.comment-rating-row button[aria-pressed="true"] {
  color: var(--warm-text);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.comment-rating-badge[data-rating="accepted"] {
  color: #d8c88e;
  border-color: rgba(216, 200, 142, 0.42);
  background: rgba(216, 200, 142, 0.08);
}

.comment-rating-badge[data-rating="helpful"] {
  color: #9fc5d6;
  border-color: rgba(159, 197, 214, 0.38);
  background: rgba(159, 197, 214, 0.08);
}

.comment-empty {
  margin: 4px 0 12px;
  color: rgba(255, 246, 232, 0.42);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.comment-form input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  outline: 0;
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.035);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.comment-form input:focus {
  border-color: rgba(255, 255, 255, 0.62);
}

.comment-form button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 11px;
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.community-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: rgba(255, 246, 232, 0.5);
  text-align: center;
}

.community-empty > span {
  font-family: Georgia, serif;
  font-size: 34px;
}

.community-empty h3 {
  margin: 13px 0 4px;
  color: rgba(255, 246, 232, 0.72);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 19px;
  font-weight: 500;
}

.community-empty p {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
}

.publish-form {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.publish-type-control,
.publish-tags {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.publish-upload-field {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.publish-upload-field[hidden] {
  display: none;
}

.upload-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 246, 232, 0.64);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.upload-field-heading small {
  color: rgba(255, 246, 232, 0.4);
  font-size: 9px;
}

.file-pick-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.7);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 10px;
}

.file-pick-button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

.selected-file-list {
  display: grid;
  gap: 6px;
}

.selected-image-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selected-image-item {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(5, 17, 14, 0.2);
}

.selected-image-item img {
  width: 100%;
  height: 74px;
  display: block;
  object-fit: cover;
}

.image-preview-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 54px 24px 30px;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 14, 11, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-quiet), visibility 0.35s var(--ease-quiet);
}

.image-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox figure {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(2, 10, 7, 0.55);
}

.image-lightbox figcaption {
  color: rgba(255, 246, 232, 0.72);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
}

.image-lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.selected-file-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: rgba(255, 246, 232, 0.62);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 9px;
}

.selected-file-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-image-item button,
.selected-file-item button {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: var(--warm-text);
  background: rgba(10, 22, 18, 0.72);
  cursor: pointer;
}

.selected-image-item button {
  position: absolute;
  top: 5px;
  right: 5px;
}

.publish-type-control legend,
.publish-tags legend,
.field-label {
  margin-bottom: 7px;
  color: rgba(255, 246, 232, 0.64);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
}

.publish-type-control > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.publish-type-control label {
  min-width: 0;
  cursor: pointer;
}

.publish-type-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publish-type-control span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.56);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
  text-align: center;
}

.publish-type-control input:checked + span {
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.publish-form > input,
.publish-form textarea {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  resize: vertical;
}

.publish-form > input:focus,
.publish-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.075);
}

.field-label {
  margin: 4px 0 -3px;
}

.field-label small {
  color: rgba(255, 246, 232, 0.38);
}

.publish-tags {
  margin-top: 6px;
}

.publish-tags legend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.publish-tags legend small {
  color: rgba(255, 246, 232, 0.42);
}

.publish-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.publish-tag-option {
  position: relative;
  cursor: pointer;
}

.publish-tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publish-tag-option span {
  min-width: 48px;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.56);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.publish-tag-option input:checked + span {
  color: var(--warm-text);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(105, 142, 156, 0.18);
}

.publish-submit {
  width: 100%;
  margin-top: 8px;
  border-radius: 14px;
}

.community-page button:focus-visible,
.community-page input:focus-visible,
.community-page textarea:focus-visible,
.community-page a:focus-visible {
  outline: 2px solid rgba(255, 246, 232, 0.78);
  outline-offset: 3px;
}

.community-workspace,
.community-workspace * {
  border-width: 0 !important;
}

.community-workspace {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.community-toolbar {
  background: rgba(9, 24, 19, 0.28);
}

.community-search,
.search-scope,
.publish-type-control > div,
.publish-form > input,
.publish-form textarea,
.publish-upload-field,
.comment-form input {
  background: rgba(255, 255, 255, 0.065);
}

.community-category-bar {
  background: rgba(9, 24, 19, 0.32);
}

.subject-browser {
  background: rgba(9, 24, 19, 0.4);
}

.community-tabs span,
.post-kind,
.subject-tag,
.publish-tag-option span,
.community-subject-chip {
  background: rgba(255, 255, 255, 0.07);
}

.community-body {
  gap: 18px;
}

.publish-panel {
  margin: 20px 20px 20px 0;
  border-radius: 18px;
  background: rgba(9, 24, 19, 0.5);
}

.community-post {
  background: rgba(9, 24, 19, 0.52);
}

.community-post:hover {
  background: rgba(9, 24, 19, 0.62);
}

.subject-filters button {
  background: rgba(255, 255, 255, 0.055);
}

.subject-filters button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.15);
}

.user-result-button,
.post-resource-file,
.comment-item,
.selected-file-item,
.selected-image-item {
  background: rgba(9, 24, 19, 0.38);
}

.file-pick-button {
  background: rgba(255, 255, 255, 0.055);
}

.community-page .community-workspace input:focus,
.community-page .community-workspace textarea:focus {
  background: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

@keyframes community-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes community-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .community-body {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .community-feed,
  .publish-panel {
    padding: 24px;
  }

  .publish-panel.is-fixed {
    right: 24px;
    width: 310px;
  }

  .post-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px), (min-width: 821px) and (max-width: 1024px) and (orientation: portrait) {
  .community-page .site-header.nav-open .navigation-shell {
    background: rgba(18, 31, 27, 0.88);
    box-shadow: 0 22px 56px rgba(7, 17, 13, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .community-page .site-header.nav-open + .community-main {
    filter: brightness(0.45);
  }

  .community-main {
    padding: 118px 14px 30px;
  }

  .community-intro {
    margin-bottom: 24px;
  }

  .community-intro h1 {
    font-size: 50px;
  }

  .community-toolbar {
    grid-template-columns: 1fr;
  }

  .search-scope button {
    min-height: 40px;
  }

  .community-category-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0 14px 12px;
  }

  .community-tabs {
    min-height: 58px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .community-tabs button {
    flex: 1 0 118px;
  }

  .result-summary {
    text-align: left;
  }

  .community-body {
    grid-template-columns: 1fr;
  }

  .publish-panel {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    margin: 0 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .subject-browser {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .subject-browser > div:first-child {
    min-width: 0;
  }

  .subject-browser .filter-reset {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .community-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .community-intro h1 {
    font-size: 42px;
  }

  .community-intro > span {
    font-size: 14px;
  }

  .community-workspace {
    border-radius: 18px;
  }

  .community-toolbar,
  .community-feed,
  .publish-panel {
    padding: 16px;
  }

  .search-scope button {
    min-width: 0;
    padding: 0 8px;
  }

  .community-tabs button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 10px;
    font-size: 12px;
  }

  .community-tabs {
    width: 100%;
    overflow: hidden;
  }

  .community-post {
    padding: 15px;
    border-radius: 14px;
  }

  .post-author-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .post-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .post-author-row .community-avatar {
    width: 34px;
    height: 34px;
  }

  .post-kind {
    grid-column: 2;
    justify-self: start;
  }

  .publish-type-control > div {
    grid-template-columns: 1fr;
  }

  .publish-type-control span {
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-intro,
  .community-workspace {
    animation: none;
  }

  .community-post {
    transition: none;
  }
}
