@font-face {
  font-family: "SiteFont";
  src: url("https://fastly.jsdelivr.net/gh/huangwb8/bloghelper@latest/fonts/13.woff2") format("woff2");
  font-display: swap;
}

:root {
  --font-stack: "SiteFont", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  --glass-bg: rgba(12, 10, 9, 0.35);
  --glass-bg-hover: rgba(12, 10, 9, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-soft-bg: rgba(255, 255, 255, 0.20);
  --glass-soft-border: rgba(255, 255, 255, 0.25);
  --glass-input-bg: rgba(255, 255, 255, 0.08);

  --text-main: var(--stone-100);
  --text-strong: #ffffff;
  --text-sub: rgba(245, 245, 244, 0.72);
  --text-faint: rgba(245, 245, 244, 0.50);

  --active-bg: rgba(250, 250, 249, 0.96);
  --active-text: var(--stone-900);

  --shadow-soft: 0 8px 28px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.35);

  --grad-a: #fafaf9;
  --grad-b: #a8a29e;

  --r-base: 10px;
  --r-card: 20px;
  --r-big: 28px;
}

:root[data-theme="light"] {
  --glass-bg: rgba(255, 255, 255, 0.50);
  --glass-bg-hover: rgba(255, 255, 255, 0.70);
  --glass-border: rgba(231, 229, 228, 0.85);
  --glass-soft-bg: rgba(255, 255, 255, 0.55);
  --glass-soft-border: rgba(255, 255, 255, 0.65);
  --glass-input-bg: rgba(255, 255, 255, 0.55);

  --text-main: var(--stone-900);
  --text-strong: var(--stone-950);
  --text-sub: rgba(28, 25, 23, 0.70);
  --text-faint: rgba(28, 25, 23, 0.48);

  --active-bg: rgba(12, 10, 9, 0.90);
  --active-text: var(--stone-50);

  --shadow-soft: 0 8px 28px rgba(28, 25, 23, 0.12);
  --shadow-lift: 0 16px 40px rgba(28, 25, 23, 0.16);

  --grad-a: #1c1917;
  --grad-b: #78716c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  color: var(--text-main);
  min-height: 100vh;
  background-color: var(--stone-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background-color: var(--stone-200);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

::selection {
  background: rgba(168, 162, 158, 0.45);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(168, 162, 158, 0.35);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ===================== 背景层 ===================== */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.bg-layer.is-visible {
  opacity: 1;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 10, 9, var(--overlay-a, 0.28)), transparent 32%);
}

:root[data-theme="light"] .bg-gradient {
  background: linear-gradient(to top, rgba(250, 250, 249, var(--overlay-a, 0.30)), transparent 32%);
}

/* ===================== 毛玻璃基元 ===================== */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--r-card);
}

.glass-soft {
  background: var(--glass-soft-bg);
  border: 1px solid var(--glass-soft-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border-radius: var(--r-card);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ===================== 极光渐变文字 ===================== */

.aurora-text {
  background-image: linear-gradient(90deg, var(--grad-a) 0%, var(--grad-a) 36%, var(--grad-b) 54%, var(--grad-a) 72%, var(--grad-a) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: aurora-flow 7s linear infinite;
}

@keyframes aurora-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

/* ===================== 按钮 ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transition: all 0.28s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--active-bg);
  color: var(--active-text);
  border-color: transparent;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--active-bg);
  opacity: 0.92;
}

.btn-round {
  border-radius: 999px;
}

.btn-sm {
  padding: 7px 15px;
  font-size: 13px;
  border-radius: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  font-size: 16px;
}

.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* ===================== 顶部导航 ===================== */

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 24px));
  z-index: 100;
  border-radius: 999px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  flex-shrink: 0;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  background: var(--active-bg);
  color: var(--active-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-sub);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .nav-links a:hover {
  background: rgba(255, 255, 255, 0.55);
}

.nav-links a.active {
  background: var(--active-bg);
  color: var(--active-text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-burger {
  display: none;
}

/* 更多下拉菜单 */

.nav-more {
  position: relative;
}

.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-sub);
  transition: all 0.25s ease;
}

.nav-more-btn:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.10);
}

