:root {
  --bg: #fafafa;
  --bg-card: #fafafa;
  --text: rgba(20, 20, 20, 0.92);
  --text-strong: rgba(20, 20, 20, 0.9);
  --muted: rgba(20, 20, 20, 0.6);
  --line: rgba(20, 20, 20, 0.12);
  --header-bg: rgba(250, 250, 250, 0.8);
  --control-bg: #ffffff;
  --button-solid-bg: #141414;
  --button-solid-text: #ffffff;
  --detail-bg: rgba(0, 0, 0, 0.72);
  --detail-text: rgba(255, 255, 255, 0.82);
  --search-text: rgba(20, 20, 20, 0.7);
  --focus-ring: rgba(20, 20, 20, 0.16);
  --select-option-bg: #ffffff;
  --select-option-hover: #f2f2f2;
  --scrollbar-thumb: color-mix(in srgb, var(--text-strong) 18%, transparent);
  --scrollbar-thumb-hover: color-mix(in srgb, var(--text-strong) 28%, transparent);
  --scrollbar-thumb-active: color-mix(in srgb, var(--text-strong) 38%, transparent);
  --scrollbar-track: color-mix(in srgb, var(--line) 18%, transparent);
}

html[data-theme="dark"] {
  --bg: #000000;
  --bg-card: #000000;
  --text: rgba(255, 255, 255, 0.9);
  --text-strong: rgba(255, 255, 255, 0.96);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(0, 0, 0, 0.8);
  --control-bg: #101010;
  --button-solid-bg: #ffffff;
  --button-solid-text: #111111;
  --detail-bg: rgba(255, 255, 255, 0.18);
  --detail-text: rgba(255, 255, 255, 0.94);
  --search-text: rgba(255, 255, 255, 0.72);
  --focus-ring: rgba(255, 255, 255, 0.2);
  --select-option-bg: #0f0f0f;
  --select-option-hover: #1a1a1a;
  --scrollbar-thumb: color-mix(in srgb, var(--text-strong) 24%, transparent);
  --scrollbar-thumb-hover: color-mix(in srgb, var(--text-strong) 34%, transparent);
  --scrollbar-thumb-active: color-mix(in srgb, var(--text-strong) 46%, transparent);
  --scrollbar-track: color-mix(in srgb, var(--line) 28%, transparent);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--scrollbar-thumb);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.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;
}

.lucide {
  width: 16px;
  height: 16px;
  stroke-width: 1.85;
}

[v-cloak] {
  display: none;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main,
#app > main {
  flex: 1 0 auto;
}

#app > .site-footer {
  margin-top: auto;
}

