/*
Theme Name: Game Firewall · WorkBuddy
Version: 1.0
*/
/* ============================================================
 * style.css — 全站样式
 * 两栏布局（左侧栏 + 右侧主区）/ 技术专业风 / 深色默认可切浅色
 * ============================================================ */

/* ---------- 1. 主题变量 ---------- */
:root {
  --bg: #0b0f14;
  --bg-soft: #11161d;
  --surface: #151b23;
  --surface-2: #1b222c;
  --border: #232c37;
  --border-strong: #33404f;
  --text: #e6edf3;
  --text-soft: #aab6c4;
  --text-mute: #6e7d8c;

  --accent: #35d8b0;
  --accent-soft: rgba(53, 216, 176, 0.12);
  --accent-2: #6c8cff;
  --accent-2-soft: rgba(108, 140, 255, 0.12);

  --tag-teal: #35d8b0;
  --tag-blue: #6c8cff;
  --tag-purple: #b388ff;
  --tag-amber: #f0b35b;
  --tag-green: #7bd88f;

  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  --maxw: 1300px;
  --sidebar-w: 288px;
}

html[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-soft: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --border: #dbe2ea;
  --border-strong: #b9c4d0;
  --text: #1c2530;
  --text-soft: #475569;
  --text-mute: #7b8794;
  --accent: #0f9e7c;
  --accent-soft: rgba(15, 158, 124, 0.10);
  --accent-2: #3b5bdb;
  --accent-2-soft: rgba(59, 91, 219, 0.10);
  --tag-teal: #0f9e7c;
  --tag-blue: #3b5bdb;
  --tag-purple: #7c4dff;
  --tag-amber: #b26a00;
  --tag-green: #2e8b45;
  --shadow: 0 8px 30px rgba(20, 35, 55, 0.08);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #04120e; }
.container { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; }

/* 背景网格 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(120, 140, 160, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 140, 160, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 700px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 700px);
}

/* ---------- 3. 顶部窄栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; height: 58px;
}
.topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.3px; font-size: 16px; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--accent); color: #04120e; border-radius: 8px;
  font-family: var(--mono); font-weight: 800; font-size: 16px;
}
.brand .fw { color: var(--accent); }
.topbar-spacer { flex: 1; }
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 9px; padding: 0 12px; height: 36px;
}
.topbar-search svg { width: 16px; height: 16px; color: var(--text-mute); }
.topbar-search input {
  border: none; outline: none; background: transparent; color: var(--text);
  font-family: var(--sans); font-size: 13px; width: 180px;
}
.topbar-search input::placeholder { color: var(--text-mute); }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--text-soft); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-toggle { display: none; }

/* ---------- 4. 两栏布局 ---------- */
.layout {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 60px;
}

/* ---------- 5. 左侧栏 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 86px; }
.side-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}

/* 个人卡片 */
.profile-card { padding: 28px 22px 22px; text-align: center; }
.profile-avatar {
  width: 84px; height: 84px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04120e; font-family: var(--mono); font-size: 38px; font-weight: 800;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border-strong);
}
.profile-name { font-size: 20px; font-weight: 750; letter-spacing: -0.5px; }
.profile-sign {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-mute);
  margin-top: 6px; min-height: 18px;
}
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 18px 0 16px; padding: 14px 0;
}
.profile-stats .st-num { font-family: var(--mono); font-size: 18px; font-weight: 750; color: var(--accent); }
.profile-stats .st-label { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.profile-social { display: flex; justify-content: center; gap: 9px; }
.profile-social a, .profile-social span {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 9px;
  color: var(--text-soft); transition: all .2s;
}
.profile-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.profile-social svg { width: 16px; height: 16px; }

/* 侧栏通用区块 */
.side-block { padding: 18px 20px; }
.side-title {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: 1.2px;
  display: flex; align-items: center; gap: 9px; margin-bottom: 15px;
}
.side-title::before { content: ""; width: 5px; height: 13px; background: var(--accent); border-radius: 3px; }
.side-title .count { margin-left: auto; color: var(--text-mute); letter-spacing: 0; }

/* 侧栏导航 */
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: var(--text-soft); transition: all .18s;
}
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-nav svg { width: 17px; height: 17px; flex: none; }
.side-nav .nav-arrow { margin-left: auto; font-family: var(--mono); font-size: 12px; opacity: .6; }

/* 标签云 */
.side-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.side-tags a { transition: transform .18s; }
.side-tags a:hover { transform: translateY(-2px); }

