/* 基础布局与主题 */
:root {
  --bg-color: #f5f7fb;
  --bg-elevated: #ffffff;
  --bg-soft: #edf2ff;
  --accent: #409eff;
  --accent-soft: rgba(64, 158, 255, 0.22);
  --accent-alt: #39c5ff;
  --text-main: #1f2937;
  --text-muted: #8b9bb4;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --content-max-width: 1120px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(64, 158, 255, 0.08), transparent 55%),
    var(--bg-color);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* 顶部导航 */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-mark {
  padding: 0.15rem 0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  background: transparent;
  border-radius: 0;
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem;
  border-radius: var(--radius-pill);
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.nav-tab:hover {
  color: var(--accent);
  background: rgba(64, 158, 255, 0.06);
}

.nav-tab.active {
  background: radial-gradient(circle at 0 0, rgba(64, 158, 255, 0.14), rgba(64, 158, 255, 0.12));
  color: var(--accent);
  transform: translateY(-1px);
}

/* 桌面端不需要顶部“文档”按钮，文档固定在左侧栏 */
@media (min-width: 900px) {
  #nav-docs {
    display: none;
  }
}

/* 页面主体 */
.page-main {
  padding: 0.8rem 1.2rem 1.6rem;
  padding-left: 15.5rem; /* 给左侧固定文档栏留空 */
}

.layout {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
}

.content-section {
  flex: 1 1 auto;
  min-width: 0;
}

/* 左侧文档栏 */
.docs-panel {
  position: fixed;
  left: 0;
  top: 56px;
  bottom: 12px;
  width: 13.5rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  z-index: 20;
}

.docs-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.docs-title {
  margin: 0;
  font-size: 0.9rem;
}

.docs-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 520px;
}

.docs-list {
  padding: 0.4rem 0.4rem 0.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 180px;
  overflow-y: auto;
}

.docs-item-btn {
  width: 100%;
  text-align: left;
  border-radius: 10px;
  border: none;
  padding: 0.3rem 0.9rem 0.3rem 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
}

.docs-item-btn:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-main);
}

.docs-item-btn.active {
  background: rgba(64, 158, 255, 0.12);
  color: var(--accent);
}

.docs-item-btn::after {
  content: '›';
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.docs-item-btn.active::after {
  transform: translateY(-50%) rotate(90deg);
}

.docs-content {
  display: none;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem 0.8rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.7;
}

.docs-content.visible {
  display: block;
}

.docs-placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 0.95rem;
}

.docs-content p {
  margin: 0.3rem 0;
}

.docs-content ul {
  padding-left: 1.1rem;
  margin: 0.25rem 0;
}

.docs-content ol {
  padding-left: 1.1rem;
  margin: 0.25rem 0;
}

.docs-content li {
  margin: 0.1rem 0;
}

.comments-container {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.comment-item {
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-name {
  font-weight: 500;
}

.comment-time {
  opacity: 0.9;
}

.comment-text {
  font-size: 0.82rem;
  white-space: pre-line;
}

/* 图片放大查看 */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.image-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.image-lightbox-inner img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.image-lightbox-close {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(12, 14, 34, 0.95);
  color: #fff;
  font-size: 1rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.section-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.section-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 轮播图 */
.banner-section {
  max-width: var(--content-max-width);
  margin: 0 auto 1rem;
}

.banner-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-soft);
  height: 210px;
}

.banner-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.banner-item {
  min-width: 100%;
  position: relative;
  height: 100%;
  cursor: pointer;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.2) contrast(1.05);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.15));
}

.banner-content {
  position: relative;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.banner-text {
  max-width: 70%;
}

.banner-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.banner-sub {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.banner-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.banner-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.04);
  background: #ffffff;
}

.banner-arrow-prev {
  left: 0.6rem;
}

.banner-arrow-next {
  right: 0.6rem;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.06);
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.banner-dot.active {
  width: 14px;
  background: var(--accent);
  transform: translateY(-0.5px);
}

/* 列表 / 卡片 */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.content-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  cursor: pointer;
}

.content-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(64, 158, 255, 0.25);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.card-cover-wrapper {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.card-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 0.55rem 0.65rem 0.7rem;
}

.card-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 状态提示 */
.status {
  font-size: 0.8rem;
  margin: 0.6rem 0;
}

.status-loading {
  color: var(--accent-alt);
}

.status-error {
  color: #ff8ba7;
}

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

/* 详情视图 */
.detail-view {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 0;
  margin-top: 0.8rem;
}

.back-button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
  border: none;
}

.back-button:hover {
  background: rgba(148, 163, 184, 0.1);
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1rem 1.2rem 0.9rem;
  background: var(--bg-elevated);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  box-shadow: var(--shadow-soft);
}

.detail-cover {
  width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-meta {
  min-width: 0;
  flex: 1 1 220px;
}

.detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.1rem 0 0.4rem;
}

.tag-chip {
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(90, 209, 255, 0.12);
  border: 1px solid rgba(90, 209, 255, 0.35);
  font-size: 0.74rem;
}

.detail-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.detail-description {
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-line;
}

.detail-stats {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-app-download,
.detail-join-block {
  margin-top: 0.6rem;
}

.detail-app-title,
.detail-join-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.detail-app-row,
.detail-join-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.detail-app-btn,
.detail-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  text-decoration: none;
  min-width: 5.5rem;
}

.detail-app-btn {
  background: #e0f2ff;
  color: var(--accent);
}

