/* enhance.css - Luliy Blog v7
   Sections:
   01  CSS Variables + Reset
   02  Background image
   03  Typography — day=black / night=white
   04  Navbar — liquid glass + collapsible
   05  Hero cluster
   06  Hero banner
   07  Progress bar
   08  Cards (home grid)
   09  Date badge
   10  Pinned section
   11  Article reading panel (default theme only)
   12  Code blocks (day + dark)
   13  Tables (day + dark)
   14  Sink / theme CSS variables
   15  Reading skins
   16  Toolbar + sink menu
   17  Lock overlay
   18  Prev/next navigation
   19  Lightbox
   20  Back-to-top
   21  Sakura / ripple
   22  Uptime
   23  Timeline / archive
   24  Responsive (mobile)
*/

/* ══════════════════════════════════════════════════════════
   01  CSS Variables + Reset
══════════════════════════════════════════════════════════ */
:root {
  --card-c1: #8250df;
  --card-c2: #0969da;
  --card-c3: #e05c8a;
  --card-c4: #f0b429;

  /* Article theme defaults */
  --th-h1:     #fff;
  --th-h1-border: 2px solid rgba(255,255,255,0.2);
  --th-h2:     #fff;
  --th-h2-bl:  4px solid rgba(255,255,255,0.4);
  --th-h2-bg:  rgba(255,255,255,0.06);
  --th-h3:     rgba(255,255,255,0.9);
  --th-h4:     rgba(255,255,255,0.85);
  --th-strong: #f0b429;
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'LXGW WenKai','LXGW WenKai Screen',sans-serif;
}

/* Force all page containers transparent so bg shows through */
html,
#content, .main,
.container, .container-xl, .container-lg,
[class*="Layout"], [class*="layout"] {
  background: transparent !important;
  background-color: transparent !important;
}

/* ══════════════════════════════════════════════════════════
   02  Background image — fixed, full viewport
══════════════════════════════════════════════════════════ */
body {
  background-image: url('https://raw.githubusercontent.com/luliy6/luliy6.github.io/refs/heads/main/static/img/bg.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

/* ══════════════════════════════════════════════════════════
   03  Typography — day=black, night=white
══════════════════════════════════════════════════════════ */

/* ── Day mode: pure black text on articles ──────────────── */
#postBody,
#postBody p, #postBody li, #postBody td, #postBody th,
#postBody span, #postBody blockquote, #postBody figcaption {
  color: #0d0d0d !important;
}
#postBody h1 { color: var(--th-h1, #111) !important; border-bottom: var(--th-h1-border, 2px solid rgba(0,0,0,0.15)); padding-bottom: 10px; margin-bottom: 20px; font-weight: 900; }
#postBody h2 { color: var(--th-h2, #111) !important; border-left: var(--th-h2-bl, 5px solid #8250df); background: var(--th-h2-bg, rgba(130,80,223,0.06)); padding: 4px 12px; border-radius: 0 8px 8px 0; font-weight: bold; }
#postBody h3 { color: var(--th-h3, #222) !important; font-weight: bold; }
#postBody h4, #postBody h5 { color: var(--th-h4, #333) !important; }
#postBody strong { color: var(--th-strong, #8250df) !important; font-weight: bold; }
#postBody a { color: #0969da !important; text-decoration: none; }
#postBody a:hover { color: #8250df !important; text-decoration: underline; }
#postBody code {
  color: #d73a49 !important;
  background: rgba(130,80,223,0.08) !important;
  border-radius: 4px; padding: 1px 6px; font-size: 0.88em; font-weight: bold;
}
#postBody blockquote {
  border-left: 4px solid rgba(130,80,223,0.5);
  background: rgba(130,80,223,0.05) !important;
  color: #444 !important;
  padding: 12px 18px; border-radius: 0 8px 8px 0; margin: 1.2em 0;
}
#postBody img { display: block; margin: 0 auto; max-width: 100%; border-radius: 8px; cursor: zoom-in; }
#postBody hr { border: 0; height: 2px; background: rgba(130,80,223,0.2); margin: 2em 0; }
#postBody { font-size: 18px; line-height: 1.9; max-width: 100%; }

/* ── Dark mode: white text ──────────────────────────────── */
[data-color-mode="dark"] #postBody,
[data-color-mode="dark"] #postBody p,
[data-color-mode="dark"] #postBody li,
[data-color-mode="dark"] #postBody td,
[data-color-mode="dark"] #postBody span,
[data-color-mode="dark"] #postBody blockquote,
[data-color-mode="dark"] #postBody figcaption {
  color: #e8e8f0 !important;
}
[data-color-mode="dark"] #postBody h1 { color: var(--th-h1, #f0f0ff) !important; }
[data-color-mode="dark"] #postBody h2 { color: var(--th-h2, #e0e0ff) !important; }
[data-color-mode="dark"] #postBody h3 { color: var(--th-h3, #d0d0f0) !important; }
[data-color-mode="dark"] #postBody a  { color: #79b8ff !important; }
[data-color-mode="dark"] #postBody a:hover { color: #cba6f7 !important; }
[data-color-mode="dark"] #postBody code { color: #f38ba8 !important; background: rgba(130,80,223,0.18) !important; }
[data-color-mode="dark"] #postBody blockquote { color: rgba(220,220,240,0.82) !important; background: rgba(130,80,223,0.10) !important; }
[data-color-mode="dark"] #postBody strong { color: var(--th-strong, #cba6f7) !important; }