.nav-more-btn.active {
  background: var(--active-bg);
  color: var(--active-text);
  font-weight: 600;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.3, 0.7, 0.3, 1);
  box-shadow: var(--shadow-lift);
  z-index: 150;
}

.nav-more-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-more-menu a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.nav-more-menu a:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text-strong);
}

:root[data-theme="light"] .nav-more-menu a:hover {
  background: rgba(255, 255, 255, 0.6);
}

.nav-more-menu a.active {
  background: var(--active-bg);
  color: var(--active-text);
  font-weight: 600;
}

/* ===================== 抽屉菜单 ===================== */

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(12, 10, 9, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  z-index: 200;
  border-radius: 24px 0 0 24px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0.28, 1);
  overflow-y: auto;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 16px;
}

.drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--text-sub);
  transition: all 0.22s ease;
}

.drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

:root[data-theme="light"] .drawer a:hover {
  background: rgba(255, 255, 255, 0.6);
}

.drawer a.active {
  background: var(--active-bg);
  color: var(--active-text);
  font-weight: 600;
}

/* ===================== 页面骨架 ===================== */

.page {
  padding: 108px 16px 40px;
  max-width: 1180px;
  margin: 0 auto;
  transition: opacity 0.4s ease;
}

.page-narrow {
  max-width: 860px;
}

@media (min-width: 640px) {
  .page {
    padding: 116px 24px 48px;
  }
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-head p {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===================== Hero ===================== */

.hero {
  text-align: center;
  padding: 72px 16px 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.hero .hero-sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(14px, 1.6vw, 16.5px);
  line-height: 1.9;
  color: var(--text-sub);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===================== 区块标题 ===================== */

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head .more-link {
  font-size: 13.5px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.section-head .more-link:hover {
  color: var(--text-strong);
}

/* ===================== 网格 ===================== */

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

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

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================== 文章卡片 ===================== */

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.post-card .post-cover {
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  position: relative;
}

.post-card .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-card:hover .post-cover img {
  transform: scale(1.05);
}

.post-card .post-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

.post-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.post-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-strong);
  transition: opacity 0.2s ease;
}

.post-card:hover h3 {
  opacity: 0.82;
}

.post-card .post-excerpt {
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* 列表式文章行 */

.post-row {
  display: flex;
  gap: 18px;
  padding: 20px;
  align-items: stretch;
}

.post-row .post-cover {
  flex: 0 0 218px;
  border-radius: 14px;
  overflow: hidden;
}

.post-row .post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.post-row:hover .post-cover img {
  transform: scale(1.05);
}

.post-row .post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.post-row h3 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.5;
}

.post-row .post-excerpt {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 639px) {
  .post-row {
    flex-direction: column;
    padding: 16px;
  }
  .post-row .post-cover {
    flex: none;
    aspect-ratio: 16 / 8;
  }
}

/* ===================== 标签 / 徽章 ===================== */

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.22s ease;
  white-space: nowrap;
}

:root[data-theme="light"] .tag-chip {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(28, 25, 23, 0.08);
}

.tag-chip:hover {
  background: var(--active-bg);
  color: var(--active-text);
  border-color: transparent;
}

.tag-chip.active {
  background: var(--active-bg);
  color: var(--active-text);
  border-color: transparent;
  font-weight: 600;
}

.tag-chip .count {
  opacity: 0.6;
  font-size: 11.5px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
}

:root[data-theme="light"] .category-badge {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 25, 23, 0.08);
}

/* ===================== 功能卡片 ===================== */

.feature-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card .feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

:root[data-theme="light"] .feature-card .feature-icon {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 25, 23, 0.08);
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-strong);
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-sub);
}

/* ===================== 大 CTA ===================== */

