/* 腾游电竞工作室 · 全局样式 */
:root {
  --bg-page: #f5f6f8;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-muted: #8a8a8a;
  --border: #e8eaed;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --nav-hover: #f0f2f5;
  --anti-fraud-bg: #e8f4fc;
  --anti-fraud-text: #0b5cab;
  --logo-orange: #ea580c;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --radius: 10px;
}

[data-theme="dark"] {
  --bg-page: #121418;
  --bg-card: #1c1f26;
  --text-primary: #f1f3f5;
  --text-secondary: #b8bcc4;
  --text-muted: #8b9099;
  --border: #2d323c;
  --link: #60a5fa;
  --link-hover: #93c5fd;
  --nav-hover: #2a2f3a;
  --anti-fraud-bg: #1a2d3d;
  --anti-fraud-text: #7dd3fc;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 反诈横幅 */
.anti-fraud-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

[data-theme="dark"] .anti-fraud-banner {
  background: #111827;
  border-bottom-color: #1f2937;
}

.anti-fraud-banner img {
  display: block;
  width: min(100%, 1200px);
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto;
}

/* 顶栏 */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--logo-orange);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  color: #c2410c;
}

[data-theme="dark"] .logo:hover {
  color: #fb923c;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-main a {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav-main a:hover,
.nav-main a.is-active {
  background: var(--nav-hover);
  color: var(--link);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.nav-auth__sep {
  color: var(--text-muted);
  font-size: 13px;
  user-select: none;
  padding: 0 2px;
}

.nav-auth__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav-auth__link:hover {
  background: var(--nav-hover);
  color: var(--link);
}

.nav-auth__link--active {
  color: var(--link);
  background: var(--nav-hover);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--nav-hover);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* 主布局 */
.layout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .layout-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card__thumb {
    width: 100%;
    max-width: 100%;
  }

  .article-card__tags {
    position: static;
    justify-content: flex-start;
    margin-bottom: 8px;
  }

  .article-card__title {
    padding-right: 0;
  }
}

/* 文章卡片列表 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-post-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.home-post-tools__note {
  font-size: 13px;
  color: var(--text-muted);
}

.home-post-modal[hidden] {
  display: none;
}

.home-post-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.home-post-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.home-post-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 16px auto;
  padding: 22px;
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.home-post-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--nav-hover);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.home-post-form--modal {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.home-post-tools__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.home-post-images {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.home-post-images__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.home-post-images__list,
.home-post-videos__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-post-videos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.home-post-videos__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.home-post-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}


.save-draft-btn {
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.save-draft-btn:active,
.save-draft-btn.is-pressed {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.97);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.home-post-media-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  padding: 24px;
}

.home-post-media-viewer[hidden] {
  display: none;
}

.home-post-media-viewer__panel {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.home-post-media-viewer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  cursor: pointer;
  z-index: 1;
}

.home-post-media-viewer__content {
  display: grid;
  gap: 12px;
  max-height: 80vh;
  overflow: auto;
}

.home-post-media-viewer__content img,
.home-post-media-viewer__content video {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  cursor: zoom-out;
}

.home-post-media-viewer__caption {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.btn-primary--ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--link);
}

.btn-primary--ghost:hover {
  background: var(--nav-hover);
}

.home-post-image-item {
  width: 120px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}

.home-post-image-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--bg-page);
  cursor: zoom-in;
}

.home-post-image-item__label {
  margin: 0;
  padding: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.home-post-image-item__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 8px;
}

.home-post-image-item__remove {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  background: var(--bg-card);
  color: #dc2626;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.home-post-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
}

.home-post-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.home-post-form input,
.home-post-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  font: inherit;
}

.home-post-form textarea {
  min-height: 560px;
  resize: vertical;
}

.home-post-body-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-post-body-block__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.draft-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.draft-status::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.draft-status--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.draft-status--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.rich-editor-toolbar__hint {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.rich-editor-toolbar__hint {
  width: 100%;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.rich-editor-toolbar__btn,
.rich-editor-toolbar__field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 13px;
}

.rich-editor-toolbar__btn[data-editor-command="formatBlock"] {
  font-weight: 800;
}

.rich-editor-toolbar__btn {
  cursor: pointer;
}

.rich-editor-toolbar__field input,
.rich-editor-toolbar__field select {
  border: none;
  background: transparent;
  color: inherit;
}

.rich-editor {
  min-height: 240px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  line-height: 1.8;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
}

.home-section-title {
  margin: 0 0 10px;
}

.article-detail-panel {
  margin-top: 22px;
}

.hot-rank {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hot-rank__item,
.hot-rank__more,
.ranking-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-primary);
}
.hot-rank__item:hover,
.ranking-row:hover {
  background: var(--nav-hover);
}

.hot-rank__item,
.ranking-row {
  text-decoration: none;
}
.hot-rank__num,
.ranking-row__rank {
  font-weight: 700;
  color: var(--link);
}
.hot-rank__title,
.ranking-row__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-rank__heat,
.ranking-row__heat {
  color: var(--text-muted);
  font-size: 12px;
}
.hot-rank__more {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
}

.article-breadcrumb,
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article-breadcrumb a,
.breadcrumb a {
  color: var(--link);
}

.breadcrumb__sep {
  color: var(--text-muted);
}

.breadcrumb__current {
  color: var(--text-primary);
  font-weight: 700;
}

.article-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-detail__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-detail__title {
  margin: 0;
  font-size: 1.4rem;
}

.article-detail__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.article-video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.article-video-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.article-video-item video,
.article-gallery__item img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}

.article-video-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.article-gallery__item {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.article-gallery__item img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  background: var(--bg-card);
  border-radius: 10px;
}

.article-gallery__item figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-detail__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-detail__nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-pin-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.article-manage-actions {
  display: none;
}

.article-manage-btn {
  border: 1px solid var(--link);
  background: var(--bg-card);
  color: var(--link);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.article-manage-btn:hover {
  background: var(--nav-hover);
}

.article-manage-btn--danger {
  border-color: #dc2626;
  color: #dc2626;
}

.article-manage-btn--danger:hover {
  background: #fef2f2;
}

.article-manage-btn--primary {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}

.article-manage-btn--primary:hover {
  background: var(--link-hover);
  color: #fff;
}

.article-manage-btn--small {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.article-edit-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.article-edit-images__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-primary);
}

.article-edit-images__tip {
  font-size: 12px;
  color: var(--text-muted);
}

.article-edit-images__empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.article-edit-images__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-edit-image-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.article-edit-image-item--active {
  border-color: var(--link);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.article-edit-image-item img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-page);
}

.home-post-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-edit-image-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-edit-image-item__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.article-edit-image-item__meta span {
  font-weight: 700;
  color: var(--text-primary);
}

.article-edit-image-item__meta code {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-edit-image-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-like-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

.article-like-btn:hover {
  background: var(--nav-hover);
}

.article-like-count,
.article-comment-count {
  font-size: 13px;
  color: var(--text-muted);
}

.article-edit-modal[hidden] {
  display: none;
}

.article-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
}

.article-edit-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.article-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.article-edit-modal__status {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  background: var(--nav-hover);
  color: var(--text-primary);
}

.article-edit-modal__status[data-status-kind="success"] {
  background: #dcfce7;
  color: #166534;
}

.article-edit-modal__status[data-status-kind="error"] {
  background: #fee2e2;
  color: #b91c1c;
}

.article-edit-modal__status[data-status-kind="info"] {
  background: #e0f2fe;
  color: #075985;
}

.article-edit-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--nav-hover);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  z-index: 2;
}

.article-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.article-edit-form input,
.article-edit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--text-primary);
  font: inherit;
}

.article-edit-form textarea {
  min-height: 320px;
  resize: vertical;
}

.article-edit-form__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 18px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.article-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-color: #dbeafe;
}

[data-theme="dark"] .article-card:hover {
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.article-card__thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #e0e7ff, #fce7f3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-page);
}

.article-card__body {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.article-card__body--pinned {
  padding-top: 28px;
}

.article-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.article-card__title {
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.32;
}

.article-card__excerpt--home {
  margin-top: 2px;
}

.article-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-card__manage-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.article-card__manage-btn--danger {
  color: #dc2626;
}

.article-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.article-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.35;
}

.article-card__title a {
  color: inherit;
}

.article-card__title a:hover {
  color: var(--link);
}

.article-card__tags {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  pointer-events: none;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
}

.tag--pin {
  background: #dc2626;
}

.tag--notice {
  background: #2563eb;
}

.tag--game {
  background: #16a34a;
}

.article-card__title {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.article-card__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.article-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-card__manage-btn {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}



.article-card__manage-btn--danger {
  color: #dc2626;
}

.article-card__excerpt--home {
  margin: 0;
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow: visible;
}

.article-card__excerpt--plain {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-card__excerpt--rich {
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-height: 3.1em;
  overflow: hidden;
  display: block;
}

.article-card__excerpt-fallback {
  color: var(--text-muted);
}

.article-card__excerpt--rich p,
.article-card__excerpt--rich div,
.article-card__excerpt--rich blockquote,
.article-card__excerpt--rich h1,
.article-card__excerpt--rich h2,
.article-card__excerpt--rich h3,
.article-card__excerpt--rich ul,
.article-card__excerpt--rich ol {
  margin: 0;
}

.article-card__excerpt--rich * {
  max-width: 100%;
}

.article-card__excerpt--rich {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__title a {
  color: inherit;
}

.article-card__title a:hover {
  color: var(--link);
}

.article-card__excerpt {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  flex-wrap: wrap;
}

.article-card__manage-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.article-card__manage-group .article-card__manage-btn,
.article-card__manage-group .board-post__like-btn {
  margin: 0;
}

.article-card__footer--bottom {
  margin-top: auto;
  padding-top: 14px;
}

.article-card__footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.article-card__manage-actions--bottom {
  order: 2;
  margin-left: 0;
}

.article-card__meta--bottom {
  justify-content: flex-start;
  margin-top: 0;
}

.article-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  margin: 24px auto;
  padding: 22px;
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.article-edit-modal__panel .article-edit-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-edit-modal__panel .article-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.article-edit-modal__panel .article-edit-form input,
.article-edit-modal__panel .article-edit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--text-primary);
  font: inherit;
}

.article-edit-modal__panel .article-edit-form textarea {
  min-height: 320px;
  resize: vertical;
}

.article-edit-modal__panel--home,
.article-edit-modal__panel--home .article-card__body {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.article-edit-modal__panel--home .article-card {
  grid-template-columns: 180px 1fr;
}

.article-edit-modal__panel--home .article-card__manage-actions {
  opacity: 1;
  transform: none;
}

.article-edit-modal__panel--home .article-card__footer {
  justify-content: space-between;
}

.article-card__manage-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.article-card__manage-actions--bottom {
  opacity: 1;
  transform: none;
}

.article-card:hover .article-card__manage-actions {
  opacity: 1;
  transform: translateY(0);
}

.article-card__manage-actions--right {
  margin-left: 0;
}

.article-card__footer .board-post__like-btn {
  margin-left: 0;
}

.article-card__footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.article-card__meta--bottom {
  justify-content: flex-end;
  margin-top: 8px;
}

.board-post__like-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.like-bounce {
  animation: likeBounce 0.42s ease;
}

@keyframes likeBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18); }
  100% { transform: scale(1); }
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.sidebar-block__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.search-box--inline input {
  flex: 1;
}

.search-confirm-btn {
  white-space: nowrap;
}

.search-suggest-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}

.search-suggest-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-suggest-item:hover {
  background: var(--nav-hover);
}

.search-suggest-item__thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-page);
}

.search-suggest-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-suggest-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-history {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.search-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.search-history__clear {
  border: none;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font-size: 13px;
}

.search-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-history__item {
  border: 1px solid var(--border);
  background: var(--bg-page);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-secondary);
}

.search-history__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.search-history {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-page);
}

.search-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-history__clear {
  border: none;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.search-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-history__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.search-suggest-panel {
  position: absolute;
  z-index: 120;
  margin-top: 4px;
  width: 100%;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.search-suggest-section {
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.search-suggest-section:last-child {
  border-bottom: none;
}

.search-suggest-section__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.search-suggest-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-suggest-item:hover {
  background: var(--nav-hover);
}

.search-suggest-item__thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-page);
}

.search-suggest-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-suggest-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest-item__meta {
  font-size: 12px;
  color: var(--text-muted);
}

.search-history {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.search-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.search-history__clear {
  border: none;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.search-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 12px;
}

.search-history__empty {
  margin: 0;
  padding: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.search-history__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
}

.search-history__head {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.search-history__list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-history__item {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.search-history__item:hover {
  background: var(--nav-hover);
  color: var(--text-primary);
}

.search-history__empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.search-box svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.notice-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hitokoto {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.hitokoto cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}

.tag-cloud a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.tc-1 {
  background: #e11d48;
}
.tc-2 {
  background: #2563eb;
}
.tc-3 {
  background: #16a34a;
}
.tc-4 {
  background: #ea580c;
}
.tc-5 {
  background: #db2777;
}
.tc-6 {
  background: #7c3aed;
}
.tc-7 {
  background: #0d9488;
}
.tc-8 {
  background: #ca8a04;
}

/* 内页通用 */
.page-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.content-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.content-section h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--link);
}