/* 最新文章 */
.recent-list { display: flex; flex-direction: column; gap: 4px; }
.recent-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 6px; border-radius: 8px; transition: background .18s;
}
.recent-item:hover { background: var(--surface-2); }
.recent-thumb {
  width: 42px; height: 42px; flex: none; border-radius: 7px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.recent-info { min-width: 0; }
.recent-title {
  font-size: 12.5px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-item:hover .recent-title { color: var(--accent); }
.recent-date { font-family: var(--mono); font-size: 10.5px; color: var(--text-mute); margin-top: 3px; }

/* ---------- 6. 右侧主区 ---------- */
.main { min-width: 0; }

/* 主区顶部介绍条 */
.main-intro {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.main-intro::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent);
}
.main-intro .greeting { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.main-intro h1 { font-size: 24px; font-weight: 750; letter-spacing: -0.6px; margin-bottom: 6px; }
.main-intro p { color: var(--text-soft); font-size: 14.5px; }

/* 区块头 */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.sec-title { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 4px; height: 17px; background: var(--accent); border-radius: 4px; }
.sec-link { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.sec-link:hover { text-decoration: underline; }

/* ---------- 7. 文章卡片（封面 + 内容） ---------- */
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }

/* 抽象技术封面 */
.post-cover {
  position: relative; min-height: 168px; overflow: hidden;
  display: grid; place-items: center;
}
.post-cover .cover-label {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.18); z-index: 2; text-align: center;
}
.post-cover .cover-glyph {
  position: absolute; right: 10px; bottom: -18px;
  font-family: var(--mono); font-size: 96px; font-weight: 800;
  color: rgba(255,255,255,.10); line-height: 1; z-index: 1;
}
/* 封面图案变体 */
.cover-grid {
  background-color: #123a35;
  background-image:
    linear-gradient(rgba(53,216,176,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,216,176,.22) 1px, transparent 1px);
  background-size: 22px 22px;
}
.cover-wave {
  background-color: #24305c;
  background-image: repeating-linear-gradient(135deg, rgba(140,160,255,.18) 0 2px, transparent 2px 16px);
}
.cover-shield {
  background-color: #4a2a55;
  background-image:
    radial-gradient(circle at 50% 45%, rgba(200,150,255,.28) 0 34%, transparent 35%),
    repeating-linear-gradient(0deg, rgba(200,150,255,.10) 0 1px, transparent 1px 14px);
}

.post-body { padding: 20px 24px; display: flex; flex-direction: column; min-width: 0; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); margin-bottom: 10px;
}
.post-meta .m-item { display: inline-flex; align-items: center; gap: 5px; }
.post-meta .m-item svg { width: 13px; height: 13px; }
.post-meta .m-cat { color: var(--accent-2); }
.post-card h3 { font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 9px; }
.post-card h3 a:hover { color: var(--accent); }
.post-excerpt { font-size: 13.5px; color: var(--text-soft); line-height: 1.72; flex: 1; }
.post-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.read-more { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; }
.read-more:hover { text-decoration: underline; }

/* ---------- 8. 标签 ---------- */
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; border: 1px solid currentColor; opacity: .9; }
.tag.teal { color: var(--tag-teal); }
.tag.blue { color: var(--tag-blue); }
.tag.purple { color: var(--tag-purple); }
.tag.amber { color: var(--tag-amber); }
.tag.green { color: var(--tag-green); }