/* Global non-article text (nav, uptime, etc.) */
::selection { background: #f0b429; color: #000; }
a[target='_blank']::after { content: ' \2197'; font-size: 0.75em; opacity: 0.6; }

/* ── Label tags ─────────────────────────────────────────── */
a.Label {
  display: inline-flex !important; align-items: center !important;
  padding: 1px 8px !important; border-radius: 20px !important;
  font-size: 11px !important; line-height: 18px !important; height: 20px !important;
  margin: 0 3px 3px 0 !important; vertical-align: middle !important;
  white-space: nowrap !important; text-decoration: none !important;
  font-weight: 500 !important; box-sizing: border-box !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.Label:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
a.Label * { vertical-align: middle !important; line-height: 1 !important; }

/* ══════════════════════════════════════════════════════════
   04  Navbar — liquid glass + collapsible
══════════════════════════════════════════════════════════ */
#header {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important;
  min-height: 56px !important;
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(32px) saturate(2.4) brightness(1.08) !important;
  -webkit-backdrop-filter: blur(32px) saturate(2.4) brightness(1.08) !important;
  border-top: 1px solid rgba(255,255,255,0.60) !important;
  border-bottom: 1px solid rgba(255,255,255,0.20) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 8px 36px rgba(0,0,0,0.16),
    0 1px 3px rgba(0,0,0,0.08) !important;
  padding: 0 clamp(16px, calc((100vw - 1040px)/2 + 20px), 50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  transition: background 0.4s, box-shadow 0.4s !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
[data-color-mode="dark"] #header {
  background: rgba(8,6,18,0.32) !important;
  border-top-color: rgba(255,255,255,0.10) !important;
  border-bottom-color: rgba(255,255,255,0.05) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 8px 36px rgba(0,0,0,0.60),
    0 1px 4px rgba(0,0,0,0.40) !important;
}

/* Nav text */
#header a, .title-right a, .title-right button {
  color: rgba(30,20,50,0.88) !important;
  font-weight: 600;
  text-shadow: none;
  transition: color 0.2s;
}
[data-color-mode="dark"] #header a,
[data-color-mode="dark"] .title-right a,
[data-color-mode="dark"] .title-right button { color: rgba(230,225,255,0.90) !important; }
#header a:hover, .title-right a:hover { color: #8250df !important; }
[data-color-mode="dark"] #header a:hover,
[data-color-mode="dark"] .title-right a:hover { color: #cba6f7 !important; }

/* Hide original blogTitle/avatar in header (hero cluster replaces them) */
#header .blogTitle, #header .avatar, #header .postTitle { display: none !important; }

/* .title-right — desktop: visible; mobile: hidden */
.title-right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  z-index: 10000 !important;
}

/* Hamburger button — hidden on desktop */
#luliy-nav-ham {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
  margin-left: auto;
  z-index: 10001;
}
#luliy-nav-ham span {
  display: block; width: 100%; height: 2px;
  background: rgba(30,20,50,0.85);
  border-radius: 2px;
  transition: transform 0.28s, opacity 0.28s;
}
[data-color-mode="dark"] #luliy-nav-ham span { background: rgba(220,215,255,0.90); }
#luliy-nav-ham.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#luliy-nav-ham.is-open span:nth-child(2) { opacity: 0; }
#luliy-nav-ham.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Dropdown nav panel */
#luliy-nav-dropdown {
  display: none;
  position: fixed;
  top: 56px; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border-bottom: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 12px 32px rgba(0,0,0,0.16);
  z-index: 9998;
  flex-direction: column;
  padding: 12px 20px 16px;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.24s cubic-bezier(.4,0,.2,1), opacity 0.24s;
}
[data-color-mode="dark"] #luliy-nav-dropdown {
  background: rgba(14,10,28,0.94);
  border-bottom-color: rgba(255,255,255,0.08);
}
#luliy-nav-dropdown.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.luliy-nav-item {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1e1032 !important;
  text-decoration: none !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: background 0.16s !important;
  width: 100% !important;
  text-align: left !important;
}
[data-color-mode="dark"] .luliy-nav-item { color: #e0daf8 !important; }
.luliy-nav-item:hover { background: rgba(130,80,223,0.10) !important; color: #8250df !important; }

/* ══════════════════════════════════════════════════════════
   05  Hero cluster
══════════════════════════════════════════════════════════ */
#luliy-hero-cluster {
  display: flex !important; align-items: center !important; gap: 10px !important;
  text-decoration: none !important; flex-shrink: 0;
  padding: 6px 0;
}
#luliy-hero-cluster img {
  width: 36px !important; height: 36px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.60) !important;
  box-shadow: 0 2px 8px rgba(130,80,223,0.25) !important;
  object-fit: cover !important;
  transition: box-shadow 0.3s, transform 0.3s;
}
#luliy-hero-cluster:hover img { box-shadow: 0 0 18px rgba(130,80,223,0.55) !important; transform: scale(1.06); }
#luliy-hero-info { display: flex; flex-direction: column; gap: 1px; }
#luliy-hero-name {
  font-size: 14px !important; font-weight: 800 !important;
  color: rgba(20,10,40,0.88) !important; letter-spacing: 0.4px;
}
[data-color-mode="dark"] #luliy-hero-name { color: rgba(230,225,255,0.92) !important; }
#luliy-avatar-clock {
  font-size: 10px; font-family: 'JetBrains Mono',monospace;
  color: rgba(30,20,50,0.55); letter-spacing: 0.5px;
}
[data-color-mode="dark"] #luliy-avatar-clock { color: rgba(180,175,220,0.60); }