.shell {
  width: 100%;
  padding: 0 clamp(20px, 4vw, 60px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
}

.nav-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  text-decoration: none;
  color: var(--text-strong);
  font-family: "Inter", sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.top-nav-group {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.top-nav-main {
  flex: 1 1 auto;
}

.top-nav a,
.action-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

.top-nav a:hover,
.action-link:hover,
.section-head a:hover,
.detail:hover,
.join-btn:hover {
  opacity: 0.88;
}

.top-nav a.active {
  color: var(--text-strong);
}

.top-nav-review {
  flex: 0 0 auto;
  margin-left: auto;
}

.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.guest-mobile-more {
  display: none;
}

.top-actions .action-link,
.top-actions .search-btn,
.top-actions .theme-cycle-btn,
.top-actions .more-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  transition: filter 0.2s ease;
}

.top-actions .action-link {
  padding-left: 18px;
  padding-right: 18px;
}

.top-actions .action-link:hover,
.top-actions .search-btn:hover,
.top-actions .theme-cycle-btn:hover,
.top-actions .more-menu-btn:hover {
  opacity: 1;
  filter: brightness(1.04);
}

.site-toast-root {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: min(92vw, 520px);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.site-toast {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--control-bg) 92%, transparent);
  color: var(--text-strong);
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-toast.success {
  border-color: rgba(16, 185, 129, 0.35);
}

.site-toast.error {
  border-color: rgba(239, 68, 68, 0.38);
}

.site-toast.hide {
  opacity: 0;
  transform: translateY(-6px);
}

.more-menu {
  position: relative;
}

.more-menu > summary {
  list-style: none;
}

.more-menu > summary::-webkit-details-marker {
  display: none;
}

.more-menu-btn {
  cursor: pointer;
  min-width: 40px;
  padding-left: 10px;
  padding-right: 10px;
}

.more-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.more-menu-panel[hidden] {
  display: none !important;
}

.more-menu:not([open]) .more-menu-panel {
  display: none;
}

.more-menu-item,
.more-menu-link {
  width: 100%;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  color: var(--text-strong);
  text-decoration: none;
  background: transparent;
}

.more-menu-item {
  cursor: pointer;
}

.more-menu-item:hover,
.more-menu-link:hover {
  filter: none;
  opacity: 1;
  border-color: var(--line);
  background: color-mix(in srgb, var(--line) 28%, transparent);
}

.more-menu-link.active {
  border-color: color-mix(in srgb, var(--line) 75%, var(--text-strong) 25%);
}

.more-menu-mobile-only {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

.inline-signout {
  margin: 0;
}

.inline-signout .action-link {
  background: transparent;
  cursor: pointer;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions .action-link.user-pill {
  color: var(--text-strong);
  max-width: none;
}

.search-btn {
  display: flex;
  gap: 7px;
  align-items: center;
  cursor: pointer;
}

.search-btn span {
  color: var(--muted);
  font-size: 14px;
}

.search-btn .lucide {
  width: 15px;
  height: 15px;
}

body.search-open {
  overflow: hidden;
}

.site-search-modal[hidden] {
  display: none !important;
}

.site-search-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.site-search-panel {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: min(92vw, 840px);
  height: min(78vh, 620px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, #06080b 92%, transparent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.site-search-body {
  height: 100%;
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}

.site-search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(10, 12, 16, 0.88);
}

.site-search-input-row .lucide {
  width: 16px;
  height: 16px;
}

.site-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
}

.site-search-output {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.site-search-output.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.site-search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-search-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: rgba(16, 18, 24, 0.86);
}

.site-search-item-scope {
  color: var(--muted);
  font-size: 11px;
}

.site-search-item-title {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
}

.site-search-item-meta {
  color: var(--muted);
  font-size: 12px;
}

.site-search-config {
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 14px;
  background: rgba(11, 14, 18, 0.9);
  padding: 12px;
  display: block;
}

.site-search-config-title {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.site-search-scope-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-search-scope-chip {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.site-search-scope-chip input {
  display: none;
}

.site-search-scope-chip:has(input:checked) {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--line) 40%, var(--text-strong));
  background: color-mix(in srgb, var(--line) 28%, transparent);
}

.action-link.primary {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  min-height: 44px;
  font-weight: 500;
}

.top-actions .action-link.primary {
  background: var(--control-bg);
  color: var(--text-strong);
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 0 18px;
}

.action-link.active {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--line) 75%, var(--text-strong) 25%);
}

.action-link.primary.active {
  color: var(--button-solid-text);
  border-color: transparent;
  filter: brightness(0.94);
}

.top-actions .action-link.primary.active {
  color: var(--text-strong);
  background: var(--control-bg);
  border-color: color-mix(in srgb, var(--line) 75%, var(--text-strong) 25%);
  filter: brightness(1.04);
}

.hero {
  padding: 48px 0 74px;
}

.hero h1 {
  margin: 0;
  max-width: 1200px;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-strong);
  letter-spacing: 0;
}

.hero-sub {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--button-solid-text);
  background: var(--button-solid-bg);
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}

.hero-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.content-section {
  padding: 0 0 36px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 32px;
  color: var(--text-strong);
}

.section-head a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: color-mix(in srgb, var(--muted) 80%, transparent);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: 12px;
  column-gap: 20px;
}

.web-main .web-grid.card-grid {
  row-gap: 18px;
  column-gap: 26px;
}

.card-grid > * {
  min-width: 0;
}

.home-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 30px;
}

.feed-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

@media (max-width: 1680px) {
  .card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
  }
}

@media (max-width: 900px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  background: var(--bg-card);
  border: 0;
  border-radius: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  transition: opacity 0.2s ease;
  animation: rise 0.45s ease backwards;
  position: relative;
}

.resource-card:hover {
  opacity: 0.98;
}

.card-top {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-media {
  border-radius: 0;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  position: relative;
  overflow: hidden;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(120deg, #2a2a2a 0%, #111 60%, #202020 100%);
  transform: scale(1.01);
  transition: transform 0.5s ease;
  pointer-events: none;
}

html[data-theme="light"] .card-media {
  background: color-mix(in srgb, #ffffff 86%, #e9edf2);
}

html[data-theme="light"] .card-media::after {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.36),
      rgba(255, 255, 255, 0.08)
    ),
    linear-gradient(120deg, #f4f6fa 0%, #eceff4 56%, #e4e8ee 100%);
}

.resource-card:hover .card-media::after {
  transform: scale(1.08);
}

.media-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.88);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 32px;
  min-width: 32px;
}

