.theme-rooms-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.theme-rooms-main {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100svh + 180px);
  padding: 132px 0 96px;
}

.theme-rooms-intro {
  max-width: 780px;
  margin: 0 auto 32px;
  text-align: center;
}

.theme-rooms-intro > p:first-child {
  margin: 0;
  color: rgba(255, 246, 232, 0.52);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.theme-rooms-intro h1 {
  margin: 12px 0 8px;
  color: var(--warm-text);
  font-family: "STZhongsong", "华文中宋", "STSong", "SimSun", serif;
  font-size: 58px;
  font-weight: 700;
}

.theme-rooms-intro > p:nth-of-type(2) {
  margin: 0;
  color: rgba(255, 246, 232, 0.72);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
}

.theme-rooms-panel {
  padding: 24px;
}

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

.theme-room-list .room-row {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 246, 232, 0.24);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(6, 25, 21, 0.32));
  box-shadow: 0 16px 42px rgba(2, 14, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform .35s var(--ease-quiet), border-color .35s var(--ease-quiet), background .35s var(--ease-quiet);
}

.theme-room-list .room-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: rgba(196, 221, 238, 0.7);
}

.theme-room-list .room-row:hover {
  border-color: rgba(255, 246, 232, 0.56);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(6, 25, 21, 0.4));
  transform: translateY(-3px);
}

.theme-room-list .room-top { display: flex; align-items: center; gap: 10px; }
.theme-room-list .room-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255, 246, 232, 0.36); border-radius: 50%; color: var(--warm-text); background: rgba(255, 255, 255, 0.08); font-family: "STKaiti", "KaiTi", serif; }
.theme-room-list .room-copy { min-width: 0; display: grid; gap: 3px; }.theme-room-list .room-copy strong { overflow: hidden; color: var(--warm-text); font-family: "STKaiti", "KaiTi", serif; font-size: 18px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.theme-room-list .room-copy small { color: rgba(255, 246, 232, 0.48); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 10px; }
.theme-room-list .room-meta, .theme-room-list .room-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }.theme-room-list .room-tag { padding: 4px 7px; border: 1px solid rgba(255, 246, 232, 0.17); border-radius: 7px; color: rgba(255, 246, 232, 0.66); background: rgba(255, 255, 255, 0.045); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: 10px; }
.theme-room-list .groups-mini-button { width: 100%; min-height: 37px; margin-top: auto; border-radius: 10px; font-size: 12px;
}

.theme-room-list .groups-mini-button:disabled {
  border-color: rgba(255, 246, 232, 0.17);
  color: rgba(255, 246, 232, 0.42);
  background: rgba(255, 255, 255, 0.035);
  cursor: not-allowed;
}

.theme-room-list .room-actions {
  margin-top: auto;
}

.room-invite-list .groups-empty-notice {
  width: 100%;
  padding: 12px;
  font-size: 12px;
  text-align: left;
}

.room-upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 246, 232, 0.22);
  border-radius: 10px;
  color: rgba(255, 246, 232, 0.54);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 11px;
}

.room-upload-preview img {
  width: 64px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}

.room-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.room-upload-list span {
  max-width: 100%;
  overflow: hidden;
  padding: 5px 8px;
  border-radius: 7px;
  color: rgba(255, 246, 232, 0.68);
  background: rgba(255, 255, 255, 0.07);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-field-hint {
  margin: -3px 0 11px;
  color: rgba(255, 246, 232, 0.52);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 10px;
  line-height: 1.6;
}

.room-task-fieldset textarea {
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid rgba(255, 246, 232, 0.3);
  border-radius: 10px;
  outline: 0;
  padding: 10px 11px;
  color: var(--warm-text);
  background: rgba(255, 255, 255, 0.055);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  line-height: 1.6;
}

.room-task-fieldset textarea:focus {
  border-color: rgba(255, 246, 232, 0.82);
  background: rgba(255, 255, 255, 0.09);
}

.room-task-fieldset textarea::placeholder {
  color: rgba(255, 246, 232, 0.44);
}

.room-background-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  max-height: 208px;
  overflow-y: auto;
  padding-right: 3px;
}

.room-background-option {
  min-height: 72px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 7px;
  border: 1px solid rgba(255, 246, 232, 0.22);
  border-radius: 9px;
  color: rgba(255, 246, 232, 0.88);
  background-color: rgba(255, 255, 255, 0.06);
  background-position: center;
  background-size: cover;
  cursor: pointer;
  text-align: left;
  transition: transform .25s var(--ease-quiet), border-color .25s var(--ease-quiet), box-shadow .25s var(--ease-quiet);
}

.room-background-option span {
  overflow: hidden;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-background-option:hover,
.room-background-option[aria-pressed="true"] {
  border-color: rgba(255, 246, 232, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 232, 0.24);
  transform: translateY(-1px);
}

.room-form [data-room-step][hidden],
.room-form-actions button[hidden] {
  display: none !important;
}

@media (max-width: 720px), (min-width: 721px) and (max-width: 1024px) and (orientation: portrait) {
  .theme-rooms-main {
    width: min(100% - 32px, 680px);
    padding-top: 116px;
  }

  .theme-rooms-intro h1 {
    font-size: 46px;
  }

  .theme-rooms-panel {
    padding: 18px;
  }

  .theme-room-list {
    grid-template-columns: 1fr;
  }

  .room-background-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