/* ══════════════════════════════════════════════════════════
   06  Hero banner (scroll-fold)
══════════════════════════════════════════════════════════ */
#luliy-hero-banner {
  margin: 72px auto 0 auto;
  width: 95%; max-width: 1040px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 14px;
  text-align: center;
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  color: rgba(20,10,40,0.75);
  box-shadow: 0 4px 20px rgba(130,80,223,0.10);
  box-sizing: border-box;
  will-change: transform, opacity;
  position: relative; z-index: 100;
}
[data-color-mode="dark"] #luliy-hero-banner {
  background: rgba(14,10,28,0.38) !important;
  border-color: rgba(130,80,223,0.28);
  color: rgba(200,195,240,0.82);
}

/* ══════════════════════════════════════════════════════════
   07  Progress bar
══════════════════════════════════════════════════════════ */
#luliy-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #8250df, #ff6b9d, #f0b429);
  z-index: 100000; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(130,80,223,0.6);
}

/* ══════════════════════════════════════════════════════════
   08  Cards — clean, minimal, prominent border
══════════════════════════════════════════════════════════ */
#luliy-pinned-section,
.luliy-card-grid {
  max-width: 1040px;
  width: 95%;
  margin: 0 auto;
  box-sizing: border-box;
}

.luliy-card-grid {
  list-style: none;
  padding: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* Card shell */
.luliy-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /* Glass surface */
  background: rgba(255,255,255,0.68) !important;
  backdrop-filter: blur(24px) saturate(1.9) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.9) !important;
  border: 1.5px solid rgba(255,255,255,0.55) !important;
  /* Prominent top accent */
  border-top: 3.5px solid #8250df !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.12),
    0 1px 0 rgba(255,255,255,0.80) inset !important;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), box-shadow 0.28s !important;
  cursor: pointer;
  animation: luliy-cardIn 0.38s cubic-bezier(.4,0,.2,1) both;
}
/* Four accent colours cycling */
.luliy-card:nth-child(4n+1) { border-top-color: #8250df !important; }
.luliy-card:nth-child(4n+2) { border-top-color: #0969da !important; }
.luliy-card:nth-child(4n+3) { border-top-color: #e05c8a !important; }
.luliy-card:nth-child(4n+0) { border-top-color: #f0b429 !important; }

.luliy-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 18px 48px rgba(0,0,0,0.20),
    0 0 0 1.5px rgba(255,255,255,0.50) inset !important;
}
[data-color-mode="dark"] .luliy-card {
  background: rgba(18,14,34,0.72) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-color-mode="dark"] .luliy-card:hover {
  background: rgba(26,20,50,0.82) !important;
  border-color: rgba(255,255,255,0.20) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset !important;
}

/* Inner link */
.luliy-card-inner {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 14px;
  min-height: 120px;
  text-decoration: none !important; color: inherit;
  height: 100%;
}

/* Title */
.luliy-card-title {
  font-size: 15px; font-weight: 700;
  color: #111 !important;
  line-height: 1.5; word-break: break-word;
  flex: 1;
  transition: color 0.2s;
}
[data-color-mode="dark"] .luliy-card-title { color: #e8e8f8 !important; }
.luliy-card:hover .luliy-card-title { color: #8250df !important; }
[data-color-mode="dark"] .luliy-card:hover .luliy-card-title { color: #cba6f7 !important; }

/* Tags row */
.luliy-card-tags {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto;
}
.luliy-card-pill {
  display: inline-block;
  padding: 1px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  color: #fff !important; text-decoration: none;
  line-height: 18px; white-space: nowrap;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis;
  opacity: 0.92;
  transition: opacity 0.15s, transform 0.15s;
}
.luliy-card-pill:hover { opacity: 1; transform: translateY(-1px); }

/* Stagger */
@keyframes luliy-cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.luliy-card:nth-child(2)   { animation-delay: 0.05s; }
.luliy-card:nth-child(3)   { animation-delay: 0.10s; }
.luliy-card:nth-child(4)   { animation-delay: 0.15s; }
.luliy-card:nth-child(5)   { animation-delay: 0.19s; }
.luliy-card:nth-child(6)   { animation-delay: 0.23s; }
.luliy-card:nth-child(n+7) { animation-delay: 0.27s; }

/* ══════════════════════════════════════════════════════════
   09  Date badge with subtle stripe texture
══════════════════════════════════════════════════════════ */
.luliy-card-date { display: block; }
.luliy-date-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-family: 'JetBrains Mono',monospace;
  letter-spacing: 0.4px;
  color: #555 !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(130,80,223,0.04) 0px,
      rgba(130,80,223,0.04) 1px,
      transparent 1px,
      transparent 5px
    ),
    rgba(130,80,223,0.07);
  border: 1px solid rgba(130,80,223,0.16);
  padding: 2px 8px 2px 6px;
  border-radius: 6px;
  line-height: 1.5;
}
.luliy-date-badge svg { opacity: 0.7; flex-shrink: 0; }
[data-color-mode="dark"] .luliy-date-badge {
  color: rgba(200,195,240,0.75) !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(130,80,223,0.08) 0px,
      rgba(130,80,223,0.08) 1px,
      transparent 1px,
      transparent 5px
    ),
    rgba(130,80,223,0.14);
  border-color: rgba(130,80,223,0.28);
}

/* ══════════════════════════════════════════════════════════
   10  Pinned section
══════════════════════════════════════════════════════════ */
#luliy-pinned-section { margin-bottom: 28px; }
.luliy-pinned-grid {
  padding: 16px 16px 24px;
  background: rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(16px) !important;
  border: 1.5px solid rgba(240,180,41,0.38) !important;
  border-top: 3.5px solid #f0b429 !important;
  border-radius: 16px;
  box-sizing: border-box;
}
[data-color-mode="dark"] .luliy-pinned-grid {
  background: rgba(240,180,41,0.05) !important;
  border-color: rgba(240,180,41,0.24) !important;
}

/* ══════════════════════════════════════════════════════════
   11  Article reading panel — DEFAULT THEME ONLY
        (frosted glass layer behind the text)
══════════════════════════════════════════════════════════ */
body[data-luliy-theme="default"] #postBody,
body:not([data-luliy-theme]) #postBody {
  background: rgba(255,255,255,0.82) !important;
  backdrop-filter: blur(28px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.7) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  border-radius: 18px !important;
  padding: 36px 40px !important;
  margin-bottom: 48px !important;
  box-shadow: 0 6px 48px rgba(0,0,0,0.14) !important;
}
[data-color-mode="dark"] body[data-luliy-theme="default"] #postBody,
[data-color-mode="dark"] body:not([data-luliy-theme]) #postBody {
  background: rgba(12,8,24,0.72) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
/* Other themes: no panel, text directly on bg */
body[data-luliy-theme="sakura"] #postBody,
body[data-luliy-theme="classic-blue"] #postBody,
body[data-luliy-theme="mono"] #postBody,
body[data-luliy-theme="sunset"] #postBody {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 24px 0 !important;
}

/* Max-width layout */
#content, .main {
  margin: 16px auto 0 auto !important;
  padding: 0 24px !important;
  width: 95% !important;
  max-width: 1040px !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
}
.subTitle { display: none !important; }
.avatar { cursor: pointer; }
.archive-page #postBody { max-width: 700px; }
.SideNav-item .text-bold, #postBody .SideNav-item a {
  white-space: normal !important; overflow: visible !important;
  text-overflow: unset !important; word-break: break-word !important; display: block !important;
}