.big-cta {
  border-radius: var(--r-big);
  padding: 56px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.big-cta h2 {
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
}

.big-cta p {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.8;
  max-width: 520px;
}

/* ===================== 分页 ===================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pagination .page-item {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-sub);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.22s ease;
}

.pagination .page-item:hover {
  background: var(--glass-bg-hover);
  color: var(--text-strong);
}

.pagination .page-item.active {
  background: var(--active-bg);
  color: var(--active-text);
  border-color: transparent;
  font-weight: 600;
}

.pagination .page-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===================== 页脚 ===================== */

.site-footer {
  max-width: 1180px;
  margin: 56px auto 26px;
  padding: 26px 26px;
  border-radius: var(--r-big);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-faint);
  transition: opacity 0.4s ease;
}

.site-footer .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer .footer-links a:hover {
  color: var(--text-strong);
}

@media (max-width: 1220px) {
  .site-footer {
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* ===================== 浮动控制按钮 ===================== */

.fab-dock {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fab {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.fab:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-3px);
}

/* ===================== 沉浸模式 ===================== */

body.immersive .site-header,
body.immersive .site-footer,
body.immersive .page,
body.immersive .fab-dock,
body.immersive .drawer,
body.immersive .drawer-mask {
  opacity: 0;
  pointer-events: none;
}

.immersive-tip {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  z-index: 130;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-main);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

body.immersive .immersive-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================== 输入 ===================== */

.input-glass {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.6;
  background: var(--glass-input-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  color: var(--text-main);
  caret-color: var(--text-strong);
}

.input-glass::placeholder {
  color: var(--text-faint);
}

.input-glass:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.input-glass:focus {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.09);
}

:root[data-theme="light"] .input-glass:hover {
  border-color: rgba(28, 25, 23, 0.22);
}

:root[data-theme="light"] .input-glass:focus {
  border-color: rgba(28, 25, 23, 0.34);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.07);
}

textarea.input-glass {
  border-radius: 16px;
  resize: vertical;
  min-height: 118px;
  line-height: 1.7;
  padding: 14px 16px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===================== 搜索框（大胶囊） ===================== */

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text-main);
}

.search-bar input::placeholder {
  color: var(--text-faint);
}

/* ===================== 时间线（归档） ===================== */

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(168, 162, 158, 0.4), transparent);
}

.timeline-group-title {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 16px;
  color: var(--text-strong);
  position: relative;
}

.timeline-group-title::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--active-bg);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 14px;
  margin-bottom: 8px;
  transition: background 0.22s ease, transform 0.22s ease;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(168, 162, 158, 0.65);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

:root[data-theme="light"] .timeline-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.timeline-item .t-date {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  width: 48px;
}

.timeline-item .t-title {
  flex: 1;
  font-size: 14.5px;
  color: var(--text-main);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item:hover .t-title {
  color: var(--text-strong);
}

.timeline-item .t-cat {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-faint);
}

@media (max-width: 639px) {
  .timeline-item .t-cat {
    display: none;
  }
}

/* ===================== 相册 ===================== */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-item:hover img {
  transform: scale(1.06);
}

.photo-item .photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-caption {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 9, 0.6);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 1080px);
  max-height: 82vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lift);
}

.lightbox .lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
}

/* ===================== 瞬间 ===================== */

.moment-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.moment-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moment-head .moment-time {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-faint);
}

.moment-content {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-main);
}

.moment-images {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.moment-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}

.moment-actions {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text-faint);
}

.moment-actions span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.moment-actions span:hover {
  color: var(--text-strong);
}

/* ===================== 友链 ===================== */

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.link-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-strong);
}

:root[data-theme="light"] .link-avatar {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 25, 23, 0.08);
}

.link-info {
  min-width: 0;
  flex: 1;
}

.link-info h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-strong);
}

.link-info p {
  margin-top: 4px;
  font-size: 12.8px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================== 文章详情 ===================== */

.post-hero {
  text-align: center;
  padding: 26px 16px 8px;
}

.post-hero h1 {
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-strong);
  max-width: 820px;
  margin: 0 auto;
}

.post-hero .post-meta {
  justify-content: center;
  margin-top: 18px;
}

