/* ===== Vercel Design System ===== */
:root {
  /* Geometria: 无衬线字体，紧凑字间距 */
  --font: -apple-system, 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;

  /* Vercel Colors */
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --bg-card: #ffffff;
  --bg-hover: #f5f5f5;
  --bg-code: #0d1117;
  --text: #171717;
  --text-secondary: #4d4d4d;
  --text-muted: #808080;
  --accent: #0072f5;
  --accent-hover: #0060d9;
  --accent-soft: #ebf5ff;
  --border-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  --border-shadow-light: rgb(235, 235, 235) 0px 0px 0px 1px;
  --card-shadow: rgba(0,0,0,0.08) 0px 0px 0px 1px, rgba(0,0,0,0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;
  --shadow-sm: rgba(0,0,0,0.04) 0px 1px 2px;
  --shadow-md: rgba(0,0,0,0.04) 0px 2px 8px, rgba(0,0,0,0.06) 0px 0px 0px 1px;
  --shadow-lg: rgba(0,0,0,0.04) 0px 4px 12px, rgba(0,0,0,0.06) 0px 0px 0px 1px;
  --danger: #ff5b4f;
  --success: #0070f3;
  --warn: #f5a623;

  --radius: 6px;
  --radius-lg: 8px;
  --header-h: 56px;
  --max-w: min(92vw, 1080px);
  --post-w: min(88vw, 720px);
}

[data-theme="dark"] {
  --bg: #080808;
  --bg-secondary: #0f0f0f;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --bg-code: #0d1117;
  --text: #ededed;
  --text-secondary: #a1a1a1;
  --text-muted: #666666;
  --accent: #3291ff;
  --accent-hover: #0070f3;
  --accent-soft: #072544;
  --border-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1);
  --border-shadow-light: 0px 0px 0px 1px rgba(255, 255, 255, 0.06);
  --card-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1), rgba(0,0,0,0.3) 0px 2px 8px;
  --shadow-sm: 0px 0px 0px 1px rgba(255, 255, 255, 0.06);
  --shadow-md: 0px 0px 0px 1px rgba(255, 255, 255, 0.1), rgba(0,0,0,0.4) 0px 4px 12px;
  --shadow-lg: 0px 0px 0px 1px rgba(255, 255, 255, 0.12), rgba(0,0,0,0.5) 0px 8px 24px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: -0.011em;
}

/* Shadow-as-border utility */
.shadow-ring { box-shadow: var(--border-shadow); border: none !important; }

/* ===== Selection ===== */
::selection { background: var(--accent); color: #fff; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: none !important;
  box-shadow: var(--border-shadow);
}
[data-theme="dark"] .site-header {
  background: rgba(8, 8, 8, 0.8);
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: var(--header-h);
}

.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text);
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.04em;
  transition: opacity 0.15s;
}
.logo:hover { opacity: 0.7; }
.logo-icon {
  font-size: 1.3rem;
}

.nav { display: flex; gap: 0.15rem; align-items: center; }
.nav-link {
  padding: 0.35rem 0.6rem; border-radius: 6px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: -0.011em;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}
.nav-icon { display: flex; align-items: center; opacity: 0.6; }
.nav-icon:hover { opacity: 1; }

.header-actions { display: flex; gap: 0.25rem; align-items: center; }
.theme-toggle, .mobile-menu-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 0.35rem;
  border-radius: 6px; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover, .mobile-menu-btn:hover {
  color: var(--text); background: var(--bg-hover);
}
.mobile-menu-btn { display: none; }

/* ===== Main ===== */
.main-content { min-height: calc(100vh - var(--header-h) - 120px); }

/* ===== Hero ===== */
.hero {
  padding: 6rem 2rem 4rem;
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Section ===== */
.section {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  margin-bottom: 3rem;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: none;
  box-shadow: var(--border-shadow-light);
}
.section-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.4rem;
}
.section-more {
  font-size: 0.8rem; color: var(--accent); text-decoration: none;
  font-weight: 500; letter-spacing: -0.01em;
  transition: opacity 0.15s;
}
.section-more:hover { opacity: 0.7; }