/* SideNav for tag page */
.SideNav-item {
  transition: all 0.25s !important;
  border-left: 3px solid transparent !important;
  background: transparent !important;
  border-radius: 6px !important;
  margin-bottom: 4px !important;
}
.SideNav-item:hover {
  background: rgba(130,80,223,0.08) !important;
  transform: translateX(5px) !important;
  border-left-color: #8250df !important;
}
[data-color-mode="dark"] .SideNav-item:hover {
  background: rgba(130,80,223,0.14) !important;
}

/* ══════════════════════════════════════════════════════════
   12  Code blocks — day=light / dark=dark
══════════════════════════════════════════════════════════ */
#postBody pre {
  position: relative;
  padding-top: 44px !important;
  overflow-x: auto; max-width: 100%;
  background: rgba(248,246,255,0.95) !important;
  border: 1px solid rgba(130,80,223,0.18) !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 16px rgba(0,0,0,0.08) !important;
  font-family: 'JetBrains Mono','Fira Code','Cascadia Code',ui-monospace,monospace;
  transition: box-shadow 0.25s, transform 0.25s;
  backdrop-filter: blur(4px);
}
#postBody pre:hover {
  box-shadow: 0 6px 28px rgba(130,80,223,0.18) !important;
  transform: translateY(-1px);
}
[data-color-mode="dark"] #postBody pre {
  background: rgba(14,12,26,0.97) !important;
  border-color: rgba(130,80,223,0.40) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.55), 0 0 40px rgba(130,80,223,0.12) !important;
}
[data-color-mode="dark"] #postBody pre:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.65), 0 0 55px rgba(130,80,223,0.22) !important;
}
/* Day: dark ink; Dark: light lavender */
#postBody pre code { color: #2d2040 !important; background: none !important; padding: 0 !important; font-weight: normal !important; }
[data-color-mode="dark"] #postBody pre code { color: #cdd6f4 !important; }

