/* Fly theme */
.fly-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.fly-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
}
.fly-site-footer .fly-brand,
.fly-navigation-brand {
  margin-bottom: 0;
}
.fly-sidebar-section-title {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.75rem;
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.fly-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.fly-filter-chip-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  opacity: 0.85;
}
.fly-filter-chip-icon.fly-iconify {
  background: currentColor;
}
.fly-filter-chip-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fly-filter-chip.fly-is-active .fly-filter-chip-icon,
.fly-filter-chip[aria-pressed="true"] .fly-filter-chip-icon {
  opacity: 1;
}
.fly-filter-chip--expandable {
  gap: 0.35rem;
}
.fly-filter-chip-caret {
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: transform 160ms ease;
}
.fly-filter-chip-caret svg {
  display: block;
  width: 12px;
  height: 12px;
}
.fly-filter-chip--expandable.fly-is-expanded .fly-filter-chip-caret,
.fly-filter-chip--expandable[aria-expanded="true"] .fly-filter-chip-caret {
  transform: rotate(90deg);
  opacity: 1;
}
.fly-filter-chip--child {
  opacity: 0.95;
}
.fly-filter-chip--child[hidden] {
  display: none !important;
}
.fly-filter-chip--child span {
  font-weight: 500;
}
.fly-article-feed--taxonomy .fly-post-tags {
  margin-top: 10px;
}
.fly-menu-icon i {
  font-size: 14px;
  line-height: 1;
}
.fly-theme-toggle {
  margin-top: 0.75rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
}
.fly-category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.fly-category-chip {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
}
.fly-category-chip.is-active,
.fly-category-chip:hover {
  background: var(--fly-primary-color, #000);
  color: #fff;
  border-color: transparent;
}
html[data-theme="dark"] .fly-category-chip.is-active,
html[data-theme="dark"] .fly-category-chip:hover {
  background: var(--fly-primary-color-dark, #fff);
  color: #111;
}
.fly-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}
.fly-section-title {
  margin: 0;
  font-size: 1.25rem;
}
.fly-article-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.fly-latest-section .fly-load-more-wrap {
  display: flex;
  justify-content: center;
}
.fly-post-cover,
.fly-featured-image,
.fly-home-slide-image,
.fly-post-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fly-post-cover--empty,
.fly-featured-image.fly-post-cover--empty {
  display: block;
  min-height: 160px;
  background: color-mix(in srgb, var(--fly-secondary-color, #ededed) 80%, #ccc);
}
.fly-featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
}
.fly-featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  min-height: 180px;
  background: #111;
  color: #fff;
}
.fly-featured-card--lead {
  grid-row: span 2;
  min-height: 380px;
}
.fly-featured-card .fly-featured-image,
.fly-featured-card .fly-post-cover--empty {
  position: absolute;
  inset: 0;
}
.fly-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.72));
  pointer-events: none;
}
.fly-featured-content {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem 1.15rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  box-sizing: border-box;
}
.fly-featured-title {
  margin: 0.45rem 0;
  font-size: 1.15rem;
  line-height: 1.35;
}
.fly-featured-card--lead .fly-featured-title { font-size: 1.55rem; }
.fly-featured-title a,
.fly-home-slide-content a,
.fly-post-title a {
  color: inherit;
  text-decoration: none;
}
.fly-featured-excerpt { margin: 0; opacity: .9; font-size: .92rem; }
.fly-card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.fly-featured-content,
.fly-home-slide-content { pointer-events: none; }
.fly-featured-content a,
.fly-home-slide-content a { pointer-events: auto; position: relative; z-index: 3; }
.fly-post-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .8rem; opacity: .85; }
.fly-post-meta--light { color: #fff; opacity: .92; }
.fly-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: .55; display: inline-block;
}
.fly-home-slider,
.fly-home-carousel {
  position: relative;
}
.fly-home-slide {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 360px;
  background: #111;
  color: #fff;
}
/* 轮播箭头始终可见（含触屏，不依赖 hover） */
.fly-home-slider .fly-carousel-controls {
  z-index: 8;
}
.fly-home-slider .fly-carousel-arrow,
.fly-home-carousel .fly-carousel-arrow {
  width: 42px;
  height: 42px;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.fly-home-slider .fly-carousel-arrow:disabled {
  opacity: 0.35 !important;
  cursor: default;
}
.fly-home-slider .fly-carousel-dots {
  z-index: 8;
}
.fly-friends-section {
  margin-top: 2.5rem;
}
.fly-friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.fly-friend-card {
  position: relative;
  min-height: 88px;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, currentColor 5%, transparent);
}
.fly-friend-card > a {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.fly-friend-card h3 {
  position: relative;
  z-index: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.fly-friend-card p {
  position: relative;
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.65;
}
.fly-friend-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 6px;
  object-fit: contain;
}
.fly-home-slide-image { position: absolute; inset: 0; }
.fly-home-slide-content {
  position: relative; z-index: 1;
  padding: 2rem 1.5rem;
  max-width: 40rem;
}
.fly-taxonomy-hero { margin-bottom: 1.5rem; }
.fly-taxonomy-title { margin: 0 0 .35rem; font-size: 1.8rem; }
.fly-taxonomy-count { margin: 0; opacity: .6; }
.fly-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 42px 0 78px;
  padding: 0;
  list-style: none;
  width: 100%;
}
.fly-pagination ul,
.fly-pagination ol {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.fly-pagination li,
.fly-pagination .page-item {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fly-pagination a,
.fly-pagination span,
.fly-pagination .page-link,
.fly-pagination .fly-pagination__prev,
.fly-pagination .fly-pagination__next,
.fly-pagination .fly-pagination__info {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  border: 0;
  margin: 0;
  box-sizing: border-box;
}
.fly-pagination a,
.fly-pagination a:link,
.fly-pagination a:visited,
.fly-pagination .page-link,
.fly-pagination .fly-pagination__prev,
.fly-pagination .fly-pagination__next {
  background: var(--accent, var(--fly-primary-color, #000));
  color: var(--accent-contrast, #fff) !important;
}
.fly-pagination a:hover,
.fly-pagination .page-link:hover,
.fly-pagination .fly-pagination__prev:hover,
.fly-pagination .fly-pagination__next:hover {
  opacity: 0.88;
}
html[data-theme="dark"] .fly-pagination a,
html[data-theme="dark"] .fly-pagination a:link,
html[data-theme="dark"] .fly-pagination a:visited,
html[data-theme="dark"] .fly-pagination .page-link,
html[data-theme="dark"] .fly-pagination .fly-pagination__prev,
html[data-theme="dark"] .fly-pagination .fly-pagination__next {
  background: var(--fly-primary-color-dark, #fff);
  color: #111 !important;
}
.fly-pagination__info,
.fly-pagination > span,
.fly-pagination span.fly-pagination__info,
.fly-pagination .page-item.active .page-link,
.fly-pagination .page-item.disabled .page-link,
.fly-pagination .page-dot {
  color: var(--muted, var(--faint, #888)) !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums;
  cursor: default;
  opacity: 1;
  pointer-events: none;
}
.fly-pagination .page-item.active .page-link {
  color: var(--text, inherit) !important;
  font-weight: 800;
}
.fly-empty { padding: 3rem 1rem; text-align: center; opacity: .6; }
.fly-friend-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
}
.fly-friend-list a { color: inherit; text-decoration: none; }
.fly-friend-list a:hover { text-decoration: underline; }
.fly-post-page-content img,
.fly-post-body-content img { max-width: 100%; height: auto; border-radius: .5rem; }

/* 视频封面：列表/精选/详情容器内绝对铺满 */
.fly-post-image-frame,
.fly-featured-card,
.fly-home-slide,
.fly-post-related-media,
.fly-post-page-media figure {
  position: relative;
  overflow: hidden;
}
.fly-post-image-frame .fly-post-cover-media,
.fly-featured-card .fly-post-cover-media,
.fly-home-slide .fly-post-cover-media,
.fly-post-related-media .fly-post-cover-media,
.fly-post-page-media .fly-post-cover-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  border-radius: inherit;
}
.fly-post-page-media .fly-post-cover-media--image:only-child,
.fly-post-page-media figure > .fly-post-cover-media--image:last-of-type:first-of-type {
  position: absolute;
}
.fly-post-cover-media--video {
  z-index: 1;
  background: var(--page-alt, #111);
}
.fly-post-cover-media--image {
  z-index: 0;
}
.fly-post-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.7);
  color: #fff;
  pointer-events: none;
}
.fly-post-image-link .fly-post-video-badge,
.fly-featured-card .fly-post-video-badge,
.fly-home-slide .fly-post-video-badge,
.fly-post-related-media .fly-post-video-badge {
  pointer-events: none;
}
.fly-post-toc:not([hidden]) {
  display: block;
  margin-top: 0.75rem;
}
.fly-post-toc-toggle {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}
.fly-post-toc-list,
.fly-post-toc-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fly-post-toc-list {
  margin-top: 12px;
  border-left: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  padding-left: 14px;
}
.fly-post-toc-list ol { padding-left: 12px; }
.fly-post-toc-list a {
  display: block;
  border-radius: 6px;
  color: inherit;
  opacity: 0.65;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
.fly-post-toc-list a:hover,
.fly-post-toc-list a.fly-is-active {
  opacity: 1;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
@media (max-width: 991px) {
  .fly-post-toc {
    width: 100%;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 14px;
    padding: 6px 8px;
  }
  .fly-post-toc-toggle { cursor: pointer; }
  .fly-post-toc[data-fly-expanded="false"] .fly-post-toc-list { display: none; }
  .fly-post-toc-list { border-left: 0; padding-left: 2px; }
}
.fly-post-author-card {
  display: flex; gap: .85rem; align-items: center;
  padding: 1rem; border-radius: 1rem;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  margin-bottom: 1rem;
}
.fly-post-author-avatar { border-radius: 50%; }
.fly-post-author-avatar-link {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
}
.fly-post-author-name { font-weight: 700; color: inherit; text-decoration: none; }
.fly-post-author-des { margin: .2rem 0 0; font-size: .82rem; opacity: .65; }
.fly-post-author-links button.fly-post-author-contact {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--page-alt);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background-color 150ms ease;
}
.fly-post-author-links button.fly-post-author-contact:hover,
.fly-post-author-links button.fly-post-author-contact:focus-visible {
  background: var(--hover-bg-color);
}
.fly-post-page-meta-views {
  color: var(--muted);
}
.fly-single-page { max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.fly-back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--fly-primary-color, #000); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
html[data-theme="dark"] .fly-back-to-top {
  background: var(--fly-primary-color-dark, #fff); color: #111;
}
.fly-sidebar-footer-nav {
  display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem;
}
.fly-sidebar-footer-nav a { color: inherit; text-decoration: none; font-size: .85rem; opacity: .75; }
@media (max-width: 960px) {
  .fly-featured-grid { grid-template-columns: 1fr; }
  .fly-featured-card--lead { grid-row: auto; min-height: 280px; }
}

/* 搜索弹窗 */
.fly-search-modal {
  width: min(560px, calc(100vw - 2rem));
  max-width: 100%;
  margin: auto;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 16px;
  background: var(--page, #fff);
  color: var(--text, #111);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}
.fly-search-modal::backdrop {
  background: rgba(17, 19, 23, 0.56);
}
.fly-search-modal-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
}
.fly-search-modal-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  background: var(--page-alt, #f4f4f5);
}
.fly-search-modal-bar .fly-iconify {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.55;
}
.fly-search-modal-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
.fly-search-modal-esc {
  position: static;
  margin: 0;
  padding: 0.15rem 0.4rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 6px;
  font-size: 0.72rem;
  opacity: 0.65;
}
.fly-search-modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.fly-search-modal-close:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.fly-search-modal-hint {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.55;
}
.fly-search-modal-hint kbd {
  position: static;
  padding: 0.1rem 0.35rem;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 4px;
  font-size: 0.75rem;
}
.fly-search-modal-submit {
  justify-self: end;
}

/* 相关阅读 */
.fly-article-feed--related {
  margin-top: 0.25rem;
}
.fly-post-page-share {
  position: relative;
}
.fly-post-page-meta-avatar > a {
  display: block;
  width: 100%;
  height: 100%;
}
.fly-post-page-meta-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.fly-post-page-meta-author > a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.fly-post-comments-body {
  --cw-avatar: var(--halo-cw-avatar-size, 36px);
  --cw-radius: var(--halo-cw-base-rounded, 14px);
  --cw-text: var(--halo-cw-text-1-color, var(--text));
  --cw-muted: var(--halo-cw-text-2-color, var(--muted));
  --cw-faint: var(--halo-cw-text-3-color, var(--faint));
  --cw-soft: var(--halo-cw-muted-3-color, var(--page-alt));
  --cw-line: var(--halo-cw-muted-1-color, color-mix(in srgb, currentColor 14%, transparent));
  --cw-primary: var(--halo-cw-primary-1-color, var(--fly-primary-color, #000));
  font-family: var(--halo-cw-base-font-family, inherit);
  font-size: var(--halo-cw-base-font-size, 14px);
  color: var(--cw-text);
}
.fly-post-comments-empty {
  margin: 0 0 1.25rem;
  color: var(--cw-muted, var(--muted));
}
.fly-cw-list { display: flex; flex-direction: column; margin: 0 0 1.5rem; }
.fly-cw-item {
  display: grid;
  grid-template-columns: var(--cw-avatar) minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cw-line, currentColor) 55%, transparent);
}
.fly-cw-item:last-child { border-bottom: 0; }
.fly-cw-avatar {
  display: grid;
  width: var(--cw-avatar, 36px);
  height: var(--cw-avatar, 36px);
  place-items: center;
  border-radius: var(--halo-cw-avatar-rounded, 50%);
  background: var(--cw-soft, var(--page-alt));
  color: var(--cw-muted, var(--muted));
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
}
.fly-cw-main { min-width: 0; }
.fly-cw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}
.fly-cw-author { color: var(--cw-text, var(--text)); font-weight: 600; font-size: 14px; }
.fly-cw-url { color: var(--cw-faint, var(--faint)); font-size: 12px; text-decoration: none; }
.fly-cw-url:hover { color: var(--cw-text, var(--text)); }
.fly-cw-head time { color: var(--cw-faint, var(--faint)); font-size: 12px; }
.fly-cw-body { color: var(--cw-text, var(--text)); line-height: 1.65; word-break: break-word; }
.fly-cw-actions { margin-top: 8px; }
.fly-cw-reply-btn,
.fly-cw-cancel,
.comment-cancel-main-reply {
  border: 0;
  background: transparent;
  color: var(--cw-muted, var(--muted));
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.fly-cw-reply-btn:hover,
.fly-cw-cancel:hover,
.comment-cancel-main-reply:hover { color: var(--cw-text, var(--text)); }
.fly-cw-children {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid color-mix(in srgb, var(--cw-line, currentColor) 70%, transparent);
}
.fly-cw-children .fly-cw-avatar { width: 28px; height: 28px; font-size: 11px; }
.fly-cw-children .fly-cw-item { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 0; }
.fly-cw-reply-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--cw-radius, 14px);
  background: var(--cw-soft, var(--page-alt));
}
.fly-cw-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--cw-radius, 14px);
  background: var(--halo-cw-muted-2-color, var(--page-alt));
}
.fly-cw-form-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--cw-text, var(--text));
  font-weight: 600;
}
.fly-cw-reply-hint { color: var(--cw-primary, var(--fly-primary-color)); font-size: 13px; font-weight: 600; }
.fly-cw-form textarea,
.fly-cw-reply-form textarea,
.fly-cw-fields input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: var(--page, #fff);
  color: var(--cw-text, var(--text));
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}
html[data-theme="dark"] .fly-cw-form textarea,
html[data-theme="dark"] .fly-cw-reply-form textarea,
html[data-theme="dark"] .fly-cw-fields input { background: color-mix(in srgb, var(--page) 70%, #000); }
.fly-cw-form textarea:focus,
.fly-cw-reply-form textarea:focus,
.fly-cw-fields input:focus {
  outline: 2px solid color-mix(in srgb, var(--cw-primary, #000) 40%, transparent);
  outline-offset: 1px;
}
.fly-cw-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fly-cw-fields--inline { grid-template-columns: 1fr 1fr; }
.fly-cw-reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.fly-cw-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cw-primary, var(--fly-primary-color, #000));
  color: var(--accent-contrast, #fff);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
html[data-theme="dark"] .fly-cw-submit { color: #111; }
.fly-cw-pagination { margin: 0 0 1rem; font-size: 13px; }
@media (max-width: 720px) {
  .fly-cw-fields { grid-template-columns: 1fr; }
}
.fly-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0.4rem 1rem; border: 0; border-radius: 999px;
  cursor: pointer; font: inherit; font-weight: 600; font-size: 0.9rem;
}
.fly-btn--primary { background: var(--fly-primary-color, #000); color: #fff; }
html[data-theme="dark"] .fly-btn--primary { background: var(--fly-primary-color-dark, #fff); color: #111; }
.fly-btn--ghost { background: transparent; color: inherit; opacity: 0.7; }
body.user-center-page,
body.fly-user-center {
  --ink: var(--text, #111);
  --muted: var(--faint, #6b7280);
  --bg: var(--page-alt, #f4f4f5);
  --surface: var(--page, #fff);
  --surface-2: var(--page-alt, #f4f4f5);
  --line: color-mix(in srgb, currentColor 10%, transparent);
  --nova-primary: var(--fly-primary-color, #000);
  --nova-primary-soft: color-mix(in srgb, var(--fly-primary-color, #000) 12%, transparent);
  --uc-primary: var(--fly-primary-color, #000);
  --uc-primary-soft: color-mix(in srgb, var(--fly-primary-color, #000) 12%, transparent);
  --uc-bg: transparent;
  --uc-surface: var(--page, #fff);
  --uc-surface-2: var(--page-alt, #f4f4f5);
  --uc-ink: var(--text, #111);
  --uc-muted: var(--faint, #6b7280);
  --uc-line: color-mix(in srgb, currentColor 10%, transparent);
  --uc-radius: 14px;
  --uc-radius-sm: 10px;
  --uc-shadow: none;
}
.fly-uc-page {
  padding-top: 8px;
  padding-bottom: 48px;
}
.fly-uc-page .uc-band {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.fly-uc-page .uc-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.fly-uc-page .uc-sidebar {
  position: sticky;
  top: calc(var(--navbar-height, 56px) + 16px);
  border: 1px solid var(--uc-line);
  border-radius: 18px;
  background: var(--page, #fff);
  padding: 16px;
  box-shadow: none;
}
.fly-uc-page .uc-profile-card {
  text-align: left;
  padding: 8px 4px 16px;
  border-bottom: 1px solid var(--uc-line);
  margin-bottom: 12px;
}
.fly-uc-page .avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--page-alt, #f4f4f5);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}
.fly-uc-page .avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fly-uc-page .uc-profile-meta .name {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}
.fly-uc-page .uc-role-badge {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--uc-primary-soft);
  color: var(--uc-ink);
  font-size: 12px;
  font-weight: 600;
}
.fly-uc-page .uc-balance-card {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--page-alt, #f4f4f5);
  border: 0;
}
.fly-uc-page .uc-nav a {
  border-radius: 10px;
  font-weight: 500;
}
.fly-uc-page .uc-nav a.active,
.fly-uc-page .uc-nav a:hover {
  background: var(--page-alt, #f4f4f5);
  color: var(--text, inherit);
}
.fly-uc-page .uc-main {
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.fly-uc-page .uc-panel {
  border: 1px solid var(--uc-line);
  border-radius: 18px;
  background: var(--page, #fff);
  padding: 20px 22px 24px;
}
.fly-uc-page .uc-panel-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}
.fly-uc-page .panel-desc {
  margin: 6px 0 0;
  color: var(--faint, #6b7280);
}
.fly-uc-page .uc-stat-grid,
.fly-uc-page .uc-quick-grid {
  gap: 12px;
}
.fly-uc-page .uc-stat-card,
.fly-uc-page .uc-quick-card {
  border: 1px solid var(--uc-line);
  border-radius: 14px;
  background: var(--page-alt, #f4f4f5);
  box-shadow: none;
}
.fly-uc-page .form-input,
.fly-uc-page .form-select,
.fly-uc-page textarea.form-input {
  border-radius: 12px;
  border-color: var(--uc-line);
  background: var(--page-alt, #f4f4f5);
}
.fly-uc-page .btn-primary,
.fly-uc-page .auth-submit {
  border-radius: 999px;
  background: var(--fly-primary-color, #000);
  border: 0;
}
html[data-theme="dark"] .fly-uc-page .btn-primary,
html[data-theme="dark"] .fly-uc-page .auth-submit {
  background: var(--fly-primary-color-dark, #fff);
  color: #111;
}
@media (max-width: 900px) {
  .fly-uc-page .uc-shell {
    grid-template-columns: 1fr;
  }
  .fly-uc-page .uc-sidebar {
    position: static;
  }
}

/* Fly 认证页补充 */
.fly-auth-page .fly-auth-native .form-error,
.fly-auth-page .fly-auth-native .alert {
  margin: 0 0 12px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
}
.fly-auth-page .fly-auth-native .form-item-compact > label[for="rememberMe"] {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  border: 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
}
.fly-auth-page .fly-auth-captcha {
  height: 48px;
  width: auto;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
}
.fly-auth-page .fly-auth-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 30px;
  border-radius: 24px;
  background: var(--accent, #000);
  color: var(--accent-contrast, #fff);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.fly-auth-page .fly-auth-footer {
  margin-top: auto;
  padding-top: 24px;
}
.fly-auth-page .fly-auth-footer .fly-brand {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.fly-auth-page .fly-auth-footer .fly-footer-copy,
.fly-auth-page .fly-auth-footer .fly-footer-beian {
  margin: 0.15rem 0;
  font-size: 12px;
  opacity: 0.55;
}
.fly-auth-page .fly-auth-footer a {
  color: inherit;
  text-decoration: none;
}
.fly-auth-page .login-notice-content,
.fly-auth-page .signup-notice-content {
  color: var(--muted);
  font-size: 14px;
}
.fly-auth-page .login-notice-content a,
.fly-auth-page .signup-notice-content a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 900px) {
  .fly-auth-page .fly-auth-shell {
    flex-direction: column;
    gap: 0;
  }
  .fly-auth-page .fly-auth-cover {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    height: 28vh;
    min-height: 160px;
  }
  .fly-auth-page .fly-auth-panel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
  }
}

.fly-latest-section {
  margin-bottom: clamp(48px, 5vw, 80px);
}
.fly-latest-feed {
  display: grid;
  gap: clamp(28px, 3vw, 40px);
}
.fly-topic-section {
  display: grid;
  gap: clamp(48px, 5vw, 80px);
  margin: 0 0 clamp(48px, 5vw, 80px);
}
.fly-topic-block {
  position: relative;
  min-width: 0;
}
.fly-topic-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.fly-topic-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}
.fly-topic-header h2 a {
  color: inherit;
  text-decoration: none;
}
.fly-topic-header h2 a:hover {
  text-decoration: underline;
}
.fly-topic-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.fly-section-view-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--hover-bg-color, rgba(0, 0, 0, 0.06));
  color: var(--text);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.fly-section-view-link:hover,
.fly-section-view-link:focus-visible {
  opacity: 0.85;
}
.fly-topic-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.fly-topic-rail::-webkit-scrollbar {
  display: none;
}
.fly-topic-slide {
  flex: 0 0 min(100%, 320px);
  min-width: 0;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .fly-topic-slide {
    flex-basis: calc((100% - 40px) / 3);
  }
}
@media (min-width: 1200px) {
  .fly-topic-slide {
    flex-basis: calc((100% - 60px) / 4);
  }
}
.fly-topic-block > .fly-carousel-controls {
  pointer-events: none;
}
.fly-topic-block > .fly-carousel-controls .fly-carousel-arrow {
  pointer-events: auto;
}
@media (max-width: 767px) {
  .fly-topic-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fly-section-view-link {
    width: 100%;
    justify-content: center;
  }
}

.fly-post-page--split {
  padding-top: 8px;
}
.fly-post-page-header--split {
  display: flex;
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  align-items: center;
  flex-direction: row;
  gap: 40px;
}
.fly-post-page-header--split > .fly-post-page-media {
  flex: 1 1 0%;
  width: auto;
  max-width: 50%;
  min-width: 0;
  margin-inline: 0;
}
.fly-post-page-header--split > .fly-post-page-media figure {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  border-radius: 14px;
}
.fly-post-page-header--split .fly-post-page-header-copy {
  flex: 1 1 0%;
  max-width: 600px;
  justify-content: center;
  padding: 30px 0;
}
.fly-post-page-header--split .fly-post-page-header-copy--solo {
  max-width: 700px;
  width: 100%;
  margin-inline: 0;
  padding-top: 30px;
}
.fly-post-page-header--split .fly-post-page-tags {
  order: 0;
  width: 100%;
  margin-bottom: 4px;
}
.fly-post-page-header--split .fly-post-page-title,
.fly-post-page-header--split .fly-post-page-excerpt {
  order: unset;
  width: 100%;
}
.fly-post-page-header--split .fly-post-page-header-info {
  align-items: flex-end;
}
.fly-post-page-header--split .fly-post-page-cover,
.fly-post-page-header--split .fly-post-cover-media {
  object-fit: contain;
}
@media (max-width: 991px) {
  .fly-post-page-header--split {
    flex-direction: column;
    gap: 30px;
  }
  .fly-post-page-header--split > .fly-post-page-media {
    width: 100%;
    max-width: 100%;
    flex: none;
    margin-inline: auto;
  }
  .fly-post-page-header--split .fly-post-page-header-copy {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 0;
  }
  .fly-post-page-header--split .fly-post-page-header-info {
    align-items: flex-start;
  }
}

/* 侧栏标签随机色（圆点继承 --fly-tag-color） */
.fly-sidebar-tag-list > li {
  --fly-tag-color: var(--line, #c4c4c4);
}
.fly-sidebar-tag-list .fly-tag-dot::before {
  background: var(--fly-tag-color, var(--line, #c4c4c4));
}
