.community-page {
  background: #f5efe3;
  color: #38291f;
  font: 16px/1.65 var(--serif);
  margin: 0;
}
.community-page button,
.community-page input,
.community-page textarea,
.community-page select {
  font: inherit;
}
.community-page button,
.community-page a {
  touch-action: manipulation;
}
.community-page button {
  cursor: pointer;
}
.community-page a {
  text-decoration: none;
}
.community-page button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.community-page :focus-visible {
  outline: 2px solid #9b3028;
  outline-offset: 3px;
}
.community-shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 650px) minmax(260px, 340px);
  max-width: 1300px;
  min-height: 100vh;
  margin: auto;
}
.community-left {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 20px 12px;
  border-right: 1px solid #dcd1bf;
  overflow-y: auto;
}
.community-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #48281d;
  margin: 0 12px 32px;
}
.community-brand b {
  font-size: 27px;
  letter-spacing: 0.1em;
}
.community-seal {
  background: #9b3028;
  color: #fff4dd;
  border: 3px double #d0a985;
  width: 43px;
  height: 47px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1.1;
}
.community-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #917a62;
  margin-top: -4px;
}
.community-nav {
  display: grid;
  gap: 4px;
}
.community-nav a {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 10px 16px;
  font-size: 19px;
  white-space: nowrap;
  min-height: 48px;
  border-radius: 5px;
}
.community-nav a:hover,
.community-nav a[aria-current="page"] {
  background: #e9ddc8;
  color: #8e2c24;
}
.community-nav svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.community-divider {
  border-top: 1px solid #dfd2be;
  margin: 15px 10px 8px;
}
.community-nav .community-private {
  font-size: 14px;
  min-height: 38px;
  padding-block: 6px;
  color: #746050;
}
.community-primary {
  border: 1px solid #9b3028;
  background: #9b3028;
  color: #fff5e5;
  padding: 9px 22px;
  font-weight: 700;
  border-radius: 4px;
}
.community-primary:hover {
  background: #7e261f;
}
.community-left > .community-primary {
  margin: 23px 6px 20px;
  font-size: 18px;
}
.community-identity {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 8px 0;
}
.community-identity span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.community-identity small {
  display: block;
  font-size: 11px;
  color: #8c7766;
}
.community-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2d5bd;
  color: #744634;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  border: 1px solid #d1bfa3;
}
.community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-center {
  min-width: 0;
  border-right: 1px solid #dcd1bf;
  background: #fcf9f0;
}
.community-top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 249, 240, 0.96);
  border-bottom: 1px solid #ddd2c0;
  backdrop-filter: blur(12px);
}
.community-top-heading {
  padding: 18px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.community-top h1 {
  font-size: 21px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.community-top-heading small {
  color: #9a836d;
  font-size: 11px;
}
.community-tabs {
  display: flex;
}
.community-tabs a,
.community-tabs button {
  flex: 1;
  text-align: center;
  border: 0;
  background: none;
  padding: 14px 8px 16px;
  color: #8a7665;
  position: relative;
  font-size: 15px;
}
.community-tabs [aria-current="page"] {
  color: #48281d;
  font-weight: 700;
}
.community-tabs [aria-current="page"]:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 22px);
  width: 44px;
  height: 3px;
  background: #9b3028;
}
.community-compose {
  padding: 22px 24px 15px;
  border-bottom: 7px solid #eee5d5;
}
.community-compose-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.community-compose-fields {
  min-width: 0;
  flex: 1;
}
.community-compose textarea {
  display: block;
  resize: vertical;
  min-height: 85px;
  max-height: 360px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #48281d;
  outline: none;
  font-size: 17px;
  line-height: 1.8;
  padding: 4px 0;
}
.community-compose textarea::placeholder {
  color: #a08c78;
}
.community-compose-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e6dccb;
  padding-top: 12px;
  margin-left: 55px;
}
.community-compose-tools {
  display: flex;
  gap: 13px;
  align-items: center;
}
.community-compose-tools button,
.community-compose-tools label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  padding: 2px;
  color: #93623d;
  font-size: 12px;
  cursor: pointer;
  min-height: 32px;
}
.community-compose-tools svg {
  width: 19px;
  height: 19px;
}
.community-compose-count {
  font-size: 11px;
  color: #a48f7b;
  margin-left: auto;
}
.community-compose select {
  font-size: 12px;
  background: #f0e6d4;
  border: 0;
  color: #6c5542;
  padding: 5px;
}
.community-card {
  position: relative;
  padding: 22px 24px 13px;
  display: flex;
  gap: 13px;
  border-bottom: 1px solid #e1d6c4;
  overflow-wrap: anywhere;
  background: #fcf9f0;
}
.community-card:hover {
  background: #f9f4e9;
}
.community-card-body {
  min-width: 0;
  flex: 1;
}
.community-card-header {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.community-card-header strong {
  font-size: 15px;
}
.community-card-header time {
  font-size: 12px;
  color: #9a8570;
  white-space: nowrap;
}
.community-card-header small {
  font-size: 11px;
  color: #a18e78;
}
.community-card-type {
  font-size: 10px;
  color: #92744c;
  background: #ede3d1;
  padding: 1px 5px;
  margin-left: auto;
  white-space: nowrap;
}
.community-card-text {
  margin: 8px 0 13px;
  font-size: 16px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.community-card-text.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.community-book {
  display: flex;
  gap: 14px;
  border: 1px solid #dfd1b8;
  border-radius: 5px;
  padding: 14px;
  background: #f4ecdc;
  margin: 10px 0 14px;
  align-items: center;
  min-width: 0;
}
.community-book-cover {
  display: grid;
  place-items: center;
  width: 57px;
  height: 77px;
  flex-shrink: 0;
  background: #517065;
  color: #f6ecd6;
  box-shadow:
    inset 4px 0 #354c45,
    3px 3px 0 #e0d4bc;
  font-size: 13px;
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  padding: 6px;
  overflow: hidden;
}
.community-book strong {
  display: block;
  font-size: 16px;
}
.community-book small {
  display: block;
  font-size: 12px;
  color: #9a8065;
  margin-top: 3px;
}
.community-book em {
  font-size: 11px;
  color: #9b3028;
  font-style: normal;
  display: block;
  margin-top: 6px;
}
.community-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 11px -5px 0;
  color: #8e7c69;
}
.community-actions button,
.community-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  min-height: 36px;
  min-width: 36px;
  border: 0;
  background: none;
  color: inherit;
  padding: 5px;
}
.community-actions svg {
  width: 18px;
  height: 18px;
}
.community-actions [aria-pressed="true"] {
  color: #9b3028;
}
.community-actions button:hover,
.community-actions a:hover {
  color: #9b3028;
  background: #f0e1cd;
  border-radius: 50px;
}
.community-menu {
  margin-left: auto;
  position: relative;
  font-size: 13px;
}
.community-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 0 6px;
  color: #9a8570;
  font-size: 21px;
  line-height: 1;
}
.community-menu-list {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 140px;
  padding: 6px;
  background: #fffaf0;
  box-shadow: 0 5px 25px #48281d22;
  border: 1px solid #d7c5a8;
  z-index: 6;
  display: grid;
}
.community-menu-list button {
  border: 0;
  text-align: left;
  background: none;
  font-size: 13px;
  padding: 8px;
  color: #6a4937;
}
.community-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0;
  border-radius: 6px;
  overflow: hidden;
}
.community-images a {
  display: block;
  aspect-ratio: 1.3;
  background: #eadfca;
}
.community-images:has(a:only-child) {
  grid-template-columns: 1fr;
}
.community-images:has(a:only-child) a {
  aspect-ratio: 1.7;
}
.community-images img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.community-quote {
  border: 1px solid #ddcdb4;
  border-radius: 5px;
  padding: 14px;
  margin: 10px 0;
  display: block;
  font-size: 14px;
  background: #f6efdf;
}
.community-quote p {
  white-space: pre-wrap;
  margin: 7px 0;
  max-height: 110px;
  overflow: hidden;
}
.community-repost {
  font-size: 11px;
  color: #8f7c66;
  margin: 0 24px -13px;
  padding-top: 12px;
  position: relative;
  z-index: 1;
}
.community-right {
  padding: 22px 26px;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100dvh;
  overflow: auto;
}
.community-search {
  display: flex;
  gap: 8px;
  background: #ebe1cf;
  border: 1px solid #d8c8ae;
  border-radius: 30px;
  padding: 9px 13px;
  margin-bottom: 28px;
}
.community-search svg {
  width: 19px;
  height: 23px;
  color: #8c765e;
}
.community-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
  min-width: 0;
}
.community-side-panel {
  margin: 0 0 25px;
  border: 1px solid #ddceb5;
  border-radius: 6px;
  padding: 20px 17px;
  background: #faf5e9;
}
.community-side-panel h2 {
  font-size: 18px;
  margin: 0 0 17px;
  letter-spacing: 0.04em;
}
.community-side-kicker {
  font-size: 10px;
  color: #a08056;
  letter-spacing: 0.16em;
  margin: 0 0 6px;
}
.community-side-panel > p {
  color: #99846d;
  font-size: 13px;
  line-height: 1.8;
}
.community-side-book {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  font-size: 14px;
}
.community-side-book b {
  color: #ad8a51;
  font-size: 20px;
  font-weight: 400;
}
.community-side-book small {
  display: block;
  color: #a58a6c;
  font-size: 11px;
}
.community-side-reader {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  font-size: 14px;
}
.community-side-reader .community-avatar {
  width: 35px;
  height: 35px;
  font-size: 17px;
}
.community-side-foot {
  font-size: 11px;
  color: #a28b71;
  line-height: 2;
}
.community-side-foot a {
  margin-right: 10px;
}
.community-empty {
  padding: 45px 24px;
  color: #9b846b;
  text-align: center;
  font-size: 14px;
}
.community-empty strong {
  display: block;
  font-size: 20px;
  color: #684c36;
  margin-bottom: 10px;
}
.community-more {
  display: block;
  width: 100%;
  min-height: 50px;
  color: #9b3028;
  background: none;
  border: 0;
  border-bottom: 1px solid #dfd2bd;
  font-size: 14px;
}
.community-error {
  background: #f3ded5;
  color: #8c2f27;
  margin: 15px 20px;
  padding: 12px 15px;
  font-size: 13px;
  white-space: pre-wrap;
}
.community-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #48281d;
  color: #fff2d8;
  padding: 12px 23px;
  border-radius: 4px;
  font-size: 14px;
  max-width: 90vw;
}
.community-mobile-nav,
.community-fab {
  display: none;
}
.community-profile-banner {
  height: 110px;
  background: linear-gradient(110deg, #d4c1a0, #e9deca);
  position: relative;
  overflow: hidden;
}
.community-profile-banner:after {
  content: "读书 · 见天地";
  position: absolute;
  right: 25px;
  bottom: 16px;
  color: #a68c65;
  font-size: 25px;
  letter-spacing: 0.15em;
}
.community-profile {
  padding: 0 24px 20px;
}
.community-profile .community-avatar {
  width: 76px;
  height: 76px;
  font-size: 33px;
  margin-top: -36px;
  position: relative;
  border: 4px solid #fcf9f0;
}
.community-profile h2 {
  margin: 10px 0 0;
  font-size: 23px;
}
.community-profile p {
  font-size: 14px;
  white-space: pre-wrap;
  margin: 10px 0;
  color: #7e6853;
}
.community-profile-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #9a8268;
}
.community-profile-buttons {
  float: right;
  margin-top: 14px;
  display: flex;
  gap: 8px;
}
.community-secondary {
  color: #7d4c38;
  background: transparent;
  border: 1px solid #c8b394;
  border-radius: 4px;
  padding: 7px 14px;
  font-size: 13px;
}
.community-login {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 25px;
  border-bottom: 7px solid #eee5d5;
  font-size: 14px;
  color: #897158;
}
.community-login a {
  margin-left: auto;
  white-space: nowrap;
}
.community-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: #24150e66;
  display: grid;
  place-items: start center;
  padding: 8vh 16px;
  overflow: auto;
}
.community-modal {
  width: min(600px, 100%);
  background: #fcf9f0;
  border: 1px solid #cbb796;
  border-radius: 8px;
  box-shadow: 0 15px 70px #21130d33;
}
.community-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid #dfd0b9;
}
.community-modal-heading h2 {
  font-size: 18px;
  margin: 0;
}
.community-modal-close {
  border: 0;
  background: none;
  font-size: 23px;
  color: #8d6f53;
  width: 35px;
  height: 35px;
}
.community-modal .community-compose {
  border-bottom: 0;
}
.community-selected {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.community-selected > span {
  background: #e9ddc8;
  font-size: 12px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.community-selected button {
  background: none;
  border: 0;
  color: #9b3028;
}
.community-image-drafts {
  display: flex;
  gap: 7px;
  margin: 10px 0;
}
.community-image-drafts > div {
  position: relative;
  width: 80px;
  height: 75px;
}
.community-image-drafts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}
.community-image-drafts button {
  position: absolute;
  right: 2px;
  top: 1px;
  border: 0;
  background: #48281dbb;
  color: white;
  font-size: 13px;
}
.community-search-results {
  padding: 12px 24px;
}
.community-search-results a,
.community-search-results button {
  display: block;
  padding: 12px 8px;
  border: 0;
  border-bottom: 1px solid #e1d3bb;
  color: #755039;
  background: none;
  width: 100%;
  text-align: left;
}
.community-notice {
  padding: 20px 24px;
  border-bottom: 1px solid #dfd2bd;
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.community-notice.unread {
  background: #eee1c8;
}
.community-notice p {
  margin: 0;
}
.community-notice>svg{width:22px;height:22px;flex-shrink:0;margin-top:3px}
.community-notice>div{min-width:0;overflow-wrap:anywhere}
.community-notice small {
  display: block;
  font-size: 11px;
  color: #947d64;
}
.community-notice button {
  background: none;
  border: 0;
  color: #9b3028;
  font-size: 12px;
}
.community-edit-profile {
  padding: 22px;
  display: grid;
  gap: 15px;
}
.community-edit-profile label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.community-edit-profile input,
.community-edit-profile textarea {
  width: 100%;
  background: #f7efdf;
  border: 1px solid #d3bfa0;
  padding: 10px;
  color: #48281d;
}
.community-settings-links {
  display: grid;
  padding: 15px 24px;
}
.community-settings-links a {
  padding: 18px 0;
  border-bottom: 1px solid #e1d2ba;
}
.community-settings-links small {
  display: block;
  color: #9c8164;
  font-size: 12px;
}
.community-source {
  font-size: 11px;
  color: #9b7a54;
}
.community-post-detail .community-card-text {
  font-size: 19px;
}
.community-post-detail {
  border-bottom: 6px solid #eee3d0;
}
@media (min-width: 1450px) {
  .community-shell {
    grid-template-columns: 260px minmax(0, 670px) 350px;
  }
}
@media (max-width: 1100px) {
  .community-shell {
    grid-template-columns: 205px minmax(0, 650px);
    max-width: 855px;
  }
  .community-right {
    display: none;
  }
  .community-left {
    padding-right: 14px;
  }
  .community-nav a {
    font-size: 17px;
  }
  .community-brand b {
    font-size: 23px;
  }
  .community-center {
    border-right: 0;
  }
}
@media (max-width: 700px) {
  .community-shell {
    display: block;
    max-width: 650px;
    padding-bottom: 75px;
  }
  .community-left {
    display: none;
  }
  .community-top-heading {
    padding: 14px 17px 5px;
  }
  .community-top h1 {
    font-size: 19px;
  }
  .community-tabs a {
    padding: 12px 5px;
    font-size: 14px;
  }
  .community-top-heading small {
    font-size: 10px;
  }
  .community-compose {
    padding: 17px 15px 13px;
  }
  .community-compose-main {
    gap: 10px;
  }
  .community-compose textarea {
    font-size: 16px;
    min-height: 75px;
  }
  .community-compose-foot {
    margin-left: 0;
  }
  .community-compose-tools {
    gap: 10px;
  }
  .community-card {
    padding: 18px 15px 11px;
    gap: 10px;
  }
  .community-avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .community-card-header {
    gap: 5px;
    flex-wrap: wrap;
  }
  .community-card-header strong {
    font-size: 14px;
  }
  .community-card-header time {
    font-size: 11px;
  }
  .community-card-header small {
    display: none;
  }
  .community-card-type {
    font-size: 9px;
  }
  .community-card-text {
    font-size: 15px;
    line-height: 1.9;
  }
  .community-book {
    gap: 11px;
    padding: 11px;
  }
  .community-book-cover {
    width: 45px;
    height: 66px;
    font-size: 12px;
  }
  .community-book strong {
    font-size: 14px;
  }
  .community-actions {
    gap: 0;
  }
  .community-actions button,
  .community-actions a {
    min-height: 40px;
    font-size: 11px;
  }
  .community-actions svg {
    width: 17px;
    height: 17px;
  }
  .community-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: #faf5e9f5;
    border-top: 1px solid #d6c5a8;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .community-mobile-nav a {
    flex: 1;
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 10px;
    color: #88705a;
    padding: 3px;
    min-height: 45px;
  }
  .community-mobile-nav svg {
    width: 22px;
    height: 22px;
  }
  .community-mobile-nav [aria-current="page"] {
    color: #9b3028;
    font-weight: 700;
  }
  .community-fab {
    display: grid;
    place-items: center;
    position: fixed;
    right: 19px;
    bottom: 85px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: #9b3028;
    color: #fff4dd;
    box-shadow: 0 4px 15px #48281d33;
    z-index: 14;
  }
  .community-fab svg {
    width: 24px;
    height: 24px;
  }
  .community-toast {
    bottom: 80px;
    font-size: 13px;
  }
  .community-modal-backdrop {
    padding: 25px 10px 90px;
  }
  .community-modal {
    border-radius: 6px;
  }
  .community-profile {
    padding: 0 17px 20px;
  }
  .community-profile-banner {
    height: 95px;
  }
  .community-profile-buttons {
    gap: 5px;
  }
  .community-repost {
    margin-inline: 15px;
  }
  .community-post-detail .community-card-text {
    font-size: 17px;
  }
}