/* macOS strip */
.mac-strip {
  position: absolute; top: 0; left: 0; right: 0; height: 36px;
  display: flex; align-items: center; padding: 0 14px; gap: 7px;
  background: rgba(240,238,255,0.85);
  border-bottom: 1px solid rgba(130,80,223,0.12);
  border-radius: 14px 14px 0 0;
}
[data-color-mode="dark"] .mac-strip {
  background: rgba(22,18,40,0.92);
  border-bottom-color: rgba(130,80,223,0.28);
}
.mac-btn {
  width: 13px; height: 13px; border-radius: 50%; border: none; cursor: pointer;
  position: relative; transition: filter 0.2s, transform 0.2s; flex-shrink: 0;
}
.mac-btn:hover { filter: brightness(1.25); transform: scale(1.15); }
.mac-btn-red    { background: #ff5f57; }
.mac-btn-yellow { background: #ffbd2e; }
.mac-btn-green  { background: #28c840; }
.mac-btn::after {
  content: attr(data-tip);
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(20,16,40,0.88); color: #fff; font-size: 10px; white-space: nowrap;
  padding: 3px 8px; border-radius: 6px; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.mac-btn:hover::after { opacity: 1; }
.mac-lang {
  margin-left: auto; font-size: 11px; font-family: 'JetBrains Mono',monospace;
  color: rgba(130,80,223,0.75); letter-spacing: 0.5px; font-weight: 600;
}
[data-color-mode="dark"] .mac-lang { color: rgba(160,140,255,0.70); }
pre.is-fullscreen {
  position: fixed !important; inset: 0 !important; z-index: 99990 !important;
  border-radius: 0 !important; margin: 0 !important; overflow: auto !important;
  padding-top: 44px !important;
}

/* ══════════════════════════════════════════════════════════
   13  Tables — day / dark
══════════════════════════════════════════════════════════ */
#postBody table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: 12px; overflow: hidden; margin: 1.5em 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08), 0 0 0 1px rgba(130,80,223,0.14);
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(8px);
}
[data-color-mode="dark"] #postBody table {
  background: rgba(18,14,32,0.90);
  box-shadow: 0 2px 16px rgba(0,0,0,0.50), 0 0 0 1px rgba(130,80,223,0.22);
}
#postBody thead tr { background: linear-gradient(90deg, rgba(130,80,223,0.10), rgba(9,105,218,0.08)); }
[data-color-mode="dark"] #postBody thead tr { background: linear-gradient(90deg, rgba(130,80,223,0.26), rgba(9,105,218,0.20)); }
#postBody th {
  padding: 11px 16px; font-size: 13px; font-weight: 700;
  color: #8250df !important; text-align: left;
  border-bottom: 2px solid rgba(130,80,223,0.18);
  white-space: nowrap;
}
[data-color-mode="dark"] #postBody th { color: #cba6f7 !important; border-bottom-color: rgba(130,80,223,0.32); }
#postBody td {
  padding: 9px 16px; font-size: 14px; color: #111 !important;
  border-bottom: 1px solid rgba(130,80,223,0.07); vertical-align: top; line-height: 1.6;
}
[data-color-mode="dark"] #postBody td { color: #cdd6f4 !important; border-bottom-color: rgba(130,80,223,0.12); }
#postBody tr:last-child td { border-bottom: none; }
#postBody tbody tr:nth-child(even) { background: rgba(130,80,223,0.03); }
[data-color-mode="dark"] #postBody tbody tr:nth-child(even) { background: rgba(130,80,223,0.07); }
#postBody tbody tr:hover { background: rgba(130,80,223,0.07) !important; }
[data-color-mode="dark"] #postBody tbody tr:hover { background: rgba(130,80,223,0.15) !important; }