.card-tag {
  font-size: 12px;
  color: var(--muted);
  line-height: 20px;
}

.detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--detail-bg);
  color: var(--detail-text);
  text-decoration: none;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease;
  transform: translateY(2px);
}

.fav-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: var(--detail-bg);
  color: var(--detail-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.2s ease;
  transform: translateY(2px);
}

.resource-card:hover .detail,
.resource-card:hover .fav-btn {
  opacity: 1;
  transform: translateY(0);
}

.detail .lucide,
.fav-btn .lucide,
.theme-option .lucide {
  width: 15px;
  height: 15px;
}

.detail:hover,
.fav-btn:hover {
  opacity: 1;
  filter: brightness(1.08);
}

.fav-btn.active {
  opacity: 1;
  transform: translateY(0);
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
}

.fav-btn.saving {
  cursor: wait;
  opacity: 0.65;
}

.card-actions .fav-btn {
  width: 28px;
  height: 28px;
}

.card-actions .fav-btn .lucide {
  width: 14px;
  height: 14px;
  transform: translateY(0);
}

.card-actions .fav-btn.active {
  background: transparent;
  border: 0;
  color: var(--text-strong);
}

html[data-theme="light"] .card-actions .fav-btn.active {
  color: #ff5d8f;
}

.card-actions .fav-btn.active .lucide {
  fill: currentColor;
}

.media-badge.subtle {
  background: color-mix(in srgb, var(--detail-bg) 80%, transparent);
}

.resource-card h3 {
  margin: 10px 0 4px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-card p {
  margin: 0;
  color: var(--muted);
  min-height: 22px;
  font-size: 16px;
  line-height: 24px;
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
}

/* ── 卡片：真实媒体资源（图片 / 视频）─────────────────────── */
.card-media.has-media::after {
  display: none; /* 有真实媒体时隐藏占位渐变 */
}

.card-media-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media img.card-media-asset {
  transition: transform 0.35s ease;
  transform: scale(1);
}

.card-media:hover img.card-media-asset {
  transform: scale(1.08);
}

/* 视频悬停过渡 */
.card-media video.card-media-asset {
  transition: opacity 0.2s ease;
}

/* 标签行 */
.resource-card .card-tags {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-media-link,
.resource-title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.resource-title-link {
  font-size: 16px;
  line-height: 1.25;
}

.card-media > .card-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.resource-title-link:hover {
  opacity: 0.88;
}

.tutorial-detail-main {
  padding-top: 22px;
  padding-bottom: 48px;
  max-width: 1240px;
  margin: 0 auto;
}

.tutorial-detail-article {
  width: min(100%, 980px);
  margin: 0 auto;
}

.tutorial-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tutorial-detail-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tutorial-detail-head h3 {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.16;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.detail-fav-btn {
  opacity: 1;
  transform: none;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.detail-fav-btn .lucide {
  width: 14px;
  height: 14px;
}

.detail-fav-btn.active {
  background: transparent;
  border: 0;
  color: var(--text-strong);
}

html[data-theme="light"] .detail-fav-btn.active {
  color: #ff5d8f;
}

.detail-fav-btn.active .lucide {
  fill: currentColor;
}

.tutorial-detail-meta {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.detail-tag-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail-tag-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.detail-tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-size: 12px;
  line-height: 1;
  background: color-mix(in srgb, var(--control-bg) 78%, transparent);
}

.tutorial-detail-meta a {
  color: var(--text-strong);
  text-decoration: none;
}

.tutorial-detail-meta a:hover {
  opacity: 0.86;
}

.tutorial-detail-separator {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.tutorial-detail-preview {
  margin-top: 22px;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: color-mix(in srgb, var(--control-bg) 82%, transparent);
  background-image:
    linear-gradient(45deg, color-mix(in srgb, var(--line) 92%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--line) 92%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--line) 92%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--line) 92%, transparent) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.tutorial-detail-preview.has-media {
  background-color: color-mix(in srgb, var(--control-bg) 82%, transparent);
}

.tutorial-detail-preview-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.tutorial-detail-preview video.tutorial-detail-preview-asset {
  background: #000;
}

.tutorial-detail-divider {
  margin: 28px 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
}

.tutorial-detail-content {
  max-width: 760px;
  min-width: 0;
}

.resource-floating-sidebar {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 3vw, 30px);
  width: min(380px, calc(100vw - 24px));
  max-height: min(72vh, 560px);
  z-index: 18;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.resource-floating-sidebar.collapsed {
  max-height: 128px;
  padding-bottom: 10px;
  transition-delay: 0.2s;
}

.resource-floating-sidebar-body {
  overflow: hidden;
}

.resource-floating-sidebar-content {
  max-height: min(60vh, 460px);
  opacity: 1;
  transform: translateY(0);
  overflow: auto;
  transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), margin 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.resource-floating-sidebar-content.collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  margin-top: 0;
}

.resource-floating-sidebar h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
}

.resource-attr-grid {
  display: grid;
  gap: 6px;
}

.resource-attr-row {
  display: grid;
  grid-template-columns: minmax(80px, 118px) 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
}

.resource-attr-label {
  color: var(--muted);
  font-size: 14px;
}

.resource-attr-value {
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.resource-attr-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-floating-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.resource-floating-sidebar-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.resource-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: var(--text-strong);
  border-radius: 999px;
  box-shadow: none;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
}

.resource-sidebar-toggle:hover {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
}

.resource-sidebar-toggle svg {
  width: 14px;
  height: 14px;
  display: block;
}

.resource-download-btn {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  font-size: 14px;
  font-weight: 600;
}

.resource-download-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 14px;
}

.resource-download-actions .resource-download-btn {
  margin-top: 0;
  flex: 1 1 0;
  min-width: 0;
}

.resource-download-btn-secondary {
  flex: 0 0 auto !important;
  background: transparent;
  color: var(--text-strong);
  width: auto;
  max-width: max-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: 18px;
}

.resource-download-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  .resource-floating-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    margin: 18px 0 0;
  }

  .resource-floating-sidebar-body {
    max-height: none;
  }
}