.detail-app-btn:hover {
  background: #d5ebff;
}

.detail-join-btn {
  background: #eef2ff;
  color: var(--accent);
}

.detail-join-btn:hover {
  background: #e0e7ff;
}

.detail-app-row--two .detail-app-btn,
.detail-join-row--two .detail-join-btn {
  flex: 1 1 0;
}

.detail-btn-icon {
  display: inline-flex;
  margin-right: 0.3rem;
}

.detail-btn-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.detail-btn-text {
  white-space: nowrap;
}

.detail-tabs {
  display: flex;
  flex-wrap: nowrap;
  margin-top: 0;
  background: #f3f4f6;
  border-radius: 0 0 18px 18px;
  border: 1px solid var(--border-subtle);
  border-top: none;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.detail-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  flex: 1 0 0;
  text-align: center;
}

.detail-tab.active {
  background: #ffffff;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 rgba(64, 158, 255, 0.9);
}

.detail-tab-content {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 1rem 1.2rem 1.4rem;
  background: var(--bg-elevated);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.detail-section-title {
  font-size: 0.9rem;
  margin: 0.9rem 0 0.4rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.preview-img {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
}

.download-link:hover {
  border-color: var(--accent);
  background: rgba(64, 158, 255, 0.08);
}

/* 表单（投稿 / 搜索） */
.submission-view,
.search-view {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem 1.2rem;
  margin-top: 0.4rem;
}

.submission-form,
.search-form {
  display: grid;
  gap: 0.7rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-row-inline {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.inline-label {
  min-width: 3.2rem;
  font-size: 0.8rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="search"],
input[type="url"],
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.45rem 0.6rem;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.35);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.primary-btn {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  background: linear-gradient(90deg, #409eff, #36cfc9);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.submission-status,
.search-status {
  font-size: 0.8rem;
}

/* 标签侧滑栏 */
.tag-drawer-handle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translate(40%, -50%);
  z-index: 35;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.9rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tag-drawer {
  position: fixed;
  z-index: 40;
  right: 0;
  top: 72px;
  bottom: 18px;
  width: 260px;
  background: var(--bg-elevated);
  border-radius: 18px 0 0 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.tag-drawer.open {
  transform: translateX(0);
}

.tag-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.7rem 0.3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.tag-drawer-title {
  margin: 0;
  font-size: 0.9rem;
}

.tag-drawer-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tag-drawer-body {
  padding: 0.5rem 0.6rem 0.7rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tag-pill {
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  background: #ffffff;
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tag-pill:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.tag-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-main);
}

.tag-pill-all {
  align-self: flex-start;
}

/* 列表分页 */
.list-pagination {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.page-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  color: var(--text-main);
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

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

.page-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.page-jump input {
  width: 3rem;
  padding: 0.2rem 0.35rem;
}

/* 自适应 */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .docs-panel {
    position: fixed;
    left: 0;
    right: 0;
    width: auto;
    top: 52px;
    bottom: auto;
    max-height: 60vh;
    transform: translateY(-105%);
    transition: transform 0.25s ease;
    margin: 0 0.6rem;
  }

  .docs-panel.open {
    transform: translateY(0);
  }

  .page-main {
    padding-left: 0.8rem;
  }

  .banner-container {
    min-height: 150px;
  }

  .banner-text {
    max-width: 100%;
  }

  .detail-view,
  .submission-view,
  .search-view {
    padding: 0.9rem;
  }

  .detail-header {
    flex-direction: column;
    /* 移动端缩小底部内边距，让“点赞/下载”和下方 Tab 更贴近 */
    padding-bottom: 0.5rem;
  }

  .detail-cover {
    width: 100%;
    max-width: 320px;
  }

  /* 移动端/小屏：标签按钮放到右上角，抽屉靠顶部展开 */
  .tag-drawer {
    width: min(82vw, 280px);
    top: 72px;
    bottom: 18px;
    border-radius: 16px;
  }

  .tag-drawer-handle {
    top: 72px;
    right: 0.8rem;
    transform: none;
    writing-mode: horizontal-tb;
    padding-inline: 0.8rem;
  }
}

@media (max-width: 720px) {
  .top-nav {
    padding-inline: 0.8rem;
  }

  .nav-tabs {
    transform: scale(0.96);
  }

  .page-main {
    padding-inline: 0.8rem;
  }

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

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

  /* 移动端搜索表单：改为上下布局，输入框占满宽度 */
  #search-view .search-form .form-row-inline {
    flex-direction: column;
    align-items: stretch;
  }

  #search-view .inline-label {
    min-width: auto;
  }

  #search-view input[type="search"],
  #search-view select {
    width: 100%;
  }

  /* 移动端缩小详情页点赞统计与下方内容之间的间距 */
  .detail-stats {
    margin-top: 0.25rem;
  }

  .detail-tab-content {
    margin-top: 0.6rem;
  }
}

@media (max-width: 480px) {
  .banner-content {
    padding: 0.9rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-title {
    font-size: 0.9rem;
  }

  .card-title {
    font-size: 0.78rem;
  }
}

@media (min-width: 1200px) {
  .content-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Markdown 文档内联代码高亮与列表样式 */
.docs-content ol {
  padding-left: 1.1rem;
  margin: 0.25rem 0;
}

.docs-content code {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  border-radius: 0.4rem;
  background: #ffe4f0;
  color: #d63384;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}