.content-section p,
.content-section li {
  color: var(--text-secondary);
  font-size: 14px;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.faq-q {
  color: #ec4899;
  font-size: 1.2em;
  font-weight: 800;
}

.faq-a {
  color: #2563eb;
  font-size: 1em;
  font-weight: 600;
}

.donate-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  color: var(--text-primary);
}

.donate-hero-card,
.donate-card {
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.donate-hero-card h2,
.donate-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 900;
}

.donate-hero-card p,
.donate-card p,
.donate-card li {
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.82);
}

[data-theme="dark"] .donate-hero-card p,
[data-theme="dark"] .donate-card p,
[data-theme="dark"] .donate-card li {
  color: rgba(255, 255, 255, 0.92);
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.donate-card--pink {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-color: #f9a8d4;
  color: #9f1239;
}

.donate-card--blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
  color: #1d4ed8;
}

.donate-card--green {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #86efac;
  color: #047857;
}

.donate-card--gold {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fbbf24;
}

.donate-card--purple {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #c4b5fd;
  color: #6d28d9;
}

.donate-card--gray {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-color: #cbd5e1;
  color: #334155;
}

.donate-qr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.donate-qr__title {
  font-weight: 800;
}

.donate-qr__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--link);
  color: #fff;
  font-weight: 700;
}