.markdown-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  max-width: 100%;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.8em 0 0.6em;
  color: var(--text-strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.markdown-body h1 {
  font-size: 34px;
}

.markdown-body h2 {
  font-size: 28px;
}

.markdown-body h3 {
  font-size: 22px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body table {
  margin: 0 0 1.05em;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.3em;
}

.markdown-body li + li {
  margin-top: 0.35em;
}

.markdown-body a {
  color: var(--text-strong);
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.8em 0;
}

.markdown-body blockquote {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

.markdown-body code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--control-bg) 80%, transparent);
}

.markdown-body pre {
  overflow: auto;
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--control-bg) 92%, transparent);
  border: 1px solid var(--line);
  max-width: 100%;
}

.markdown-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-body img,
.markdown-body video {
  max-width: 100%;
  height: auto;
  display: block;
}

.tutorial-related {
  margin-top: 46px;
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}

.tutorial-related-head {
  margin-bottom: 14px;
}

.tutorial-related-grid {
  margin-top: 0;
}

.card-rating-row {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rating-star {
  border: 0;
  background: transparent;
  padding: 0;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.rating-star.lit {
  color: #f4b740;
}

.rating-star.peak {
  transform: translateY(-1px);
}

.rating-star.saving,
.rating-star:disabled {
  cursor: wait;
  opacity: 0.7;
}

.card-rating-avg {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.detail-rating-row {
  margin-top: 12px;
}

.feed-loading-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.feed-loading-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}

.feed-loading-btn::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: feed-spin 0.6s linear infinite;
}

.feed-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.feed-load-more-btn:hover {
  filter: brightness(1.04);
}

@keyframes feed-spin {
  to { transform: rotate(360deg); }
}

.feed-login-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 8px 0 2px;
}

.feed-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.feed-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-wrap p,
.footer-wrap a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.web-main {
  width: 100%;
  padding-bottom: 24px;
  overflow-x: clip;
}

.web-hero {
  padding: 48px 0 16px;
}

.web-hero h1 {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-strong);
}

.web-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
  margin-left: calc(-1 * clamp(20px, 4vw, 60px));
  margin-right: calc(-1 * clamp(20px, 4vw, 60px));
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
  padding-bottom: 18px;
  min-width: 0;
  position: sticky;
  top: 68px;
  z-index: 18;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  padding-top: 18px;
}

.web-toolbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--bg);
  pointer-events: none;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  transition: max-height 0.22s ease;
}

.chip-list-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.filter-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  min-width: 132px;
  margin-left: auto;
}

.chip-list-toggle {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 82%, var(--text-strong) 18%);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-end;
  text-align: right;
}