/* ===== Showcase Cards ===== */
.showcase-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; margin-bottom: 1rem;
}
.showcase-card {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg); padding: 0.75rem;
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.showcase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.showcase-img {
  width: 64px; height: 64px; flex-shrink: 0;
  object-fit: cover; border-radius: 6px;
  background: var(--bg-secondary);
}
.showcase-info { flex: 1; min-width: 0; }
.showcase-platform {
  font-size: 0.7rem; color: var(--accent); font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.1rem;
  font-family: var(--mono);
}
.showcase-title {
  font-size: 0.88rem; font-weight: 600; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.showcase-price {
  font-size: 0.82rem; color: var(--danger); font-weight: 600;
  font-family: var(--mono); margin-top: 0.15rem;
}

/* ===== Post List (Home) ===== */
.post-list {
  display: flex; flex-direction: column; gap: 0;
}
.post-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.75rem; border-radius: 0;
  text-decoration: none; color: var(--text);
  transition: background 0.15s;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.06);
}
[data-theme="dark"] .post-row {
  box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.06);
}
.post-row:last-child {
  box-shadow: none;
}
.post-row:hover { background: var(--bg-hover); }
.post-row-date {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--text-muted); flex-shrink: 0;
  min-width: 48px;
  font-variant-numeric: tabular-nums;
}
.post-row-title {
  font-size: 0.92rem; font-weight: 500; letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-row-tags {
  display: flex; gap: 0.25rem; flex-shrink: 0;
  margin-left: auto;
}
.post-row-tag {
  font-size: 0.65rem; padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent); font-weight: 500;
  letter-spacing: 0.02em;
}

/* ===== Article List ===== */
.article-list {
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 2rem;
}
.article-item {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.article-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.article-item-meta {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 0.4rem;
}
.article-item-meta time {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.article-tag {
  font-size: 0.68rem; padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent); font-weight: 500;
  letter-spacing: 0.02em;
}
.article-item-title {
  font-size: 1rem; font-weight: 600; letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.article-item-excerpt {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Subpage ===== */
.subpage {
  max-width: var(--max-w); margin: 0 auto; padding: 2rem 2rem;
}
.subpage-title {
  font-size: 1.5rem; font-weight: 600; margin-bottom: 0.3rem;
  letter-spacing: -0.035em;
}
.subpage-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }

/* Sort Controls */
.subpage-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 0.3rem;
}
.sort-controls { display: flex; gap: 0.3rem; }
.sort-btn {
  padding: 0.3rem 0.7rem; border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text-muted); font-size: 0.8rem;
  font-family: var(--font); cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.sort-btn:hover { background: var(--bg-hover); color: var(--text); }
.sort-btn.active { color: var(--accent); background: var(--accent-soft); box-shadow: 0px 0px 0px 1px var(--accent); }

/* ===== Empty State ===== */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* ===== Search ===== */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-input {
  flex: 1; padding: 0.65rem 1rem;
  border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
  outline: none; transition: box-shadow 0.15s;
  letter-spacing: -0.011em;
}
.search-input:focus { box-shadow: 0px 0px 0px 1px var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 0.65rem 1.5rem; border: none; border-radius: var(--radius);
  background: var(--text); color: var(--bg); font-family: var(--font);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: -0.015em;
}
.search-btn:hover { opacity: 0.85; }

/* ===== Shop Page ===== */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.shop-card {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--bg-card); border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg); padding: 0.75rem;
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.shop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.shop-card-img {
  width: 80px; height: 80px; flex-shrink: 0;
  overflow: hidden; border-radius: 6px;
  background: var(--bg-secondary);
}
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-info { flex: 1; min-width: 0; }
.shop-card-platform {
  font-size: 0.7rem; color: var(--accent); font-weight: 500;
  font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.shop-card-title {
  font-size: 0.92rem; font-weight: 600; margin: 0.15rem 0;
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shop-card-price {
  font-size: 0.85rem; color: var(--danger); font-weight: 600;
  font-family: var(--mono);
}
.shop-card-desc {
  font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Links Page ===== */
.links-section { margin-bottom: 2.5rem; }
.links-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.8rem;
  letter-spacing: -0.03em;
  padding-bottom: 0.5rem;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.08);
}
[data-theme="dark"] .links-title {
  box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.08);
}
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.link-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card); border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}
.link-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.link-icon { font-size: 1.4rem; }
.link-info { flex: 1; }
.link-name { font-weight: 600; font-size: 0.92rem; letter-spacing: -0.02em; }
.link-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Stats Page ===== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card); border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg); padding: 1.2rem 1rem;
  text-align: center; transition: box-shadow 0.15s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value {
  font-size: 2rem; font-weight: 600; color: var(--text);
  font-family: var(--mono);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; font-weight: 500; }

