/* ===== 乐多i的博客 - Fuwari × W-Build Fusion ===== */

/* Hue-based color system (Fuwari style) */
:root {
  --hue: 250;
  --page-width: 75rem;
  --banner-height-extend: 30vh;

  /* Colors derived from hue */
  --primary: oklch(65% 0.14 var(--hue));
  --primary-light: oklch(75% 0.12 var(--hue));
  --primary-dim: oklch(65% 0.14 var(--hue) / 0.08);
  --primary-glow: oklch(65% 0.14 var(--hue) / 0.2);

  /* Light theme */
  --page-bg: oklch(97.5% 0.003 var(--hue));
  --card-bg: oklch(100% 0 0);
  --card-bg-hover: oklch(98% 0.002 var(--hue));
  --text-1: oklch(21% 0.034 264.665);
  --text-2: oklch(37% 0.034 259.733);
  --text-3: oklch(55% 0.027 264.364);
  --border: oklch(90% 0.006 264.531);
  --border-hover: oklch(80% 0.012 264.531);
  --shadow: 0 2px 16px oklch(20% 0 0 / 0.06);
  --shadow-md: 0 4px 24px oklch(20% 0 0 / 0.08);
  --shadow-lg: 0 8px 40px oklch(20% 0 0 / 0.12);

  /* W-Build style tokens */
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --radius-lg: 1.5rem;
  --transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark theme */
html.dark {
  --primary: oklch(70% 0.14 var(--hue));
  --primary-light: oklch(80% 0.1 var(--hue));
  --primary-dim: oklch(70% 0.14 var(--hue) / 0.12);
  --primary-glow: oklch(70% 0.14 var(--hue) / 0.25);
  --page-bg: oklch(15% 0.01 var(--hue));
  --card-bg: oklch(20% 0.01 var(--hue));
  --card-bg-hover: oklch(23% 0.015 var(--hue));
  --text-1: oklch(93% 0.003 264.542);
  --text-2: oklch(70% 0.022 261.325);
  --text-3: oklch(50% 0.02 261.325);
  --border: oklch(30% 0.015 264.531);
  --border-hover: oklch(40% 0.02 264.531);
  --shadow: 0 2px 16px oklch(0% 0 0 / 0.2);
  --shadow-md: 0 4px 24px oklch(0% 0 0 / 0.3);
  --shadow-lg: 0 8px 40px oklch(0% 0 0 / 0.4);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
  background: var(--page-bg); color: var(--text-1);
  line-height: 1.75; font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
::selection { background: var(--primary-glow); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== Page Body (Fuwari layout) ===== */
.page-body {
  position: relative;
  min-height: 100vh;
}

/* ===== Banner ===== */
.banner-wrapper {
  position: absolute; top: -30vh; left: 0; right: 0;
  height: calc(40vh + 30vh);
  z-index: 0; overflow: hidden;
}
.banner-wrapper.banner-home {
  top: 0;
  height: 70vh;
}
.banner-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
  opacity: 0; transform: scale(1.05);
  transition: opacity 0.8s ease, transform 1.2s ease;
}
.banner-img.loaded { opacity: 1; transform: scale(1); }
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    oklch(15% 0.01 var(--hue) / 0.3),
    oklch(15% 0.01 var(--hue) / 0.6) 60%,
    var(--page-bg) 100%);
}
.banner-credit {
  position: absolute; bottom: 16px; right: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: oklch(0% 0 0 / 0.5);
  color: oklch(95% 0 0 / 0.8); font-size: 12px; font-weight: 500;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.banner-credit:hover { background: oklch(0% 0 0 / 0.7); color: #fff; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  max-width: var(--page-width); margin: 0 auto;
  padding: 0 1rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem; padding: 0 1.25rem;
  background: var(--card-bg); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  border-top: none;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); font-size: 16px; }