.chip-list-toggle:hover {
  color: var(--text-strong);
  opacity: 0.92;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.chip.active {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  border-color: var(--button-solid-bg);
}

.year-filter {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  flex: 0 0 auto;
  min-width: 132px;
}

.year-filter > span {
  white-space: nowrap;
}

.year-filter select {
  min-height: 36px;
  min-width: 92px;
  max-width: 100%;
  margin-left: auto;
}

.year-filter select,
.admin-select {
  appearance: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--control-bg);
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1;
  padding: 0 34px 0 12px;
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  color-scheme: light dark;
  caret-color: var(--text-strong);
}

.year-filter select,
.admin-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .year-filter select,
html[data-theme="dark"] .admin-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23CFCFCF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.year-filter select option,
.admin-select option {
  background: var(--select-option-bg);
  color: var(--text-strong);
}

.year-filter select option:checked,
.admin-select option:checked {
  background: var(--select-option-hover);
}

.year-filter select optgroup,
.admin-select optgroup {
  background: var(--select-option-bg);
  color: var(--muted);
  font-style: normal;
}

.year-filter select:hover,
.admin-select:hover {
  border-color: color-mix(in srgb, var(--line) 35%, var(--text-strong));
}

.year-filter select:focus-visible,
.admin-select:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--text-strong) 22%, var(--line));
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.year-filter select:disabled,
.admin-select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.web-grid {
  margin-top: 16px;
}

.upgrade-block {
  padding: 26px 0 12px;
}

.upgrade-block a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.upgrade-block a:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.link-inline-icon .lucide {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.link-inline-icon:hover .lucide:last-child {
  transform: translateX(2px);
}

.empty-state {
  margin: 22px 0;
  color: var(--muted);
  font-size: 15px;
}

.detail-access-denied-wrap {
  min-height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.detail-access-denied-title {
  margin: 0;
  font-size: clamp(20px, 3.2vw, 34px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-strong);
}

.detail-access-denied-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.detail-access-denied-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.theme-cycle-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-cycle-label {
  line-height: 1;
}

.auth-main {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: start center;
  padding-top: clamp(36px, 6vw, 86px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.auth-card h1 {
  margin: 0 0 22px;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.2;
  color: var(--text-strong);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label {
  font-size: 13px;
  color: var(--muted);
}

.auth-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.auth-link:hover {
  color: var(--text-strong);
}

.auth-input {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text-strong);
  padding: 0 16px;
  font-size: 15px;
  outline: 0;
}

.auth-input:focus {
  border-color: color-mix(in srgb, var(--text-strong) 25%, var(--line));
}

.auth-inline {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 8px;
}

.auth-code-btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
}

.auth-submit {
  margin-top: 6px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.auth-submit:hover,
.auth-code-btn:hover {
  opacity: 0.9;
}

.auth-submit:disabled,
.auth-code-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-hint a {
  color: var(--text-strong);
  text-decoration: none;
}

.admin-main {
  padding-top: 26px;
  padding-bottom: 28px;
}

.admin-hero {
  margin-bottom: 18px;
}

.admin-hero h1 {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-strong);
}

.admin-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-sidebar {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 12px;
  position: sticky;
  top: 92px;
}

.admin-sidebar h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.admin-menu-group {
  display: grid;
  gap: 8px;
}

.admin-menu-group h3 {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.admin-menu-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu-btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-strong);
  font-size: 14px;
  padding: 0 12px;
  text-align: left;
  cursor: pointer;
}

.admin-menu-btn.active {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  border-color: transparent;
}

.admin-content {
  min-width: 0;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--bg-card);
  display: grid;
  gap: 10px;
  align-content: start;
}

.admin-panel h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-strong);
}

.admin-panel-head {
  display: grid;
  gap: 4px;
}

.admin-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-form {
  display: flex;
  gap: 8px;
}

.config-form {
  display: grid;
  gap: 12px;
}

.admin-field {
  display: grid;
  gap: 6px;
}

.admin-field-grid {
  display: grid;
  gap: 10px;
}

.admin-field-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-label {
  color: var(--muted);
  font-size: 13px;
}

.admin-fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.admin-fieldset legend {
  padding: 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 14px;
}

.content-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 120px 130px 84px;
  align-items: center;
}

.admin-input {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text-strong);
  padding: 0 10px;
  font-size: 14px;
}

.admin-select {
  width: 100%;
  min-height: 38px;
}

.admin-btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-strong);
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
}

.admin-btn.primary {
  background: var(--button-solid-bg);
  color: var(--button-solid-text);
  border-color: transparent;
}