/* ══════════════════════════════════════════════════════════
   14  Sink / article theme CSS variables
══════════════════════════════════════════════════════════ */
/* Default */
body[data-luliy-theme="default"] {
  --th-h1: #1a0a3a; --th-h1-border: 2px solid rgba(130,80,223,0.3);
  --th-h2: #0f1e4a; --th-h2-bl: 5px solid #8250df; --th-h2-bg: rgba(130,80,223,0.06);
  --th-h3: #2a1a4a; --th-h4: #3a2a5a; --th-strong: #8250df;
}
/* Classic blue */
body[data-luliy-theme="classic-blue"] {
  --th-h1: #0a1e4a; --th-h1-border: 2px solid rgba(9,105,218,0.3);
  --th-h2: #0969da; --th-h2-bl: 5px solid #0969da; --th-h2-bg: rgba(9,105,218,0.06);
  --th-h3: #1a3a6a; --th-h4: #2a4a7a; --th-strong: #0969da;
}
/* Sakura */
body[data-luliy-theme="sakura"] {
  --th-h1: #c94070; --th-h1-border: 2px solid rgba(224,92,138,0.28);
  --th-h2: #c94070; --th-h2-bl: 5px solid #f9a8c9; --th-h2-bg: rgba(249,168,201,0.08);
  --th-h3: #d45c7e; --th-h4: #e05c8a; --th-strong: #e05c8a;
}
/* Mono */
body[data-luliy-theme="mono"] {
  --th-h1: #111; --th-h1-border: 2px solid #ccc;
  --th-h2: #222; --th-h2-bl: 5px solid #888; --th-h2-bg: rgba(0,0,0,0.04);
  --th-h3: #333; --th-h4: #444; --th-strong: #333;
}
/* Sunset */
body[data-luliy-theme="sunset"] {
  --th-h1: #7c2d12; --th-h1-border: 2px solid rgba(251,146,60,0.3);
  --th-h2: #92400e; --th-h2-bl: 5px solid #fb923c; --th-h2-bg: rgba(251,146,60,0.06);
  --th-h3: #b45309; --th-h4: #c2571a; --th-strong: #fb923c;
}

/* Dark mode overrides for all themes */
[data-color-mode="dark"] body[data-luliy-theme="default"] {
  --th-h1: #cba6f7; --th-h2: #b4befe; --th-h3: #cdd6f4; --th-h4: #bac2de; --th-strong: #cba6f7;
}
[data-color-mode="dark"] body[data-luliy-theme="classic-blue"] {
  --th-h1: #79b8ff; --th-h2: #79b8ff; --th-h3: #9ecbff; --th-strong: #79b8ff;
}
[data-color-mode="dark"] body[data-luliy-theme="sakura"] {
  --th-h1: #f9a8c9; --th-h2: #f9a8c9; --th-h3: #ffb7c5; --th-strong: #f9a8c9;
}
[data-color-mode="dark"] body[data-luliy-theme="mono"] {
  --th-h1: #e8e8e8; --th-h2: #d0d0d0; --th-h3: #c0c0c0; --th-h4: #b0b0b0; --th-strong: #ddd;
}
[data-color-mode="dark"] body[data-luliy-theme="sunset"] {
  --th-h1: #fdba74; --th-h2: #fb923c; --th-h3: #fed7aa; --th-strong: #fdba74;
}

/* ══════════════════════════════════════════════════════════
   15  Reading skins (postBody background colors)
══════════════════════════════════════════════════════════ */
body[data-skin="ocean"]  { --skin-code-bg: #0a1628; --skin-border: rgba(96,165,250,0.35); }
body[data-skin="sakura"] { --skin-code-bg: #ffe4ef; --skin-border: rgba(224,92,138,0.30); }
body[data-skin="ink"]    { --skin-code-bg: #0d0d0d; --skin-border: rgba(120,120,120,0.35); }

/* Ocean skin: dark text becomes light */
body[data-skin="ocean"] #postBody,
body[data-skin="ink"]   #postBody {
  color: #e8e8f8 !important;
}
body[data-skin="ocean"] #postBody p,
body[data-skin="ocean"] #postBody li,
body[data-skin="ocean"] #postBody td,
body[data-skin="ink"]   #postBody p,
body[data-skin="ink"]   #postBody li,
body[data-skin="ink"]   #postBody td { color: #d8d8f0 !important; }
body[data-skin="ocean"] #postBody a { color: #60a5fa !important; }
body[data-skin="ink"]   #postBody a { color: #aaa !important; }
body[data-skin="sakura"] #postBody a { color: #e05c8a !important; }

/* ══════════════════════════════════════════════════════════
   16  Floating toolbar + sink menu
══════════════════════════════════════════════════════════ */
#luliy-toolbar {
  position: fixed; bottom: 28px; right: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 9990;
}
.luliy-tb-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 0 rgba(255,255,255,0.50) inset;
  cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
.luliy-tb-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(130,80,223,0.30), 0 1px 0 rgba(255,255,255,0.60) inset;
  background: rgba(255,255,255,0.36);
}
[data-color-mode="dark"] .luliy-tb-btn {
  background: rgba(18,14,36,0.70);
  border-color: rgba(130,80,223,0.32);
  box-shadow: 0 4px 16px rgba(0,0,0,0.55);
}
.luliy-tb-btn::after {
  content: attr(data-tip);
  position: absolute; right: 52px; top: 50%; transform: translateY(-50%);
  background: rgba(20,16,40,0.90); color: #fff;
  font-size: 11px; white-space: nowrap; padding: 4px 9px; border-radius: 7px;
  pointer-events: none; opacity: 0; transition: opacity 0.18s;
}
.luliy-tb-btn:hover::after { opacity: 1; }
.luliy-tb-btn.sfx-off { opacity: 0.55; }
.luliy-tb-btn.sakura-off { opacity: 0.45; }