.post-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 30px;
}

@media (min-width: 1024px) {
  .post-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}

.post-main {
  padding: clamp(22px, 4vw, 44px);
  min-width: 0;
}

.post-content {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-main);
  word-break: break-word;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 40px 0 16px;
  scroll-margin-top: 120px;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 30px 0 12px;
  scroll-margin-top: 120px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 16px 22px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-radius: 14px;
  border-left: 3px solid rgba(168, 162, 158, 0.6);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: 14.5px;
}

:root[data-theme="light"] .post-content blockquote {
  background: rgba(255, 255, 255, 0.5);
}

.post-content pre {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
  background: rgba(12, 10, 9, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: var(--stone-100);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

:root[data-theme="light"] .post-content pre {
  background: rgba(28, 25, 23, 0.86);
}

.post-content code:not(pre code) {
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

:root[data-theme="light"] .post-content code:not(pre code) {
  background: rgba(28, 25, 23, 0.06);
  border-color: rgba(28, 25, 23, 0.08);
}

.post-content img {
  border-radius: 16px;
  margin: 20px auto;
  border: 1px solid var(--glass-border);
}

.post-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text-strong);
}

.post-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(168, 162, 158, 0.22);
}

.post-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}

@media (min-width: 640px) {
  .post-pager {
    grid-template-columns: 1fr 1fr;
  }
}

.pager-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pager-card .pager-label {
  font-size: 12px;
  color: var(--text-faint);
}

.pager-card .pager-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
}

.pager-card:hover .pager-title {
  color: var(--text-strong);
}

.pager-card.next {
  text-align: right;
  align-items: flex-end;
}

/* TOC 侧栏 */

.toc-aside {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 22px;
  display: none;
}

@media (min-width: 1024px) {
  .toc-aside {
    display: block;
  }
}

.toc-aside h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.toc-aside a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-sub);
  transition: all 0.2s ease;
  line-height: 1.6;
}

.toc-aside a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-strong);
}

.toc-aside a.toc-h3 {
  padding-left: 26px;
  font-size: 12.8px;
}

/* ===================== 评论 ===================== */

.comments-panel {
  margin-top: 22px;
  padding: clamp(22px, 4vw, 36px);
}

.comments-panel h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 22px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .comment-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.comment-form .form-actions {
  display: flex;
  justify-content: flex-end;
}

.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(168, 162, 158, 0.16);
}

.comment-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-strong);
}

:root[data-theme="light"] .comment-avatar {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(28, 25, 23, 0.08);
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-head .c-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}

.comment-head .c-badge {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--active-bg);
  color: var(--active-text);
}

.comment-head .c-time {
  font-size: 12px;
  color: var(--text-faint);
}

.comment-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
}

.comment-foot {
  margin-top: 8px;
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}

.comment-foot span {
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-foot span:hover {
  color: var(--text-strong);
}

.comment-children {
  margin-top: 6px;
  padding-left: 16px;
  border-left: 2px solid rgba(168, 162, 158, 0.22);
}

/* ===================== 关于页 ===================== */

.about-hero {
  text-align: center;
  padding: 30px 20px;
}

.about-avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: var(--active-bg);
  color: var(--active-text);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-cell {
  padding: 20px 16px;
  text-align: center;
}

.stat-cell .stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-strong);
}

.stat-cell .stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ===================== 分类卡片 ===================== */

.category-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sub);
}

.category-card .cat-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ===================== 标签云 ===================== */

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

.tag-cloud .tag-chip {
  padding: 9px 18px;
  font-size: 13.5px;
}

/* ===================== 空状态 / 404 ===================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}

.empty-state .empty-icon {
  font-size: 44px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.page-404 {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.page-404 .num-404 {
  font-size: clamp(72px, 14vw, 128px);
  font-weight: 700;
  line-height: 1;
}

/* ===================== Toast ===================== */