.admin-btn.danger {
  border-color: color-mix(in srgb, #cb3e3e 55%, var(--line));
  color: #cb3e3e;
}

html[data-theme="dark"] .admin-btn.danger {
  color: #ff8f8f;
}

.admin-btn:hover {
  opacity: 0.9;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.admin-item strong {
  color: var(--text-strong);
  font-size: 14px;
}

.admin-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-main {
  animation: rise 0.26s ease;
}

.profile-overview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.profile-avatar-shell {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--control-bg);
  flex: 0 0 auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
}

.profile-overview-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-overview-meta h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
}

.profile-overview-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.profile-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.profile-avatar-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-avatar-preview .profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.profile-stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.profile-stat-label {
  color: var(--muted);
  font-size: 12px;
}

.profile-stat-value {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.profile-points-form {
  gap: 14px;
}

.profile-points-topup-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}

.profile-points-topup-main,
.profile-points-topup-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  padding: 14px;
}

.profile-points-topup-main {
  display: grid;
  gap: 10px;
}

.profile-points-quick-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-points-quick-btn {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-strong);
  padding: 0 12px;
  cursor: pointer;
}

.profile-points-input {
  max-width: 280px;
}

.profile-points-helper {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-points-topup-summary {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.profile-points-summary-copy {
  display: grid;
  gap: 10px;
}

.profile-points-summary-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.profile-points-submit {
  width: 100%;
  min-height: 42px;
}

.profile-points-rules {
  margin: 0 0 14px;
}

.profile-points-rules-text {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.6;
  white-space: pre-line;
}

.profile-points-actions {
  justify-content: flex-end;
}

.profile-meta-box {
  margin: 0;
}

.profile-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.profile-meta-row:last-child {
  border-bottom: 0;
}

.profile-meta-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-meta-row > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.profile-meta-row strong {
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 500;
}

.profile-meta-row-edit {
  align-items: center;
  min-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
}

.profile-meta-row-edit .admin-input {
  max-width: 320px;
}

.profile-avatar-upload-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-avatar-upload-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}

.profile-avatar-upload-row .md-upload-label {
  margin-left: auto;
}

.profile-avatar-upload-hint {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 后台通用：列表表格 ──────────────────── */

.admin-toolbar {
  display: flex;
  justify-content: flex-end;
}

.admin-toolbar-note {
  color: var(--muted);
  font-size: 13px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table th {
  color: var(--muted);
  font-weight: 500;
}

.admin-table tbody tr:hover {
  background: color-mix(in srgb, var(--text-strong) 4%, transparent);
}

.admin-table-pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-table-pagination-info {
  color: var(--muted);
  font-size: 13px;
}

.admin-table-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-table-pagination-page {
  color: var(--muted);
  font-size: 13px;
  min-width: 88px;
  text-align: center;
}

.admin-col-id {
  color: var(--muted);
  width: 48px;
}

.admin-col-date {
  width: 100px;
}

.admin-col-title {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-strong);
}

.admin-col-email {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-strong);
}

.admin-col-created-at {
  min-width: 156px;
}

.admin-col-tags {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.admin-col-preview {
  min-width: 80px;
}

.admin-col-score {
  min-width: 92px;
  text-align: right;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
}

.admin-link {
  color: var(--accent, #5b8dee);
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-empty {
  color: var(--muted);
}

.admin-empty-tip {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 32px 0;
  margin: 0;
}

.admin-field > .admin-empty-tip,
.admin-fieldset > .admin-empty-tip {
  padding: 4px 0 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.admin-badge.published {
  background: color-mix(in srgb, #189247 15%, transparent);
  color: #189247;
}

.admin-badge.draft {
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  color: var(--muted);
}

html[data-theme="dark"] .admin-badge.published {
  background: color-mix(in srgb, #6edb95 15%, transparent);
  color: #6edb95;
}

/* ── 知识管理：模态框 ────────────────────── */

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.admin-modal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.markdown-editor-modal {
  width: min(920px, calc(100vw - 32px));
}

.markdown-editor-body {
  gap: 10px;
}

.markdown-editor-body .EasyMDEContainer {
  min-width: 0;
}

.markdown-editor-body .CodeMirror {
  min-height: 320px;
  max-height: 58vh;
  border: 1px solid var(--line);
  background: var(--control-bg);
}

.markdown-editor-body .editor-toolbar {
  border-color: var(--line);
  background: var(--control-bg);
}

.markdown-editor-body .editor-preview,
.markdown-editor-body .editor-preview-side {
  background: var(--bg-card);
  color: var(--text);
}

.markdown-editor-body .editor-toolbar i.separator {
  color: transparent !important;
  font-style: normal;
  border-left: 1px solid var(--line);
  width: 0;
  min-width: 0;
  height: 22px;
  margin: 0 8px;
}

html[data-theme="dark"] .markdown-editor-body .editor-toolbar {
  background: #151515;
  border-color: #2b2b2b;
}

html[data-theme="dark"] .markdown-editor-body .editor-toolbar button,
html[data-theme="dark"] .markdown-editor-body .editor-toolbar i.separator {
  color: rgba(255, 255, 255, 0.78) !important;
}

html[data-theme="dark"] .markdown-editor-body .editor-toolbar i.separator {
  color: transparent !important;
  border-left-color: #3a3a3a;
}

html[data-theme="dark"] .markdown-editor-body .editor-toolbar button:hover,
html[data-theme="dark"] .markdown-editor-body .editor-toolbar button.active {
  background: #252525;
  border-color: #3a3a3a;
  color: #ffffff !important;
}

html[data-theme="dark"] .markdown-editor-body .CodeMirror {
  background: #121212;
  border-color: #2b2b2b;
  color: #e9e9e9;
}

html[data-theme="dark"] .markdown-editor-body .CodeMirror-gutters {
  background: #121212;
  border-right-color: #2b2b2b;
}

html[data-theme="dark"] .markdown-editor-body .CodeMirror-cursor {
  border-left-color: #ffffff;
}

html[data-theme="dark"] .markdown-editor-body .CodeMirror-selected {
  background: rgba(110, 160, 255, 0.28) !important;
}

html[data-theme="dark"] .markdown-editor-body .CodeMirror .CodeMirror-code,
html[data-theme="dark"] .markdown-editor-body .CodeMirror .CodeMirror-line,
html[data-theme="dark"] .markdown-editor-body .CodeMirror pre {
  color: #e9e9e9;
}

html[data-theme="dark"] .markdown-editor-body .editor-preview,
html[data-theme="dark"] .markdown-editor-body .editor-preview-side {
  background: #161616;
  color: #f0f0f0;
  border-left-color: #2b2b2b;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
}

.admin-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
}

.admin-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.admin-modal-close:hover {
  color: var(--text-strong);
}

.admin-modal-body {
  padding: 16px 20px;
  display: grid;
  gap: 14px;
}

.admin-modal-foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--bg-card);
}

/* MD 文件上传行 */

.md-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.md-upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

.md-upload-label.uploading {
  opacity: 0.6;
  cursor: not-allowed;
}

.md-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.md-file-input:disabled {
  cursor: not-allowed;
}

.md-path-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.md-path-hint.empty {
  font-style: italic;
}

.md-remove-btn {
  flex: 0 0 auto;
}

.admin-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: var(--control-bg);
}

.admin-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-strong);
  font-size: 14px;
}

.admin-radio input[type="radio"] {
  margin: 0;
}

/* Review edit modal shared styles */

.review-form-grid {
  display: grid;
  gap: 12px;
}

.review-status-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-form-grid,
.review-form-grid .admin-field,
.review-form-grid .md-upload-row {
  min-width: 0;
}

.review-form-grid .md-path-hint {
  max-width: 100%;
}

.review-file-name {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-form-grid .md-path-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.review-upload-limit-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.review-file-size-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg-card) 86%, transparent);
  vertical-align: middle;
  white-space: nowrap;
}