/* Sink menu */
#luliy-sink-menu {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; bottom: 52px; right: 0;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(130,80,223,0.20);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.20);
  backdrop-filter: blur(18px); min-width: 196px;
  z-index: 9991;
}
[data-color-mode="dark"] #luliy-sink-menu {
  background: rgba(18,14,36,0.97);
  border-color: rgba(130,80,223,0.35);
  box-shadow: 0 14px 40px rgba(0,0,0,0.60);
}
#luliy-sink-menu.is-open { display: flex; }
.luliy-sink-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; border: none;
  background: transparent; cursor: pointer; font-family: inherit; text-align: left;
  transition: background 0.15s;
}
.luliy-sink-opt:hover { background: rgba(130,80,223,0.10); }
.luliy-sink-opt.is-active { background: rgba(130,80,223,0.16); }
[data-color-mode="dark"] .luliy-sink-opt:hover  { background: rgba(130,80,223,0.20); }
[data-color-mode="dark"] .luliy-sink-opt.is-active { background: rgba(130,80,223,0.28); }
.luliy-sink-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,0.5); }
.luliy-sink-info { display: flex; flex-direction: column; gap: 1px; }
.luliy-sink-name { font-size: 13px; font-weight: 700; color: #1e1032; line-height: 1.3; }
[data-color-mode="dark"] .luliy-sink-name { color: #cdd6f4; }
.luliy-sink-opt.is-active .luliy-sink-name { color: #8250df; }
[data-color-mode="dark"] .luliy-sink-opt.is-active .luliy-sink-name { color: #cba6f7; }
.luliy-sink-desc { font-size: 10px; color: #888; line-height: 1.2; white-space: nowrap; }
[data-color-mode="dark"] .luliy-sink-desc { color: #6c7086; }

/* ══════════════════════════════════════════════════════════
   17  Lock overlay
══════════════════════════════════════════════════════════ */
#luliy-lock-overlay {
  position: fixed; inset: 0;
  background: rgba(10,6,24,0.72);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99995;
}
.luliy-lock-box {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(130,80,223,0.22);
  border-radius: 20px; padding: 40px 36px;
  text-align: center; max-width: 340px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
[data-color-mode="dark"] .luliy-lock-box {
  background: rgba(18,14,36,0.97);
  border-color: rgba(130,80,223,0.40);
}
.luliy-lock-icon  { font-size: 44px; display: block; margin-bottom: 12px; }
.luliy-lock-title { font-size: 20px; font-weight: 800; color: #1e1032; margin-bottom: 6px; }
.luliy-lock-hint  { font-size: 13px; color: #888; margin-bottom: 20px; }
[data-color-mode="dark"] .luliy-lock-title { color: #cdd6f4; }
[data-color-mode="dark"] .luliy-lock-hint  { color: #6c7086; }
.luliy-lock-input {
  width: 100%; padding: 11px 16px; border-radius: 12px;
  border: 1.5px solid rgba(130,80,223,0.30);
  background: rgba(130,80,223,0.05);
  font-size: 16px; text-align: center; outline: none;
  margin-bottom: 14px; transition: border-color 0.2s;
  color: #1e1032;
}
[data-color-mode="dark"] .luliy-lock-input { background: rgba(130,80,223,0.12); color: #cdd6f4; border-color: rgba(130,80,223,0.40); }
.luliy-lock-input:focus { border-color: #8250df; }
.luliy-lock-input.is-wrong { border-color: #e74c3c; animation: luliy-shake 0.3s; }
@keyframes luliy-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.luliy-lock-btn {
  width: 100%; padding: 12px; border-radius: 12px; border: none;
  background: linear-gradient(90deg,#8250df,#0969da);
  color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: opacity 0.2s, transform 0.2s;
}
.luliy-lock-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.luliy-lock-err { font-size: 13px; color: #e74c3c; margin-top: 10px; min-height: 18px; }

/* ══════════════════════════════════════════════════════════
   18  Prev / Next navigation
══════════════════════════════════════════════════════════ */
.luliy-prevnext {
  display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap;
}
.luliy-prevnext a {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; border-radius: 12px;
  text-decoration: none !important;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 3px 14px rgba(0,0,0,0.10);
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
  color: inherit;
}
.luliy-prevnext a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.24);
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
}
[data-color-mode="dark"] .luliy-prevnext a { background: rgba(18,14,36,0.55); border-color: rgba(255,255,255,0.10); }
[data-color-mode="dark"] .luliy-prevnext a:hover { background: rgba(28,22,50,0.75); }
.pn-label { font-size: 11px; color: rgba(130,80,223,0.80); font-weight: 600; letter-spacing: 0.4px; }
.pn-title  { font-size: 14px; font-weight: 700; color: #1e1032; line-height: 1.4; }
[data-color-mode="dark"] .pn-title { color: #cdd6f4; }

/* ══════════════════════════════════════════════════════════
   19  Lightbox
══════════════════════════════════════════════════════════ */
#luliy-lightbox {
  position: fixed; inset: 0; z-index: 99996;
  background: rgba(0,0,0,0.88); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
#luliy-lightbox.is-open { opacity: 1; pointer-events: all; }
#luliy-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.60); }
#luliy-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.30);
  color: #fff; font-size: 22px; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#luliy-lightbox-close:hover { background: rgba(255,255,255,0.32); }

/* ══════════════════════════════════════════════════════════
   20  Back-to-top
══════════════════════════════════════════════════════════ */
#luliy-back-top {
  position: fixed; bottom: 130px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(130,80,223,0.22);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(130,80,223,0.35);
  color: #8250df; font-size: 20px; font-weight: bold;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s, transform 0.28s;
  z-index: 9989;
}
#luliy-back-top.is-visible { opacity: 1; pointer-events: all; }
#luliy-back-top:hover { transform: translateY(-3px); background: rgba(130,80,223,0.35); }

/* ══════════════════════════════════════════════════════════
   21  Sakura / ripple
══════════════════════════════════════════════════════════ */
#luliy-sakura-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0.55; }
#luliy-theme-ripple  { position: fixed; border-radius: 50%; transform: scale(0); pointer-events: none; z-index: 99998; transition: none; }

/* ══════════════════════════════════════════════════════════
   22  Uptime
══════════════════════════════════════════════════════════ */
#luliy-uptime {
  text-align: center; font-size: 13px;
  color: rgba(255,255,255,0.65);
  padding: 12px 0; margin-top: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.30);
}
[data-color-mode="dark"] #luliy-uptime { color: rgba(180,175,220,0.60); }

/* ══════════════════════════════════════════════════════════
   23  Timeline / archive
══════════════════════════════════════════════════════════ */
.tl-year { font-size: 22px; font-weight: 800; color: #8250df; margin: 28px 0 10px; padding-left: 16px; border-left: 4px solid #8250df; }
[data-color-mode="dark"] .tl-year { color: #cba6f7; border-left-color: #cba6f7; }
.tl-list { list-style: none; padding: 0; margin: 0 0 16px; }
.tl-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-radius: 8px; margin-bottom: 4px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.20);
  transition: background 0.2s, transform 0.2s;
}
.tl-item:hover { background: rgba(255,255,255,0.20); transform: translateX(4px); }
.tl-item a { text-decoration: none; font-weight: 600; color: #1e1032; flex: 1; }
[data-color-mode="dark"] .tl-item a { color: #cdd6f4; }
.tl-date { font-size: 12px; color: #888; font-family: 'JetBrains Mono',monospace; margin-left: 12px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   24  Responsive (mobile)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Show hamburger, hide title-right on mobile */
  #luliy-nav-ham { display: flex !important; }
  .title-right { display: none !important; }

  #content, .main { padding: 0 12px !important; }
  #luliy-hero-banner { margin-top: 64px; font-size: 12px; padding: 12px 16px; }

  .luliy-card-grid { grid-template-columns: 1fr; }
  .luliy-prevnext { flex-direction: column; }

  body[data-luliy-theme="default"] #postBody,
  body:not([data-luliy-theme]) #postBody {
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }

  #postBody { font-size: 16px !important; line-height: 1.82 !important; }
  #postBody h1 { font-size: 1.5rem !important; }
  #postBody h2 { font-size: 1.2rem !important; }
  #postBody pre { font-size: 13px !important; }

  #luliy-toolbar { right: 10px; bottom: 20px; }
  #luliy-back-top { right: 14px; bottom: 120px; }

  .luliy-tb-btn::after { display: none; }
}