.nav-brand-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.nav-link:hover { color: var(--text-1); background: var(--primary-dim); }
.nav-link.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-btn {
  width: 40px; height: 40px; border: none; border-radius: 10px;
  background: transparent; color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: var(--transition);
}
.nav-btn:hover { background: var(--primary-dim); color: var(--primary); }
.nav-btn:active { transform: scale(0.92); }
.mobile-toggle {
  display: none; width: 40px; height: 40px;
  border: none; border-radius: 10px; background: transparent;
  cursor: pointer; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.mobile-toggle span { width: 18px; height: 2px; background: var(--text-1); border-radius: 1px; transition: 0.25s; }

/* Hue slider */
.hue-slider {
  width: 60px; height: 4px; border-radius: 2px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right,
    oklch(65% 0.14 0), oklch(65% 0.14 60), oklch(65% 0.14 120),
    oklch(65% 0.14 180), oklch(65% 0.14 240), oklch(65% 0.14 300), oklch(65% 0.14 360));
  outline: none; cursor: pointer;
}
.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--primary);
  border: 2px solid var(--card-bg); box-shadow: var(--shadow);
  cursor: pointer;
}

/* ===== Main Layout ===== */
.main-wrapper {
  position: relative; z-index: 10;
  max-width: var(--page-width); margin: 0 auto;
  padding: 0 1rem;
  top: calc(35vh - 3.5rem);
}
.home-wrapper {
  top: calc(70vh - 3.5rem);
}
.main-grid {
  display: grid;
  grid-template-columns: 17.5rem 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  padding-top: 2rem;
  transition: padding-top 0.7s;
}

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-sticky { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1rem; }

/* Profile Card */
.profile-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 1rem; text-align: center;
  transition: var(--transition);
}
.profile-avatar-wrap {
  position: relative; overflow: hidden; border-radius: 0.75rem;
  margin-bottom: 0.75rem; aspect-ratio: 1;
  cursor: pointer;
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.profile-avatar-wrap:hover img { transform: scale(1.05); }
.profile-avatar-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: oklch(0% 0 0 / 0); transition: background 0.3s;
  pointer-events: none;
}
.profile-avatar-wrap:hover .profile-avatar-overlay { background: oklch(0% 0 0 / 0.3); }
.profile-avatar-overlay span { opacity: 0; transform: scale(0.8); transition: all 0.3s; font-size: 2rem; color: #fff; }
.profile-avatar-wrap:hover .profile-avatar-overlay span { opacity: 1; transform: scale(1); }
.profile-name { font-size: 1.25rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.25rem; }
.profile-divider { width: 1.25rem; height: 3px; border-radius: 2px; background: var(--primary); margin: 0 auto 0.5rem; }
.profile-bio { font-size: 13px; color: var(--text-3); line-height: 1.6; margin-bottom: 0.75rem; }
.profile-social { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-2px); }

/* Category Widget */
.widget {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text-1);
  cursor: pointer; transition: var(--transition);
}
.widget-head:hover { background: var(--primary-dim); }
.widget-head svg { width: 16px; height: 16px; color: var(--text-3); transition: transform 0.3s; }
.widget-head.open svg { transform: rotate(180deg); }
.widget-body { padding: 8px; transition: all 0.3s; }
.widget-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
  transition: var(--transition);
}
.widget-item:hover, .widget-item.active { background: var(--primary-dim); color: var(--primary); }
.widget-count {
  font-size: 12px; font-weight: 700; color: var(--text-3);
  background: var(--primary-dim); padding: 2px 8px; border-radius: 999px;
}

/* ===== Content Area ===== */
.content-area { min-width: 0; }