.review-form-grid .admin-input,
.review-form-grid textarea {
  max-width: 100%;
  box-sizing: border-box;
}

.review-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--text-strong);
  background: color-mix(in srgb, var(--bg-card) 84%, transparent);
  cursor: pointer;
  text-decoration: none;
}

.review-access-link-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-access-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
}

.review-access-refresh-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease;
}

.review-access-refresh-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--bg) 88%, var(--accent) 12%);
}

.review-access-refresh-btn:active {
  transform: scale(0.96);
}

.review-access-refresh-btn i,
.review-access-refresh-btn svg {
  width: 15px;
  height: 15px;
  opacity: 0.82;
}

.review-access-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 980px) {
  body {
    padding-bottom: 72px;
  }

  .site-header .shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 60px;
    gap: 10px;
    padding: 8px 0;
  }

  .brand {
    font-size: 1rem;
    order: 1;
  }

  .top-nav {
    display: none;
  }

  .top-actions {
    order: 3;
    width: auto;
    margin-left: auto;
    gap: 8px;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .more-menu-mobile-only {
    display: inline-flex;
  }

  .guest-mobile-more {
    display: inline-flex;
  }

  .search-btn {
    gap: 6px;
  }

  .search-btn span:not(.sr-only),
  .top-actions > .theme-switch .theme-cycle-label {
    display: none;
  }

  .top-actions .action-link,
  .top-actions .search-btn,
  .top-actions .theme-cycle-btn,
  .top-actions .more-menu-btn {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .top-actions .auth-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 34px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
  }

  .top-actions .auth-quick-register.primary {
    min-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
    background: var(--control-bg);
    color: var(--text-strong);
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .more-menu-panel {
    right: -2px;
    min-width: 150px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a {
    min-height: 50px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-bottom-nav a.active {
    color: var(--text-strong);
    background: color-mix(in srgb, var(--line) 28%, transparent);
  }

  .mobile-bottom-nav .lucide {
    width: 17px;
    height: 17px;
  }

  .site-footer {
    display: none;
  }

  .media-badge {
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1.1;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .web-main .web-grid.card-grid {
    row-gap: 14px;
    column-gap: 14px;
  }

  .web-toolbar {
    top: 60px;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .chip-list-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-side {
    min-width: 92px;
    gap: 8px;
  }

  .year-filter {
    flex: 0 0 auto;
    min-width: 92px;
    gap: 0;
  }

  .year-filter > span {
    display: none;
  }

  .year-filter select {
    min-width: 84px;
    width: 84px;
    min-height: 32px;
    font-size: 13px;
    padding: 0 28px 0 10px;
    background-position: right 9px center;
    background-size: 12px;
  }

  .year-filter {
    justify-content: flex-end;
  }

  .footer-wrap {
    align-items: flex-start;
  }

  .theme-switch {
    order: 0;
    width: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-field-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
    font-size: 14px;
    line-height: 1.45;
  }

  .site-header .shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 60px;
    gap: 10px;
    padding: 8px 0;
  }

  .brand {
    font-size: 1rem;
    order: 1;
  }

  .top-nav {
    display: none;
  }

  .top-actions {
    order: 3;
    width: auto;
    margin-left: auto;
    gap: 8px;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .search-btn {
    gap: 6px;
  }

  .search-btn span:not(.sr-only),
  .top-actions > .theme-switch .theme-cycle-label {
    display: none;
  }

  .top-actions .search-btn,
  .top-actions .theme-cycle-btn,
  .top-actions .more-menu-btn {
    min-height: 34px;
    padding: 0 11px;
  }

  .top-actions .auth-quick-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 34px;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
  }

  .top-actions .auth-quick-register.primary {
    min-height: 34px;
    padding-left: 10px;
    padding-right: 10px;
    background: var(--control-bg);
    color: var(--text-strong);
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .more-menu-panel {
    right: -2px;
    min-width: 150px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav a {
    min-height: 50px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-bottom-nav a.active {
    color: var(--text-strong);
    background: color-mix(in srgb, var(--line) 28%, transparent);
  }

  .mobile-bottom-nav .lucide {
    width: 17px;
    height: 17px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 48px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .web-toolbar {
    top: 60px;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .chip-list-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-side {
    min-width: 92px;
    gap: 8px;
  }

  .year-filter {
    flex: 0 0 auto;
    min-width: 92px;
    gap: 0;
  }

  .year-filter > span {
    display: none;
  }

  .year-filter select {
    min-width: 80px;
    width: 80px;
    min-height: 30px;
    font-size: 12px;
    padding: 0 24px 0 9px;
    background-position: right 8px center;
    background-size: 11px;
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 30px;
  }

  .web-hero h1 {
    font-size: 30px;
  }

  .site-search-panel {
    top: 6%;
    width: min(94vw, 840px);
    height: min(82vh, 620px);
    border-radius: 14px;
  }

  .site-search-body {
    padding: 10px;
    gap: 10px;
  }

  .site-search-output {
    min-height: 0;
    max-height: none;
  }

  .site-search-config {
    display: block;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .hero-sub,
  .resource-card p {
    font-size: 13px;
    line-height: 1.4;
  }

  .resource-card h3 {
    font-size: 15px;
    line-height: 1.3;
  }

  .card-tags {
    font-size: 6px;
    line-height: 10px;
    min-height: 10px;
  }

  .chip {
    font-size: 12px;
    padding: 6px 10px;
  }

  .chip-list {
    gap: 6px;
  }

  .theme-switch {
    flex-direction: row;
    align-items: center;
  }

  .auth-main {
    padding-top: 28px;
    min-height: auto;
  }

  .auth-card {
    max-width: 100%;
  }

  .auth-inline {
    grid-template-columns: 1fr 112px;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }

  .profile-inline-row {
    grid-template-columns: 1fr;
  }

  .content-form {
    grid-template-columns: 1fr;
  }
}