.toast {
  position: fixed;
  left: 50%;
  top: 86px;
  transform: translateX(-50%) translateY(-14px);
  z-index: 400;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text-main);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  max-width: calc(100vw - 40px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================== 响应式导航 ===================== */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
  .site-header {
    width: calc(100% - 24px);
  }
}

@media (max-width: 639px) {
  .hide-sm {
    display: none !important;
  }
  .hero {
    padding: 44px 8px 40px;
  }
  .big-cta {
    padding: 42px 20px;
  }
}

/* ===================== 入场动画 ===================== */

.fade-up {
  animation: fade-up 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.d-1 { animation-delay: 0.06s; }
.d-2 { animation-delay: 0.14s; }
.d-3 { animation-delay: 0.22s; }
.d-4 { animation-delay: 0.30s; }
.d-5 { animation-delay: 0.38s; }

/* ===================== 主题化补丁 ===================== */

.btn-icon svg,
.fab svg,
.nav-more-btn svg {
  display: block;
}

[data-theme-toggle] .icon-sun,
[data-theme-toggle] .icon-moon {
  display: none;
}

html[data-theme="dark"] [data-theme-toggle] .icon-sun,
html:not([data-theme]) [data-theme-toggle] .icon-sun {
  display: block;
}

html[data-theme="light"] [data-theme-toggle] .icon-moon {
  display: block;
}

.post-list,
.moment-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.empty-hint {
  padding: 30px 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
}

.post-cover .cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.06);
  border-radius: inherit;
}

html[data-theme="light"] .post-cover .cover-fallback {
  background: rgba(28, 25, 23, 0.05);
}

.link-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 52px;
}

.moment-author {
  font-weight: 600;
  color: var(--text-strong);
}

.moment-images img {
  cursor: zoom-in;
}

.moment-images video,
.moment-images audio {
  width: 100%;
  border-radius: 14px;
}

.moment-actions span {
  cursor: pointer;
}

.photo-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.photo-item {
  cursor: zoom-in;
}

.photo-detail img {
  width: 100%;
  border-radius: 16px;
  cursor: zoom-in;
}

.photo-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.post-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.site-footer .footer-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.site-footer .footer-links button:hover {
  color: var(--text-strong);
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 15px;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease;
}

.drawer-search:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .drawer-search:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* ===================== 设置项配套样式 ===================== */

.logo-img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 8px;
}

.post-copyright {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--r-base);
  background: var(--glass-input-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.8;
}

/* ===================== SVG 图标 ===================== */

svg.ic {
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
}

/* ===================== 头部登录态 ===================== */

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--glass-border);
  max-width: 160px;
}

:root[data-theme="light"] .user-chip {
  background: rgba(255, 255, 255, 0.55);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--active-bg);
  color: var(--active-text);
}

.user-chip .user-name {
  font-size: 13px;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===================== 列表元信息 ===================== */

.meta-ic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--active-bg);
  color: var(--active-text);
}

/* ===================== 评论登录态 ===================== */

.comment-as {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--glass-input-bg);
  border: 1px solid var(--glass-border);
  font-size: 13.5px;
  color: var(--text-sub);
}

.comment-as b {
  color: var(--text-strong);
}

.comment-as .user-avatar {
  width: 30px;
  height: 30px;
}

.comment-as-out {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.comment-as-out:hover {
  color: var(--text-strong);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.moment-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.moment-like:hover {
  color: var(--text-strong);
}

/* ===================== 认证页 ===================== */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(20px, 6vw, 60px) 0;
}

.auth-card {
  width: min(430px, 100%);
  padding: clamp(26px, 5vw, 40px);
}

.auth-head {
  text-align: center;
  margin-bottom: 24px;
}

.auth-head .logo-mark {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--active-bg);
  color: var(--active-text);
}

.auth-head h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
}

.auth-head p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-faint);
}

.auth-err {
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

:root[data-theme="light"] .auth-err {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
}

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

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-sub);
}

.auth-submit {
  margin-top: 6px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.auth-switch a {
  color: var(--text-strong);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-guest {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(168, 162, 158, 0.18);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}

.flash-holder {
  display: none;
}
