/* ====================================================
   一只羊 · 静态博客主题
   贴合 Hao Theme 风格
==================================================== */

/* ---------- CSS 变量 ---------- */
:root {
  --main:        #6176ff;
  --main-dark:   #425aef;
  --main-op:     rgba(97, 118, 255, 0.12);
  --main-op2:    rgba(97, 118, 255, 0.06);
  --bg:          #f7f8ff;
  --card-bg:     #ffffff;
  --font:        #363636;
  --font2:       #6b7280;
  --font3:       #9ca3af;
  --border:      #e8ecf5;
  --shadow:      0 4px 20px rgba(97,118,255,.08);
  --shadow-h:    0 8px 30px rgba(97,118,255,.16);
  --radius:      14px;
  --radius-sm:   8px;
  --tag-bg:      #eef0ff;
  --tag-c:       #6176ff;
  --code-bg:     #282c34;
  --gradient:    linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6176ff 100%);
  --gradient2:   linear-gradient(-25deg, #425aef, #6176ff, #818cf8, #6176ff);
  --nav-h:       64px;
}

[data-theme="dark"] {
  --bg:       #0f0f15;
  --card-bg:  #1a1a2e;
  --font:     #e2e8f0;
  --font2:    #94a3b8;
  --font3:    #64748b;
  --border:   #2d2d44;
  --shadow:   0 4px 20px rgba(0,0,0,.3);
  --shadow-h: 0 8px 30px rgba(0,0,0,.5);
  --tag-bg:   #2d2d44;
  --tag-c:    #818cf8;
  --main-op:  rgba(97,118,255,.18);
  --main-op2: rgba(97,118,255,.09);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--font);
  line-height: 1.75;
  min-height: 100vh;
  transition: background .3s, color .3s;
}
a { color: var(--main); text-decoration: none; }
a:hover { opacity: .8; }
img { max-width:100%; height:auto; display:block; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-thumb {
  background: var(--main);
  border-radius: 3px;
  background-image: linear-gradient(45deg,
    rgba(255,255,255,.4) 25%, transparent 25%, transparent 50%,
    rgba(255,255,255,.4) 50%, rgba(255,255,255,.4) 75%, transparent 75%);
}
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

.page-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}
.page-wrap.full { grid-template-columns: 1fr; }

@media (max-width: 1100px) {
  .page-wrap { grid-template-columns: 1fr; }
  .aside { display: none; }
}

/* ---------- Nav ---------- */
#nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border .3s;
}
[data-theme="dark"] #nav {
  background: rgba(26,26,46,.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}
.site-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--font);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: .5rem;
}
.nav-links a {
  color: var(--font2);
  font-size: .88rem;
  font-weight: 500;
  padding: .4rem .7rem;
  border-radius: 20px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--main);
  background: var(--main-op);
}
.nav-spacer { flex: 1; }
.nav-btns { display: flex; align-items: center; gap: .4rem; }
.nav-btn {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: none; cursor: pointer;
  color: var(--font2); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.nav-btn:hover { background: var(--main-op); color: var(--main); }
/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none;
  background: none; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--font); border-radius: 2px; transition: .3s;
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--card-bg);
    padding: .75rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .6rem .75rem; border-radius: var(--radius-sm); }
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: var(--gradient2);
  background-size: 400%;
  animation: gradMove 15s ease infinite;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
@keyframes gradMove {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.banner-inner { position: relative; display: flex; align-items: center; gap: 1.5rem; }
.banner-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  object-fit: cover; flex-shrink: 0;
}
.banner-hello {
  display: inline-block;
  background: rgba(255,255,255,.2);
  padding: .15rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  margin-bottom: .5rem;
  letter-spacing: .5px;
}
.banner-title { font-size: 1.6rem; font-weight: 800; margin-bottom: .3rem; }
.banner-sub { opacity: .85; font-size: .9rem; }

/* ---------- Card Base ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, background .3s, border .3s;
  overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }

/* ---------- Article Cards ---------- */
.article-list { display: flex; flex-direction: column; gap: 1.25rem; }