.stats-section {
  background: var(--bg-card); border: none;
  box-shadow: var(--border-shadow);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem;
}
.stats-section-title {
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud-item {
  padding: 0.3rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent); border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: -0.01em;
}

/* Monthly Chart */
.monthly-chart {
  display: flex; align-items: flex-end; gap: 3px; height: 120px;
  padding: 0.5rem 0;
}
.chart-bar {
  flex: 1; background: var(--text); border-radius: 3px 3px 0 0;
  min-height: 3px; position: relative; opacity: 0.15;
  transition: opacity 0.15s;
}
.chart-bar:hover { opacity: 0.3; }
.chart-bar-label {
  position: absolute; bottom: -18px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem; color: var(--text-muted); white-space: nowrap;
}
.chart-bar-value {
  position: absolute; top: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem; color: var(--text); font-weight: 600;
}

/* ===== Post Page ===== */
.post-full {
  max-width: var(--post-w); margin: 0 auto; padding: 3rem 2rem 4rem;
}
.post-header { margin-bottom: 2rem; }
.back-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; margin-bottom: 1.5rem;
  font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }
.post-full-title {
  font-size: 2.2rem; font-weight: 600; line-height: 1.15;
  margin-bottom: 0.8rem;
  letter-spacing: -0.04em;
}
.post-full-meta {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap;
}
.post-full-meta time {
  font-family: var(--mono); font-size: 0.82rem; color: var(--text-muted);
}
.read-info {
  color: var(--text-secondary); font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: 999px;
  font-weight: 500;
  font-family: var(--mono);
}

/* ===== Footer ===== */
.site-footer {
  border-top: none;
  box-shadow: var(--border-shadow);
  background: var(--bg-secondary);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem; font-weight: 600; font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.footer-logo { font-size: 1.2rem; }
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom p { margin-bottom: 0.3rem; }
.footer-icp a { color: var(--text-muted); text-decoration: none; }
.footer-icp a:hover { color: var(--text); }

/* ===== Error Page ===== */
.error-page {
  max-width: 400px; margin: 0 auto; padding: 6rem 2rem; text-align: center;
}
.error-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; }
.error-code {
  font-size: 5rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.5rem; letter-spacing: -0.06em;
  line-height: 1;
}
.error-msg { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; font-weight: 400; }
.error-link {
  display: inline-block; padding: 0.6rem 1.5rem;
  background: var(--text); color: var(--bg); border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
  font-size: 0.88rem; letter-spacing: -0.015em;
  transition: opacity 0.15s;
}
.error-link:hover { opacity: 0.85; }

/* ===== Archive ===== */
.archive-group { margin-bottom: 2rem; }
.archive-month {
  font-size: 1rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  letter-spacing: -0.03em;
  border-bottom: none;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.08);
}
[data-theme="dark"] .archive-month {
  box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.08);
}

.archive-item {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none; color: var(--text);
  border-bottom: none;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.04);
  transition: color 0.15s;
}
[data-theme="dark"] .archive-item {
  box-shadow: inset 0 -1px 0 0 rgba(255,255,255,0.04);
}
.archive-item:last-child { box-shadow: none; }
.archive-item:hover { color: var(--accent); }
.archive-date {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-muted);
  flex-shrink: 0; min-width: 90px;
  font-variant-numeric: tabular-nums;
}
.archive-title { font-size: 0.9rem; font-weight: 500; }

/* ===== 回到顶部 ===== */
.back-to-top-global {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--text); color: var(--bg); border: none;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); transition: all 0.2s;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  z-index: 150;
}
.back-to-top-global.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top-global:hover { opacity: 0.85; }

/* ===== Transitions ===== */
a, button { transition: all 0.15s; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root { --header-h: 50px; }
  .hero { padding: 3rem 1rem 2rem; }
  .hero-title { font-size: 2rem; letter-spacing: -0.035em; }
  .hero-subtitle { font-size: 1rem; }
  .section, .article-list, .subpage, .post-full { padding-left: 1rem; padding-right: 1rem; }
  .header-inner { padding: 0 1rem; }
  .showcase-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat-card { padding: 0.8rem; }
  .stat-value { font-size: 1.4rem; }
  .shop-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .post-full-title { font-size: 1.6rem; }
  .mobile-menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: var(--bg-card);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    padding: 0.5rem; flex-wrap: wrap;
    z-index: 99;
  }
  .nav.show { display: flex; }
  .nav-link { width: 100%; padding: 0.6rem 0.8rem; }
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }
  .subpage-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}