.donate-qr__open:hover {
  background: var(--link-hover);
  color: #fff;
}

.donate-qr img {
  width: min(100%, 420px);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.donate-qr__open img {
  width: min(100%, 360px);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.donate-qr__open-link {
  color: var(--link);
  font-weight: 700;
}

.donate-qr-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.donate-qr-page__link {
  display: inline-flex;
  justify-content: center;
}

.donate-qr-page__img {
  width: min(100%, 520px);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}

.donate-qr-page__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.content-section ul {
  padding-left: 1.2em;
}

.content-section li + li {
  margin-top: 8px;
}

.auth-panel {
  max-width: 420px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.auth-form input:focus {
  border-color: var(--link);
}

.auth-form__check,
.auth-form__checkline {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}

.auth-form__check input,
.auth-form__checkline input {
  width: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--link);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  background: var(--link-hover);
}

.btn-primary--ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid var(--link);
}

.btn-primary--ghost:hover {
  background: var(--nav-hover);
  color: var(--link-hover);
}

.donate-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.donate-content h2 {
  margin: 0;
}

.donate-content p,
.donate-content li {
  line-height: 1.75;
}

.donate-content hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

.donate-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-page);
}

.donate-qr__title {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.donate-qr img {
  width: min(100%, 360px);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.auth-form__foot {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-form__hint {
  margin: -8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* 代找游戏 · 发帖评论区 */
.board-intro {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.board-intro code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--nav-hover);
  color: var(--text-primary);
}

.board-session-wrap {
  margin-bottom: 16px;
}

.board-session {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border);
}

.board-session--in {
  background: #eff6ff;
  color: var(--text-secondary);
}

[data-theme="dark"] .board-session--in {
  background: #1e3a5f;
  color: var(--text-secondary);
}

.board-session--out {
  background: var(--bg-page);
  color: var(--text-secondary);
}

.board-session__name {
  color: var(--text-primary);
}

.board-session__logout {
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
}

.board-session__logout:hover {
  background: var(--nav-hover);
  color: var(--link);
}

.board-guest-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-page);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.board-form__hint--top {
  margin: 0 0 4px;
}

.board-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.board-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.board-form input[type="text"],
.board-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.board-form textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

.board-form input:focus,
.board-form textarea:focus {
  border-color: var(--link);
}

.board-form__hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board-view {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board-thread {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.board-thread:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.board-post {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 0 0 16px;
  border-bottom: none;
}

.board-post__avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #bfdbfe, #e9d5ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #4338ca;
  flex-shrink: 0;
}

.board-post__body {
  min-width: 0;
}

.board-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.board-post__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.board-post__time {
  font-size: 12px;
  color: var(--text-muted);
}

.board-post__text {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.board-post__text--rich {
  white-space: normal;
}

.article-detail__content {
  font-size: 14px;
  line-height: 1.85;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-detail__content * {
  max-width: 100%;
}

.article-detail__content p {
  margin: 0 0 12px;
}

.article-detail__content ul,
.article-detail__content ol {
  margin: 0 0 12px 1.2em;
}

.article-detail__content img,
.article-detail__content video {
  max-width: 100%;
  height: auto;
}

.article-detail__content a {
  color: var(--link);
  text-decoration: underline;
}

.board-empty {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.board-page-hint {
  margin: -6px 0 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.board-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.board-pagination__btn {
  min-width: 40px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.board-pagination__btn:hover:not(:disabled) {
  background: var(--nav-hover);
  color: var(--link);
  border-color: #bfdbfe;
}

.board-pagination__btn--current {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
  cursor: default;
}

.board-pagination__btn--current:hover {
  background: var(--link);
  color: #fff;
  border-color: var(--link);
}

.board-pagination__ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 14px;
  user-select: none;
}

.board-comments {
  margin-left: 0;
  padding: 0 0 0 8px;
  border-left: 3px solid #e0e7ff;
}

.board-comment-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

[data-theme="dark"] .board-comments,
[data-theme="dark"] .board-comment-detail {
  border-left-color: #334155;
}

.board-comments__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--link);
}

.board-comment-list {
  margin-bottom: 14px;
}

.board-comment-empty {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.board-comment {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.board-comment:last-child {
  border-bottom: none;
}

.board-comment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  align-items: center;
}

.board-comment__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.board-comment__time {
  font-size: 12px;
  color: var(--text-muted);
}

.board-comment__likes {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--link);
  background: var(--nav-hover);
  border-radius: 999px;
  padding: 2px 8px;
}

.board-comment__text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.board-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.board-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
  min-height: 72px;
  outline: none;
}

.board-comment-form textarea:focus {
  border-color: var(--link);
}

.board-comment-login-hint,
.board-comment-more {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.board-post__title-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.board-post__title-btn:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.board-comment-more-btn {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--link);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.board-comment-more-btn:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.btn-primary--sm {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 14px;
}

.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