/* ---------- 9. 列表页工具区 ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.search-box {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 0 14px; transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 17px; height: 17px; color: var(--text-mute); flex: none; }
.search-box input { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-family: var(--sans); font-size: 14px; padding: 12px 0; }
.search-box input::placeholder { color: var(--text-mute); }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip {
  font-family: var(--mono); font-size: 12px; padding: 7px 13px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); cursor: pointer; transition: all .2s;
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip.active { background: var(--accent); color: #04120e; border-color: var(--accent); font-weight: 700; }
.result-count { font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-mute); }
.empty-state .big { font-family: var(--mono); font-size: 38px; color: var(--border-strong); margin-bottom: 12px; }

/* ---------- 10. 文章详情 ---------- */
.article-head { padding: 8px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-bottom: 16px; }
.crumb a:hover { color: var(--accent); }
.article-head h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.28; letter-spacing: -0.8px; font-weight: 800; margin-bottom: 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); }
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-mute); }
.article-body { font-size: 15.5px; color: var(--text-soft); }
.article-body > * { margin-bottom: 20px; }
.article-body h2 { font-size: 22px; color: var(--text); font-weight: 750; letter-spacing: -0.4px; margin: 36px 0 16px; padding-left: 14px; border-left: 3px solid var(--accent); line-height: 1.4; }
.article-body h3 { font-size: 18px; color: var(--text); margin: 26px 0 12px; }
.article-body p { line-height: 1.9; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--accent); border-bottom: 1px dashed var(--accent); }
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin-bottom: 9px; line-height: 1.8; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 15px 18px; color: var(--text); font-size: 15px; }
.article-body blockquote p { margin: 0; }
.article-body code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; color: var(--accent); }
.article-body pre { background: #0e141b; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; line-height: 1.7; font-size: 13px; }
html[data-theme="light"] .article-body pre { background: #1c2530; }
.article-body pre code { background: none; border: none; padding: 0; color: #cfe4dd; font-size: 13px; }
.tok-key { color: #7ee2c4; } .tok-str { color: #e6c07b; } .tok-num { color: #f09b8a; }
.tok-com { color: #6e7d8c; font-style: italic; } .tok-bool { color: #b388ff; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.article-body th { background: var(--surface); color: var(--text); }
.article-body figure { margin: 26px 0 30px; }
.article-body figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); display: block; }
.article-body figcaption { font-family: var(--mono); font-size: 12px; color: var(--text-mute); text-align: center; margin-top: 10px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-nav a { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.article-nav a:hover { text-decoration: underline; }
.article-nav .disabled { color: var(--text-mute); opacity: .5; }

/* ---------- 11. 关于我 ---------- */
.about-hero { display: flex; gap: 22px; align-items: center; padding: 4px 0 28px; }
.about-hero .avatar { width: 88px; height: 88px; flex: none; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04120e; font-family: var(--mono); font-size: 40px; font-weight: 800; }
.about-hero h1 { font-size: 30px; letter-spacing: -1px; }
.about-hero .role { font-family: var(--mono); color: var(--accent); font-size: 13px; margin-top: 4px; }
.about-lead { font-size: 17px; color: var(--text); font-weight: 600; margin-bottom: 16px; }
.about-text p { color: var(--text-soft); margin-bottom: 13px; line-height: 1.9; }
.skill-group { margin-bottom: 20px; }
.skill-group h4 { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.skill-group h4::before { content: "#"; color: var(--text-mute); }
.skill-items { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-item { font-size: 13px; padding: 6px 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-soft); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-period { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.tl-role { font-size: 16px; font-weight: 700; margin: 3px 0; }
.tl-org { font-size: 13px; color: var(--text-mute); }
.tl-desc { font-size: 14px; color: var(--text-soft); margin-top: 6px; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); transition: all .2s; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 10px; }
.contact-icon svg { width: 19px; height: 19px; }
.contact-label { font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.contact-value { font-size: 13.5px; color: var(--text); word-break: break-all; }

/* ---------- 12. 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 20px; padding: 28px 0 34px; }
.footer-inner { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-mark { width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent); color: #04120e; border-radius: 6px; font-family: var(--mono); font-weight: 800; font-size: 12px; }
.footer-note { font-family: var(--mono); font-size: 11.5px; color: var(--text-mute); }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1020px) {
  :root { --sidebar-w: 250px; }
  .post-card { grid-template-columns: 165px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 22px; }
  .sidebar { position: static; }
  /* 移动端侧栏缩为顶部：个人卡片 + 标签 + 最新文章折叠展示 */
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .profile-card { grid-column: 1 / -1; }
  .side-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .side-nav a { flex: 1; justify-content: center; }
  .side-nav .nav-arrow { display: none; }
}
@media (max-width: 640px) {
  .container, .topbar-inner, .footer-inner, .layout { width: min(var(--maxw), calc(100% - 28px)); }
  .topbar-search { display: none; }
  .sidebar { display: flex; }
  /* 手机端导航改为三等分网格，确保三项都完整显示 */
  .side-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .side-nav a { justify-content: center; gap: 0; padding: 10px 2px; text-align: center; font-size: 13px; }
  .side-nav a > svg { display: none; }
  .side-nav a .nav-arrow { display: none; }
  .profile-stats .st-label { color: var(--text-soft); }
  .profile-stats { margin-left: -4px; margin-right: -4px; }
  .post-card { grid-template-columns: 1fr; }
  .post-cover { min-height: 130px; }
  .post-body { padding: 18px; }
  .about-hero { flex-direction: column; align-items: flex-start; }
  .menu-toggle { display: grid; }
  .article-head h1 { font-size: 26px; }
  .article-body { font-size: 15px; }
  .article-nav { flex-direction: column; }
}
@media (max-width: 400px) {
  .profile-stats .st-num { font-size: 16px; }
  .post-meta { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.gf-navigation-error { position: fixed; left: 16px; bottom: 20px; z-index: 200; padding: 12px 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.gf-navigation-error :is(button, a) { margin-left: 12px; color: var(--accent); font: inherit; background: transparent; border: 0; cursor: pointer; }