.article-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--border);
}
.article-card:nth-child(even) {
  grid-template-columns: 1fr 240px;
}
.article-card:nth-child(even) .ac-cover { order: 2; }

.ac-cover {
  min-height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ac-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(97,118,255,.15), transparent);
}
.ac-body {
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: .5rem;
}
.ac-cat {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--tag-bg); color: var(--tag-c);
  padding: .15rem .65rem;
  border-radius: 20px; font-size: .73rem; font-weight: 600;
  width: fit-content;
}
.ac-title {
  font-size: 1.2rem; font-weight: 700; color: var(--font);
  line-height: 1.4;
}
.ac-excerpt {
  color: var(--font2); font-size: .85rem; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ac-date { color: var(--font3); font-size: .78rem; display: flex; align-items: center; gap: .3rem; }
.tag-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag {
  display: inline-block;
  background: var(--tag-bg); color: var(--tag-c);
  padding: .1rem .5rem;
  border-radius: var(--radius-sm); font-size: .72rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.tag:hover { background: var(--main); color: #fff; }

@media (max-width: 700px) {
  .article-card, .article-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .article-card:nth-child(even) .ac-cover { order: 0; }
  .ac-cover { min-height: 170px; }
}

/* ---------- Aside / Sidebar ---------- */
.aside { display: flex; flex-direction: column; gap: 1.25rem; }

/* Profile card */
.profile-card {
  background: var(--gradient2);
  background-size: 400%;
  animation: gradMove 15s ease infinite;
  border-radius: var(--radius);
  border: none;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.profile-bg {
  height: 80px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(2px);
}
.profile-body { padding: 0 1.25rem 1.25rem; text-align: center; position: relative; }
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.5);
  object-fit: cover;
  margin-top: -36px;
  margin-bottom: .5rem;
}
.profile-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.profile-desc { font-size: .8rem; opacity: .85; margin-bottom: .75rem; }
.profile-social { display: flex; justify-content: center; gap: .6rem; }
.profile-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .2s, transform .3s;
}
.profile-social a:hover { background: rgba(255,255,255,.4); transform: scale(1.1) rotate(360deg); }

/* Card header */
.card-hd {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--font2);
  padding: 1rem 1.25rem .6rem;
  border-bottom: 1px solid var(--border);
}
.card-hd svg { width: 15px; height: 15px; color: var(--main); }
.card-body { padding: .75rem 1.25rem 1rem; }

/* Tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }

/* Recent list */
.recent-list { display: flex; flex-direction: column; gap: .65rem; }
.recent-item { display: flex; gap: .75rem; align-items: center; }
.recent-item-img {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.recent-item-info .ri-title {
  font-size: .83rem; font-weight: 600; color: var(--font);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-item-info time { font-size: .73rem; color: var(--font3); }

/* Category list */
.cat-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; border-bottom: 1px dashed var(--border);
  font-size: .88rem;
}
.cat-item:last-child { border: none; }
.cat-item a { color: var(--font); }
.cat-item a:hover { color: var(--main); }
.cat-count {
  background: var(--main-op); color: var(--main);
  padding: .1rem .45rem; border-radius: 20px; font-size: .72rem; font-weight: 600;
}

/* ---------- Article Page ---------- */
.article-wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

.article-hd { margin-bottom: 1.75rem; }
.article-hd .ac-cat { margin-bottom: .75rem; }
.article-hd h1 {
  font-size: 2rem; font-weight: 800; line-height: 1.3;
  margin-bottom: .75rem;
}
.article-hd-meta {
  display: flex; align-items: center; gap: 1.25rem;
  color: var(--font3); font-size: .82rem; flex-wrap: wrap;
}

.article-thumb {
  width: 100%; border-radius: var(--radius);
  max-height: 420px; object-fit: cover;
  margin-bottom: 1.75rem;
}

.article-body {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  transition: background .3s;
}

/* Markdown content */
.article-body h2, .article-body h3, .article-body h4 {
  font-weight: 700; line-height: 1.4; margin-top: 2rem; margin-bottom: .75rem;
}
.article-body h2 {
  font-size: 1.4rem;
  padding-bottom: .5rem; border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.article-body h2::before {
  content: '';
  display: inline-block; width: 4px; height: 1.1em;
  background: var(--main); border-radius: 2px; flex-shrink: 0;
}
.article-body h3 { font-size: 1.12rem; }
.article-body h4 { font-size: 1rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: .4rem; list-style: disc; }
.article-body ol li { list-style: decimal; }

/* Inline code */
.article-body code {
  background: var(--tag-bg); color: var(--main);
  padding: .15rem .4rem; border-radius: 4px;
  font-size: .87em;
  font-family: "JetBrains Mono","Fira Code","Cascadia Code",monospace;
}
/* Code block */
.article-body pre {
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  overflow-x: auto; margin-bottom: 1.25rem;
  font-size: .85rem; line-height: 1.65;
  position: relative;
}
.article-body pre::before {
  content: '';
  position: absolute; top: .65rem; left: .75rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 0 #febc2e, 32px 0 0 #28c840;
}
.article-body pre code {
  background: none; color: #abb2bf; padding: 0; font-size: inherit; border-radius: 0;
}
/* Blockquote */
.article-body blockquote {
  border-left: 4px solid var(--main);
  background: var(--main-op2);
  padding: .85rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem; color: var(--font2);
}
.article-body blockquote p:last-child { margin: 0; }
/* Table */
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .9rem; }
.article-body th, .article-body td { padding: .55rem .85rem; border: 1px solid var(--border); text-align: left; }
.article-body th { background: var(--main-op2); font-weight: 600; }
.article-body a { color: var(--main); border-bottom: 1px dashed var(--main); }
.article-body a:hover { border-bottom-style: solid; }

@media (max-width: 768px) {
  .article-body { padding: 1.5rem 1.25rem; }
  .article-hd h1 { font-size: 1.5rem; }
}

/* ---------- Page Header Banner (for non-home pages) ---------- */
.ph-banner {
  position: relative;
  height: 160px;
  background: var(--gradient2);
  background-size: 400%;
  animation: gradMove 15s ease infinite;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; margin-bottom: 1.5rem;
  overflow: hidden;
}
.ph-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ph-content { position: relative; }
.ph-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .25rem; }
.ph-sub { font-size: .88rem; opacity: .85; }