/* Article Cards */
.article-grid { display: flex; flex-direction: column; gap: 1rem; }
.article-card {
  display: flex; gap: 1.25rem;
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 1.25rem; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.article-card-cover {
  flex-shrink: 0; width: 180px; aspect-ratio: 16/10;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dim), oklch(65% 0.14 var(--hue) / 0.04));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  transition: transform 0.4s;
}
.article-card:hover .article-card-cover { transform: scale(1.03); }
.article-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.article-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.article-card-title {
  font-size: 17px; font-weight: 700; color: var(--text-1);
  line-height: 1.4; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-excerpt {
  font-size: 14px; color: var(--text-3); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-3); margin-top: auto;
  padding-top: 8px; border-top: 1px solid var(--border);
}
.article-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.article-card-meta .meta-item { display: flex; align-items: center; gap: 4px; }

/* Featured Card */
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  overflow: hidden; cursor: pointer; margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.featured-cover {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #fff; min-height: 240px;
}
.featured-body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.featured-body .article-card-title { font-size: 22px; }
.featured-body .article-card-excerpt { -webkit-line-clamp: 3; }

/* Tags */
.tag {
  display: inline-flex; padding: 3px 10px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  border: 1px solid var(--border); color: var(--primary);
  background: var(--primary-dim);
}
.tag.green { color: oklch(55% 0.16 145); border-color: oklch(55% 0.16 145 / 0.3); background: oklch(55% 0.16 145 / 0.08); }
.tag.amber { color: oklch(60% 0.15 75); border-color: oklch(60% 0.15 75 / 0.3); background: oklch(60% 0.15 75 / 0.08); }

/* Filter Bar */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-btn {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); background: var(--card-bg);
  color: var(--text-2); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* ===== Article Detail ===== */
.article-page {
  max-width: 48rem; margin: 0 auto;
  padding: 2rem 2rem 4rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-3);
  margin-bottom: 1.5rem; cursor: pointer;
}
.article-back:hover { color: var(--primary); }
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.25; margin-bottom: 1rem; color: var(--text-1); }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.article-cover {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: #fff;
}
.article-content {
  font-size: 16px; line-height: 1.9; color: var(--text-2);
}
.article-content h2 { font-size: 24px; font-weight: 700; color: var(--text-1); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
.article-content h3 { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 2rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-dim); color: var(--text-2); font-style: italic;
}
.article-content code {
  background: var(--primary-dim); padding: 2px 6px; border-radius: 6px;
  font-size: 13px; font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  color: var(--primary); font-weight: 600;
}
.article-content pre {
  background: oklch(18% 0.02 260); color: oklch(88% 0.01 260);
  padding: 1.25rem; border-radius: var(--radius);
  overflow-x: auto; margin: 1.5rem 0;
  font-size: 13px; line-height: 1.7;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  border: 1px solid oklch(25% 0.02 260);
}
.article-content pre code { background: transparent; color: inherit; padding: 0; }
.article-content ul, .article-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }

/* ===== About (Fuwari card style) ===== */
.about-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  padding: 1.75rem 2rem 2.5rem;
}
.about-title {
  font-size: 1.75rem; font-weight: 800; color: var(--text-1);
  margin-bottom: 1.5rem;
  position: relative; padding-left: 1.25rem;
}
.about-title::before {
  content: ''; position: absolute;
  left: 0; top: 0.35em;
  width: 4px; height: 1.25em;
  border-radius: 2px; background: var(--primary);
}
.about-body { color: var(--text-2); line-height: 1.9; font-size: 15px; }
.about-body h3 { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 1.5rem 0 0.75rem; }
.skill-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.skill-tag {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--text-2);
  transition: var(--transition); cursor: default;
}
.skill-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-2px); }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0.5rem; }
.contact-btn {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); background: var(--card-bg);
  color: var(--text-2); cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.contact-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim); transform: translateY(-2px); }

