.aleph-online {
  margin-top: 2.4rem;
  padding: 1rem;
  border: 1px solid rgba(80, 80, 80, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.home-article-list:not(.aleph-home-online-mounted) .home-article-item {
  display: none;
}

.home-article-list:not(.aleph-home-online-mounted)::before {
  display: block;
  padding: 1.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  content: "正在读取文章列表";
}

.dark .home-article-list:not(.aleph-home-online-mounted)::before {
  background: rgba(25, 25, 25, 0.62);
}

.aleph-home-status {
  min-height: 130px;
}

.statistics a[href="/tags"],
.statistics a[href="/tags/"],
.statistics a[href="/categories"],
.statistics a[href="/categories/"] {
  display: none !important;
}

.dark .aleph-online {
  background: rgba(25, 25, 25, 0.62);
  border-color: rgba(255, 255, 255, 0.14);
}

.aleph-online__bar,
.aleph-online__auth,
.aleph-online__composer {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.aleph-online__bar {
  justify-content: space-between;
}

.aleph-online__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.aleph-online__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aleph-online button,
.aleph-online__link,
.aleph-console button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  border: 1px solid rgba(80, 80, 80, 0.2);
  border-radius: 6px;
  padding: 0 0.7rem;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  color: inherit;
}

.dark .aleph-online button,
.dark .aleph-online__link,
.dark .aleph-console button {
  color: #f3f3f3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.aleph-online button[data-active="true"],
.aleph-online__link:hover,
.aleph-console button:hover {
  border-color: #a31f34;
  color: #a31f34;
  font-weight: 700;
}

.aleph-online input,
.aleph-online textarea,
.aleph-console input,
.aleph-console textarea {
  border: 1px solid rgba(80, 80, 80, 0.18);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.dark .aleph-online input,
.dark .aleph-online textarea,
.dark .aleph-console input,
.dark .aleph-console textarea {
  color: #f3f3f3;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.aleph-online input {
  width: min(170px, 100%);
}

.aleph-online textarea,
.aleph-console textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
}

.aleph-online__status {
  margin: 0.8rem 0;
  font-size: 0.92rem;
  opacity: 0.78;
}

.aleph-online__comments {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.aleph-online__comment {
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(120, 120, 120, 0.08);
}

.aleph-online__comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  opacity: 0.74;
  margin-bottom: 0.45rem;
}

.aleph-online__comment-body {
  white-space: pre-wrap;
  line-height: 1.6;
}

.aleph-online__empty {
  margin: 0;
  opacity: 0.74;
}

.aleph-online__user {
  font-weight: 700;
}

.aleph-console {
  display: grid;
  gap: 1.2rem;
  margin: 0 auto;
  max-width: 980px;
}

.aleph-console__header {
  display: grid;
  gap: 0.45rem;
}

.aleph-console__header h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0;
}

.aleph-console__header p {
  margin: 0;
  opacity: 0.78;
}

.aleph-console__actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}

.aleph-form {
  display: grid;
  gap: 0.85rem;
}

.aleph-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.aleph-form label span {
  font-size: 0.9rem;
}

.aleph-form input,
.aleph-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-weight: 400;
}

.aleph-form textarea {
  min-height: 220px;
  line-height: 1.55;
}

.aleph-form__check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.aleph-form__check input {
  width: auto;
}

.aleph-md-editor {
  display: grid;
  gap: 0.65rem;
}

.aleph-md-editor__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.aleph-md-editor__preview {
  min-height: 220px;
  padding: 0.8rem;
  border: 1px solid rgba(80, 80, 80, 0.14);
  border-radius: 8px;
  background: rgba(120, 120, 120, 0.06);
  line-height: 1.7;
}

.aleph-console button[data-active="true"] {
  border-color: #a31f34;
  color: #a31f34;
  font-weight: 700;
}

.aleph-image-manager {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid rgba(80, 80, 80, 0.14);
  border-radius: 8px;
  background: rgba(120, 120, 120, 0.06);
}

.aleph-image-manager__header,
.aleph-image-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.aleph-image-manager__header {
  justify-content: space-between;
}

.aleph-image-manager__list {
  display: grid;
  gap: 0.5rem;
}

.aleph-image-row input:first-child {
  flex: 1 1 160px;
}

.aleph-image-row input:nth-child(2) {
  flex: 3 1 260px;
}

.aleph-image-row button {
  min-width: 38px;
}

.aleph-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.aleph-stats div,
.aleph-admin-list__item,
.aleph-online-list__item {
  border: 1px solid rgba(80, 80, 80, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.dark .aleph-stats div,
.dark .aleph-admin-list__item,
.dark .aleph-online-list__item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.aleph-stats div {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
}

.aleph-stats strong {
  font-size: 1.35rem;
}

.aleph-stats span {
  font-size: 0.82rem;
  opacity: 0.72;
}

.aleph-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.aleph-admin-grid h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.aleph-admin-list,
.aleph-online-list {
  display: grid;
  gap: 0.75rem;
}

.aleph-admin-list__item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
}

.aleph-admin-list__item p,
.aleph-online-list__item p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.aleph-online-list__item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.aleph-online-list__item a {
  font-size: 1.05rem;
  font-weight: 700;
}

.aleph-online-list__item span {
  width: fit-content;
  border: 1px solid rgba(163, 31, 52, 0.24);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  color: #a31f34;
  font-size: 0.78rem;
}

.aleph-online-post__body {
  line-height: 1.7;
}

.aleph-online-post__body img,
.aleph-md-editor__preview img {
  max-width: 100%;
  border-radius: 8px;
}

.aleph-image-grid {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.aleph-image-grid figure {
  margin: 0;
}

.aleph-image-grid img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  border-radius: 8px;
}

.aleph-image-grid figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  opacity: 0.72;
  text-align: center;
}

.aleph-account-dock {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(220px, calc(100vw - 2rem));
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid rgba(80, 80, 80, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  color: inherit;
  text-decoration: none;
}

.aleph-account-dock span {
  overflow: hidden;
  max-width: 140px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aleph-account-dock:hover {
  border-color: #a31f34;
  color: #a31f34;
  font-weight: 700;
}

.dark .aleph-account-dock {
  color: #f3f3f3;
  background: rgba(24, 24, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
}

.aleph-reader-dock {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid rgba(80, 80, 80, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  font-size: 0.9rem;
}

.dark .aleph-reader-dock {
  color: #f3f3f3;
  background: rgba(24, 24, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
}

.aleph-account__section {
  display: grid;
  gap: 0.75rem;
}

.aleph-account__section h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .aleph-online {
    padding: 0.85rem;
  }

  .aleph-online__bar,
  .aleph-online__auth,
  .aleph-console__actions,
  .aleph-admin-list__item {
    align-items: stretch;
    flex-direction: column;
  }

  .aleph-online__actions,
  .aleph-online button,
  .aleph-online input,
  .aleph-online__link,
  .aleph-console button {
    width: 100%;
  }

  .aleph-stats,
  .aleph-admin-grid {
    grid-template-columns: 1fr;
  }

  .aleph-image-row {
    align-items: stretch;
    flex-direction: column;
  }

  .aleph-md-editor__header {
    align-items: stretch;
    flex-direction: column;
  }

  .aleph-account-dock {
    right: 0.75rem;
    bottom: 0.75rem;
    min-height: 38px;
    padding: 0 0.7rem;
  }

  .aleph-account-dock span {
    max-width: 92px;
  }

  .aleph-reader-dock {
    left: 0.75rem;
    bottom: 0.75rem;
    min-height: 38px;
    padding: 0 0.7rem;
  }
}