/* ---------- Tool Page ---------- */
.tool-section { margin-bottom: 2rem; }
.tool-section-title {
  font-size: 1rem; font-weight: 700; color: var(--font);
  margin-bottom: .6rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.tool-section-desc { font-size: .82rem; color: var(--font3); margin-bottom: 1rem; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .85rem;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
  border-color: var(--main);
}
.tool-card img {
  width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: cover;
}
.tool-card-name { font-size: .85rem; font-weight: 600; color: var(--font); }
.tool-card-desc { font-size: .73rem; color: var(--font3); line-height: 1.4; }

/* ---------- Music Page ---------- */
.music-wrap { max-width: 800px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.music-player-card { border-radius: var(--radius); overflow: hidden; }
.music-player-card .aplayer { margin: 0; border-radius: 0; }

/* ---------- Todolist Page ---------- */
.todo-wrap { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.todo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
@media (max-width: 600px) { .todo-grid { grid-template-columns: 1fr; } }
.todo-card {
  background: #fae4df;
  border: 2px dashed #f7a796;
  border-radius: var(--radius); padding: 1.25rem;
}
[data-theme="dark"] .todo-card {
  background: #1e1e2e; border-color: #51908b;
}
.todo-title {
  font-size: 1rem; font-weight: 700; color: var(--font);
  padding-bottom: .6rem;
  border-bottom: 1px solid #f7a796; margin-bottom: .75rem;
  display: flex; align-items: center; gap: .4rem;
}
[data-theme="dark"] .todo-title { border-color: #51908b; }
.todo-list { display: flex; flex-direction: column; gap: 0; }
.todo-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(247,167,150,.5);
  font-size: .9rem; color: var(--font);
}
[data-theme="dark"] .todo-item { border-color: rgba(81,144,139,.4); }
.todo-item:last-child { border: none; }
.todo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--main); flex-shrink: 0;
}

/* ---------- About Page ---------- */
.about-wrap { max-width: 900px; margin: 0 auto; padding: 0 1.25rem 3rem; }

/* Hello hero */
.hello-hero {
  border-radius: var(--radius); overflow: hidden;
  position: relative; user-select: none; margin-bottom: 1.25rem;
  background: var(--card-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hello-shapes {
  height: 220px; background: #2128bd; overflow: hidden; position: relative;
}
.hello-shape {
  position: absolute; border-radius: 50%;
  transition: transform 1.5s cubic-bezier(.25,.46,.45,.94);
}
.hello-shape-1 { background:#005ffe; width:500px; height:500px; top:-200px; left:50%; margin-left:-250px; }
.hello-shape-2 { background:#ffe5e3; width:340px; height:340px; top:-120px; left:50%; margin-left:-170px; }
.hello-shape-3 { background:#ffcc57; width:200px; height:200px; top:-60px; left:50%; margin-left:-100px; }
.hello-content-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; mix-blend-mode: screen;
}
[data-theme="dark"] .hello-content-layer { background: transparent; }
.hello-content-layer h1 {
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900; color: #000; line-height: 1;
}
[data-theme="dark"] .hello-content-layer h1 { color: #fff; }
.hello-info { padding: 1.25rem 1.5rem; }

/* About intro cards */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; } }
.about-intro-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow);
}
.about-tips { font-size: .75rem; font-weight: 600; color: var(--font3); text-transform: uppercase; letter-spacing: .8px; margin-bottom: .4rem; }
.about-big { font-size: 1.5rem; font-weight: 800; line-height: 1.3; color: var(--font); margin-bottom: .4rem; }
.about-big span.hl { color: var(--main); }
.about-role { font-size: .85rem; color: var(--font2); }
.pursuit-wrap { position: relative; }
.pursuit-words {
  display: inline-flex; overflow: hidden; height: 1.5em;
  vertical-align: bottom;
}
.pursuit-word {
  display: inline-block;
  opacity: 0; transform: translateY(100%);
  position: absolute; transition: all .5s;
  color: var(--main); font-weight: 700;
}
.pursuit-word.show { opacity: 1; transform: translateY(0); }
.pursuit-word.up { opacity: 0; transform: translateY(-100%); }

/* Skills */
.skills-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.skills-icons {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem;
}
.skill-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600; color: #fff; text-align: center;
  cursor: default; transition: transform .25s;
}
.skill-icon:hover { transform: scale(1.15) rotate(-5deg); }

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.25rem;
}
@media (max-width: 500px) { .stats-row { grid-template-columns: repeat(2,1fr); } }
.stat-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; text-align: center;
  box-shadow: var(--shadow);
}
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--main); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--font3); margin-top: .3rem; }

/* Social links */
.social-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 20px;
  background: var(--main-op); color: var(--main);
  font-size: .85rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.social-link:hover { background: var(--main); color: #fff; }

/* ---------- Footer ---------- */
#footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
  transition: background .3s, border .3s;
}
.footer-logo {
  width: 48px; height: 48px; border-radius: 50%;
  margin: 0 auto .75rem; cursor: pointer; transition: transform .3s;
}
.footer-logo:hover { transform: scale(1.1) rotate(10deg); }
.footer-copy { font-size: .8rem; color: var(--font3); }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin-top: .4rem; }
.footer-links a { font-size: .78rem; color: var(--font3); }
.footer-links a:hover { color: var(--main); }
.footer-runtime { font-size: .76rem; color: var(--font3); margin-top: .5rem; }

/* ---------- Back to top ---------- */
#back-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--main); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(97,118,255,.4);
  opacity: 0; transform: translateY(10px) scale(.9);
  transition: opacity .3s, transform .3s;
  z-index: 99;
}
#back-top.show { opacity: 1; transform: translateY(0) scale(1); }
#back-top:hover { transform: translateY(-2px) scale(1.05); }