/* ===== Links Page ===== */
.links-section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-1);
  margin: 2rem 0 1rem;
  position: relative; padding-left: 1.25rem;
}
.links-section-title::before {
  content: ''; position: absolute;
  left: 0; top: 0.3em;
  width: 4px; height: 1.1em;
  border-radius: 2px; background: var(--primary);
}
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem;
}
.link-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: 0.75rem;
  border: 1.5px solid var(--border); background: var(--card-bg);
  cursor: pointer; text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 5rem;
}
.link-card:hover {
  border-color: var(--primary); background: var(--card-bg-hover);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.link-avatar {
  width: 48px; height: 48px; border-radius: 0.75rem;
  object-fit: cover; flex-shrink: 0;
  background: oklch(95% 0 0);
  transition: transform 0.3s;
}
.link-card:hover .link-avatar { transform: scale(1.05); }
.link-info { min-width: 0; flex: 1; }
.link-name {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.link-card:hover .link-name { color: var(--primary); }
.link-arrow {
  font-size: 13px; color: var(--text-3);
  transition: color 0.2s;
}
.link-card:hover .link-arrow { color: var(--primary); }
.link-desc {
  font-size: 13px; color: var(--text-3); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-url {
  font-size: 12px; color: var(--text-3); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center; padding: 2rem 1rem;
  border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  max-width: var(--page-width); margin: 0 auto;
}
.site-footer b { color: var(--primary); font-weight: 700; }

/* ===== Toast ===== */
.toast-stack { position: fixed; top: 5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast-item {
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--card-bg); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--text-1);
}
@keyframes toastIn { from { opacity: 0; transform: translate(30px); } to { opacity: 1; transform: translate(0); } }

/* ===== Loading Bar ===== */
.loading-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: 3px; opacity: 0; transition: opacity 0.2s;
  background: var(--primary-dim); pointer-events: none;
}
.loading-bar.active { opacity: 1; }
.loading-bar span {
  display: block; width: 34%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: slide 1s ease-in-out infinite;
}
@keyframes slide { from { transform: translate(-120%); } to { transform: translate(320%); } }

/* ===== Page Transition ===== */
.view { display: none; }
.view.active { display: block; animation: fadeUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--border);
  box-shadow: var(--shadow); color: var(--primary);
  cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }

/* ===== Mobile Menu (Fuwari floating panel) ===== */
.mobile-menu {
  position: fixed; top: 3.75rem; right: 1rem; z-index: 200;
  width: 220px; background: var(--card-bg);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 0.5rem;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-overlay { position: fixed; inset: 0; z-index: 199; background: transparent; opacity: 0; pointer-events: none; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu-head { display: none; }
.mobile-close { display: none; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 700; color: var(--text-1);
  cursor: pointer; transition: var(--transition);
}
.mobile-link:hover { background: var(--primary-dim); color: var(--primary); }
.mobile-link.active { color: var(--primary); }
.mobile-link-arrow {
  color: var(--text-3); font-size: 13px;
  transition: transform 0.2s;
}
.mobile-link:hover .mobile-link-arrow { color: var(--primary); transform: translateX(2px); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr; padding-top: 2rem; }
  .sidebar { order: -1; }
  .sidebar-sticky { position: static; }
  .profile-card { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem; }
  .profile-avatar-wrap { width: 80px; min-width: 80px; aspect-ratio: 1; margin-bottom: 0; border-radius: 0.75rem; }
  .profile-divider { margin: 0 0 0.25rem 0; }
  .profile-social { justify-content: flex-start; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 180px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .article-card { flex-direction: column; gap: 1rem; }
  .article-card-cover { width: 100%; aspect-ratio: 16/9; }
  .navbar-inner { height: 3.5rem; padding: 0 1rem; }
  .hue-slider { width: 40px; }
  .about-header { flex-direction: column; text-align: center; }
  .about-avatar { width: 96px; height: 96px; font-size: 2.5rem; }
  .profile-card { flex-direction: column; text-align: center; }
  .profile-avatar-wrap { width: 100%; max-width: 12rem; margin: 0 auto 0.75rem; }
  .profile-divider { margin: 0 auto 0.5rem; }
  .profile-social { justify-content: center; }
  .sidebar { order: 0; }
  .widget { order: 1; }
}
