/*
Theme Name: KFCAI Liquid Glass
Theme URI: https://www.kfcai.cn/
Author: OpenAI
Author URI: https://openai.com/
Description: 一套为中文技术博客设计的 Apple-inspired 液态玻璃 WordPress 主题，包含首页、文章详情、归档、搜索、评论、目录、热门标签与作者信息组件。
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kfcai-liquid-glass
Tags: blog, custom-logo, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, custom-colors
*/

:root {
  --lg-bg: #eaf5ff;
  --lg-bg-2: #f7fbff;
  --lg-text: #0b1b38;
  --lg-muted: #60708a;
  --lg-muted-2: #8a9ab2;
  --lg-primary: #0875ff;
  --lg-primary-2: #55c9ff;
  --lg-primary-3: #7a7cff;
  --lg-success: #35c88a;
  --lg-warning: #ffb350;
  --lg-danger: #ff6d8a;
  --lg-glass: rgba(255,255,255,.68);
  --lg-glass-strong: rgba(255,255,255,.84);
  --lg-glass-soft: rgba(255,255,255,.48);
  --lg-border: rgba(255,255,255,.88);
  --lg-border-soft: rgba(120,162,220,.22);
  --lg-shadow: 0 24px 68px rgba(54, 103, 160, .15), 0 8px 22px rgba(62, 117, 180, .07);
  --lg-shadow-soft: 0 12px 30px rgba(45, 96, 155, .10);
  --lg-radius-xl: 34px;
  --lg-radius-lg: 26px;
  --lg-radius-md: 18px;
  --lg-radius-sm: 12px;
  --lg-width: 1480px;
  --lg-header-height: 66px;
  --lg-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --lg-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-lg-theme="dark"] {
  --lg-bg: #07111f;
  --lg-bg-2: #0c1627;
  --lg-text: #eff6ff;
  --lg-muted: #a7b5cd;
  --lg-muted-2: #7f8da6;
  --lg-glass: rgba(18, 30, 50, .66);
  --lg-glass-strong: rgba(25, 39, 62, .78);
  --lg-glass-soft: rgba(15, 27, 45, .45);
  --lg-border: rgba(255,255,255,.16);
  --lg-border-soft: rgba(255,255,255,.10);
  --lg-shadow: 0 22px 70px rgba(0,0,0,.35), 0 6px 20px rgba(0,0,0,.20);
  --lg-shadow-soft: 0 12px 34px rgba(0,0,0,.25);
}

/* ── Apple-style entrance animations ── */
@keyframes lg-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lg-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lg-scaleUp {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  container: lg-page / inline-size;
  color: var(--lg-text);
  font-family: var(--lg-sans);
  font-size: 16px;
  line-height: 1.72;
  background:
    radial-gradient(circle at 12% 9%, rgba(0, 126, 255, .22), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(108, 114, 255, .18), transparent 32%),
    radial-gradient(circle at 80% 82%, rgba(0, 205, 255, .16), transparent 36%),
    linear-gradient(135deg, var(--lg-bg), var(--lg-bg-2) 50%, #eef8ff);
  background-attachment: fixed;
  overflow-x: hidden;
}
html[data-lg-layout="mobile"] body {
  width: min(430px, 100%);
  margin-inline: auto;
}
html[data-lg-layout="desktop"] body {
  min-width: 1241px;
  overflow-x: auto;
}
body.admin-bar .lg-header { top: 48px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lg-primary); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(8,117,255,.2); }

.lg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.lg-ambient::before,
.lg-ambient::after {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  filter: blur(52px);
  opacity: .35;
  transform: translateZ(0);
}
.lg-ambient::before {
  left: -12vw;
  bottom: -18vw;
  background: conic-gradient(from 160deg, rgba(0,117,255,.52), rgba(96,218,255,.28), rgba(255,255,255,.2), rgba(0,117,255,.52));
}
.lg-ambient::after {
  right: -16vw;
  top: 18vh;
  background: conic-gradient(from 90deg, rgba(112,126,255,.34), rgba(0,205,255,.32), rgba(255,255,255,.26), rgba(112,126,255,.34));
}
.lg-dot-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .72;
  mix-blend-mode: multiply;
}
html[data-lg-theme="dark"] .lg-dot-field {
  opacity: .58;
  mix-blend-mode: screen;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 18px;
  top: 18px;
  width: auto;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--lg-text);
  background: var(--lg-glass-strong);
  box-shadow: var(--lg-shadow);
}

.lg-site {
  position: relative;
  z-index: 1;
  width: min(var(--lg-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
}
.glass-card,
.lg-widget,
.lg-nav,
.lg-footer,
.lg-article,
.comments-area,
.lg-page-card {
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.54));
  border: 1px solid var(--lg-border);
  box-shadow: var(--lg-shadow);
  backdrop-filter: blur(34px) saturate(180%);
  -webkit-backdrop-filter: blur(34px) saturate(180%);
}
html[data-lg-theme="dark"] .glass-card,
html[data-lg-theme="dark"] .lg-widget,
html[data-lg-theme="dark"] .lg-nav,
html[data-lg-theme="dark"] .lg-footer,
html[data-lg-theme="dark"] .lg-article,
html[data-lg-theme="dark"] .comments-area,
html[data-lg-theme="dark"] .lg-page-card {
  background: linear-gradient(135deg, rgba(25,39,62,.78), rgba(20,32,52,.54));
}
.lg-glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-text);
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.42));
  box-shadow: 0 10px 28px rgba(56, 102, 165, .12), inset 0 1px 0 rgba(255,255,255,.95);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.lg-glass-button:hover,
.lg-glass-button:focus-visible {
  color: var(--lg-primary);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(56, 102, 165, .18), inset 0 1px 0 rgba(255,255,255,.96);
}
.lg-glass-button svg { width: 18px; height: 18px; }

/* Header */
.lg-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  margin-bottom: 36px;
}
.lg-nav {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: var(--lg-header-height);
  padding: 10px 14px 10px 24px;
  border-radius: 30px;
}
.lg-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
  padding-right: 20px;
  border-right: 1px solid var(--lg-border-soft);
  font-weight: 800;
  font-size: 1.58rem;
  letter-spacing: 0;
  line-height: 1;
  color: var(--lg-primary);
}
.lg-brand img { max-height: 42px; width: auto; }
.lg-menu-wrap { min-width: 180px; }
.lg-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.lg-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 700;
  color: var(--lg-muted);
  transition: .22s ease;
}
.lg-menu .current-menu-item > a,
.lg-menu .current_page_item > a,
.lg-menu a:hover {
  color: var(--lg-primary);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 22px rgba(8,117,255,.10);
}
.lg-menu .current-menu-item > a::after,
.lg-menu .current_page_item > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--lg-primary);
  transform: translateX(-50%);
}
.lg-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.lg-header-search {
  justify-self: end;
  width: min(430px, 100%);
}
.lg-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.lg-search-form input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 64px 0 46px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-text);
  outline: 0;
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 22px rgba(60,104,166,.08);
  transition: box-shadow .22s ease, border .22s ease, background .22s ease;
}
.lg-search-form input[type="search"]:focus {
  border-color: rgba(8,117,255,.45);
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 0 5px rgba(8,117,255,.10), inset 0 1px 0 rgba(255,255,255,.98);
}
.lg-search-form .lg-search-icon {
  position: absolute;
  left: 18px;
  width: 18px;
  height: 18px;
  color: var(--lg-muted-2);
  pointer-events: none;
}
.lg-search-form button[type="submit"] {
  display: none;
}
.lg-search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 32px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--lg-muted-2);
  font-size: .78rem;
  font-weight: 700;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(126,154,196,.18);
  pointer-events: none;
}
.lg-tool-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 22px rgba(60,104,166,.08);
}
.lg-segment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--lg-muted);
  background: transparent;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.lg-segment-button:hover,
.lg-segment-button.is-active {
  color: var(--lg-primary);
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 6px 14px rgba(62,112,170,.08);
}
.lg-segment-button:active { transform: scale(.96); }
.lg-segment-button svg { width: 17px; height: 17px; }
.lg-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-muted);
  background: rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 22px rgba(60,104,166,.08);
}
.lg-icon-button:hover { color: var(--lg-primary); }
.lg-icon-button svg { width: 19px; height: 19px; }
.lg-mobile-toggle { display: none; }

/* Layouts */
.lg-home-grid,
.lg-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}
.lg-main-column { min-width: 0; }
.lg-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
  align-content: start;
}
.lg-sidebar > *,
.lg-left-rail > *,
.lg-right-rail > * {
  min-width: 0;
  width: 100%;
}
.lg-widget {
  border-radius: var(--lg-radius-lg);
  padding: 24px;
}
.lg-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 16px;
}
.lg-widget__head h2,
.lg-widget__head h3 {
  min-width: 0;
}
.lg-widget__head > svg {
  box-sizing: content-box;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 9px;
  border-radius: 999px;
  color: var(--lg-muted);
  background: rgba(255,255,255,.56);
  border: 1px solid var(--lg-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(62,112,170,.06);
}
.lg-widget h2,
.lg-widget h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}
.lg-widget__link { color: var(--lg-muted); font-size: .86rem; font-weight: 700; }

/* Hero */
.lg-hero {
  position: relative;
  overflow: hidden;
  min-height: 316px;
  border-radius: 36px;
  padding: 0;
  isolation: isolate;
}
.lg-hero__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.lg-hero__slide {
  position: absolute;
  inset: 0;
  padding: 44px 48px;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px) scale(.98);
  transition: opacity .65s cubic-bezier(.16, 1, .3, 1),
              transform .65s cubic-bezier(.16, 1, .3, 1);
  isolation: isolate;
}
.lg-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.lg-hero__slide::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0,139,255,.82), rgba(91,201,255,.28) 50%, rgba(255,255,255,.48));
}
.lg-hero .lg-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  transform: scale(1.03);
  opacity: .95;
}
.lg-hero__content {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,74,153,.22);
}
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 13px;
  max-width: max-content;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lg-eyebrow svg { width: 14px; height: 14px; flex: 0 0 auto; }
.lg-hero h1 {
  margin: 20px 0 14px;
  font-size: 2.38rem;
  line-height: 1.18;
  letter-spacing: 0;
}
.lg-hero p {
  max-width: 540px;
  margin: 0 0 22px;
  font-size: 1.04rem;
  color: rgba(255,255,255,.92);
}
.lg-hero .lg-glass-button {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.14));
  border-color: rgba(255,255,255,.44);
}
.lg-hero .lg-glass-button:hover { color: #fff; }
.lg-hero__dots {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 3;
}
.lg-hero__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  box-shadow: none;
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease, opacity .25s ease;
}
.lg-hero__dots button:hover,
.lg-hero__dots button:focus-visible {
  opacity: .9;
  outline: none;
}
.lg-hero__dots button.is-active { width: 28px; background: #fff; }

/* Hero entrance animation (initial load only — scoped to pre-entered state) */
.lg-hero {
  animation: lg-scaleUp .7s cubic-bezier(.16, 1, .3, 1) both;
}
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active .lg-eyebrow,
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active h1,
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active p,
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active .lg-glass-button {
  animation: lg-fadeUp .6s cubic-bezier(.16, 1, .3, 1) both;
}
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active .lg-eyebrow  { animation-delay: .18s; }
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active h1           { animation-delay: .30s; }
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active p            { animation-delay: .42s; }
.lg-hero:not(.lg-hero--entered) .lg-hero__slide.is-active .lg-glass-button { animation-delay: .52s; }

/* Carousel slide content stagger on switch */
.lg-hero__slide .lg-eyebrow,
.lg-hero__slide h1,
.lg-hero__slide p,
.lg-hero__slide .lg-glass-button {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.16, 1, .3, 1),
              transform .5s cubic-bezier(.16, 1, .3, 1);
}
.lg-hero__slide.is-active .lg-eyebrow  { transition-delay: .08s; }
.lg-hero__slide.is-active h1           { transition-delay: .16s; }
.lg-hero__slide.is-active p            { transition-delay: .24s; }
.lg-hero__slide.is-active .lg-glass-button { transition-delay: .32s; }
.lg-hero__slide.is-active .lg-eyebrow,
.lg-hero__slide.is-active h1,
.lg-hero__slide.is-active p,
.lg-hero__slide.is-active .lg-glass-button {
  opacity: 1;
  transform: translateY(0);
}

/* Abstract covers */
.lg-cover {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 120px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 25% 30%, rgba(255,255,255,.86), transparent 24%),
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.46), transparent 14%),
    linear-gradient(135deg, #77d5ff, #0b7cff 52%, #99f5ff);
}
.lg-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lg-cover--1 { background: radial-gradient(circle at 28% 34%, rgba(255,255,255,.86), transparent 24%), radial-gradient(circle at 72% 22%, rgba(255,255,255,.5), transparent 16%), linear-gradient(135deg, #c7d8ff, #56b7ff 52%, #a7fff5); }
.lg-cover--2 { background: radial-gradient(circle at 74% 28%, rgba(255,255,255,.75), transparent 22%), linear-gradient(135deg, #1ac7d9, #6fe5ff 45%, #e7fbff); }
.lg-cover--3 { background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.9), transparent 22%), linear-gradient(135deg, #c4ccff, #7b79ff 48%, #ffdbf8); }
.lg-cover--4 { background: radial-gradient(circle at 58% 35%, rgba(255,255,255,.6), transparent 20%), linear-gradient(135deg, #c8edff, #83c9ff 48%, #eefaff); }
.lg-cover--5 { background: radial-gradient(circle at 22% 28%, rgba(255,255,255,.7), transparent 20%), linear-gradient(135deg, #a4ffef, #2bc8df 48%, #d8fff8); }
.lg-cover--6 { background: radial-gradient(circle at 70% 28%, rgba(255,255,255,.85), transparent 18%), linear-gradient(135deg, #b7ecff, #54bcff 44%, #fff1d9); }
.lg-cover--7 { background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.82), transparent 20%), linear-gradient(135deg, #84f3e9, #207cff 54%, #b0fff7); }
.lg-cover__wave,
.lg-cover__orb,
.lg-cover__line {
  position: absolute;
  pointer-events: none;
}
.lg-cover__wave {
  left: -12%;
  right: -12%;
  bottom: -38%;
  height: 86%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(95deg, rgba(255,255,255,.78), rgba(255,255,255,.18) 46%, rgba(225,247,255,.74));
  transform: rotate(-8deg);
  filter: blur(.2px);
}
.lg-cover__wave::before,
.lg-cover__wave::after {
  content: "";
  position: absolute;
  left: 8%;
  right: -4%;
  height: 44%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: rotate(8deg);
}
.lg-cover__wave::before { top: 18%; }
.lg-cover__wave::after { top: 38%; opacity: .55; transform: rotate(-3deg); }
.lg-cover__orb {
  width: 68px;
  height: 68px;
  right: 13%;
  top: 18%;
  border-radius: 999px;
  background: radial-gradient(circle at 28% 24%, rgba(255,255,255,.95), rgba(255,255,255,.22) 48%, rgba(57,148,255,.2) 72%, rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: inset 0 1px 8px rgba(255,255,255,.8), 0 12px 28px rgba(9,80,166,.12), -210px 18px 0 -48px rgba(255,255,255,.48), -118px -24px 0 -54px rgba(255,255,255,.62);
}
.lg-cover__line {
  left: 10%;
  right: 10%;
  bottom: 26%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transform: rotate(-10deg);
}

/* Filter bar and feed */
.lg-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 10px;
  overflow-x: auto;
  border-radius: 28px;
  background: rgba(255,255,255,.40);
  border: 1px solid var(--lg-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  animation: lg-fadeUp .6s cubic-bezier(.16, 1, .3, 1) .25s both;
}
.lg-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--lg-muted);
  font-size: .92rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255,255,255,.54);
  border: 1px solid var(--lg-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(62,112,170,.06);
  transition: .22s ease;
}
.lg-chip:hover,
.lg-chip.is-active {
  color: var(--lg-primary);
  background: rgba(255,255,255,.82);
  transform: translateY(-1px);
}
.lg-chip svg { width: 17px; height: 17px; }
.lg-feed {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 30px;
  background: rgba(255,255,255,.36);
  border: 1px solid var(--lg-border-soft);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  animation: lg-fadeUp .6s cubic-bezier(.16, 1, .3, 1) .35s both;
}
/* Post card scroll-reveal animation */
.lg-post-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 238px 34px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 6px 20px 6px 6px;
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(45, 96, 155, .08), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  opacity: 0;
  transform: translateY(20px);
}
.lg-post-card::before,
.lg-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease, transform .46s ease;
}
.lg-post-card::before {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.84), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(85,201,255,.26), transparent 32%);
  transform: scale(.96);
}
.lg-post-card::after {
  z-index: 2;
  background: linear-gradient(112deg, transparent 8%, rgba(255,255,255,.42) 34%, rgba(85,201,255,.20) 46%, transparent 64%);
  transform: translateX(-46%);
}
.lg-post-card > * {
  position: relative;
  z-index: 1;
}
.lg-post-card:hover,
.lg-post-card:focus-within {
  background: rgba(255,255,255,.26);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(45, 96, 155, .14), inset 0 1px 0 rgba(255,255,255,.92);
}
.lg-post-card:hover::before,
.lg-post-card:focus-within::before {
  opacity: .85;
  transform: scale(1);
}
.lg-post-card:hover::after,
.lg-post-card:focus-within::after {
  opacity: .5;
  transform: translateX(36%);
}
html[data-lg-theme="dark"] .lg-post-card:hover,
html[data-lg-theme="dark"] .lg-post-card:focus-within {
  background: rgba(255,255,255,.06);
}
html[data-lg-theme="dark"] .lg-post-card::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(85,201,255,.20), transparent 34%);
}
html[data-lg-theme="dark"] .lg-post-card::after {
  background: linear-gradient(112deg, transparent 8%, rgba(255,255,255,.18) 34%, rgba(85,201,255,.16) 46%, transparent 64%);
}
/* Scroll-reveal visible state */
.lg-post-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s cubic-bezier(.16, 1, .3, 1) var(--card-delay, 0s),
              transform .55s cubic-bezier(.16, 1, .3, 1) var(--card-delay, 0s),
              box-shadow .22s ease,
              background .22s ease;
}
.lg-post-card.is-visible:hover,
.lg-post-card.is-visible:focus-within {
  transform: translateY(-2px);
}
.lg-post-card__cover { height: 72px; min-height: 72px; border-radius: 18px; }
.lg-post-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--lg-primary), #75c8ff);
  box-shadow: 0 8px 18px rgba(8,117,255,.22);
}
.lg-post-card__body { min-width: 0; }
.lg-post-card__title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
}
.lg-post-card__title a { color: var(--lg-text); }
.lg-post-card__title a:hover { color: var(--lg-primary); }
.lg-post-card__excerpt {
  display: none;
  margin: 0 0 6px;
  color: var(--lg-muted);
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lg-post-card__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  justify-content: flex-end;
  color: var(--lg-muted-2);
  font-weight: 700;
  font-size: .85rem;
}
.lg-post-card__views svg { width: 15px; height: 15px; flex: 0 0 auto; }
.lg-feed.is-compact .lg-post-card {
  grid-template-columns: 96px 30px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 5px 16px 5px 5px;
}
.lg-feed.is-compact .lg-post-card__cover { height: 56px; min-height: 56px; border-radius: 15px; }
.lg-feed.is-compact .lg-post-card__title { font-size: 1rem; }
.lg-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--lg-muted-2);
  font-size: .84rem;
  font-weight: 600;
}
.lg-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lg-meta__item svg { width: 15px; height: 15px; }
.lg-mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--lg-primary);
  background: rgba(8,117,255,.10);
}

/* Author and widgets */
.lg-author-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--lg-radius-xl);
  padding: 28px;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1),
              border-color .34s ease,
              box-shadow .34s ease;
}
.lg-author-card > :not(.lg-author-card__open) {
  position: relative;
  z-index: 1;
}
.lg-author-card::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -38%;
  z-index: 0;
  width: 38%;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 16%,
    rgba(255,255,255,.06) 38%,
    rgba(255,255,255,.34) 50%,
    rgba(85,201,255,.13) 62%,
    transparent 84%
  );
  transform: translate3d(-140%, 0, 0) rotate(8deg);
  transition: transform .78s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
  pointer-events: none;
}
.lg-author-card__open {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--lg-text);
  background: rgba(255,255,255,.54);
  border: 1px solid var(--lg-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(60,104,166,.08);
  transition: color .22s ease, transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.lg-author-card__open:hover,
.lg-author-card__open:focus-visible {
  color: var(--lg-primary);
  transform: translateY(-2px);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 12px 24px rgba(60,104,166,.12);
}
.lg-author-card__open svg { width: 17px; height: 17px; }
.lg-author-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 210px;
  height: 210px;
  z-index: 0;
  border-radius: 50%;
  opacity: .82;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.78), rgba(92,197,255,.18) 50%, transparent 70%);
  transform-origin: 70% 70%;
  transition: transform .62s cubic-bezier(.16, 1, .3, 1), opacity .3s ease;
  pointer-events: none;
}
.lg-author-card__top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 46px;
}
.lg-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--lg-border);
  background: linear-gradient(135deg, #dff7ff, #0b7cff 62%, #cdfcff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(8,117,255,.18);
  transition: transform .34s cubic-bezier(.16, 1, .3, 1), box-shadow .34s ease, border-color .34s ease;
}
.lg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-avatar::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.92), transparent 24%), linear-gradient(145deg, transparent 48%, rgba(255,255,255,.55) 49%, transparent 63%);
}
.lg-avatar--small { width: 58px; height: 58px; }
.lg-author-card h2,
.lg-author-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: 0;
}
.lg-author-card p {
  margin: 0;
  color: var(--lg-muted);
  font-size: .94rem;
  line-height: 1.65;
}
.lg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,.45);
  border: 1px solid var(--lg-border);
}
.lg-stat {
  padding: 14px 8px;
  text-align: center;
}
.lg-stat + .lg-stat { border-left: 1px solid var(--lg-border-soft); }
.lg-stat strong {
  display: block;
  color: var(--lg-text);
  font-size: 1.18rem;
  line-height: 1.2;
}
.lg-stat span {
  color: var(--lg-muted);
  font-size: .78rem;
  font-weight: 700;
}
.lg-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.lg-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 18px;
  color: var(--lg-muted);
  background: rgba(255,255,255,.50);
  border: 1px solid var(--lg-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 18px rgba(62,112,170,.06);
  transition: color .22s ease, transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.lg-socials a:hover,
.lg-socials a:focus-visible {
  color: var(--lg-primary);
  transform: translateY(-2px) scale(1.02);
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 12px 22px rgba(62,112,170,.10);
}
.lg-socials svg { width: 20px; height: 20px; }
.lg-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lg-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 12px;
  color: var(--lg-primary);
  font-size: .82rem;
  font-weight: 800;
  background: rgba(255,255,255,.52);
  border: 1px solid var(--lg-border);
}
.lg-tag-pill span { color: var(--lg-muted-2); font-weight: 700; }
.lg-activity-list,
.lg-archive-list,
.lg-side-list,
.lg-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}
.lg-activity-list li,
.lg-archive-list li,
.lg-side-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  color: var(--lg-muted);
  font-size: .9rem;
}
.lg-activity-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lg-primary);
  box-shadow: 0 0 0 5px rgba(8,117,255,.08);
}
.lg-activity-list a,
.lg-archive-list a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lg-count {
  flex: 0 0 auto;
  color: var(--lg-muted-2);
  font-weight: 800;
  white-space: nowrap;
}

/* Archive/search cards */
.lg-page-card {
  border-radius: var(--lg-radius-xl);
  padding: 34px;
  margin-bottom: 18px;
}
.lg-page-card .lg-eyebrow { color: var(--lg-primary); background: rgba(8,117,255,.08); border-color: rgba(8,117,255,.16); text-shadow: none; }
.lg-page-title {
  margin: 12px 0 0;
  font-size: 2.35rem;
  line-height: 1.14;
  letter-spacing: 0;
}
.lg-page-description { color: var(--lg-muted); max-width: 760px; margin: 12px 0 0; }

/* Single */
.lg-single-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.lg-left-rail,
.lg-right-rail {
  position: sticky;
  top: calc(var(--lg-header-height) + 48px);
  display: grid;
  gap: 18px;
}
.lg-left-rail .lg-author-card { padding: 24px 20px; text-align: center; }
.lg-left-rail .lg-author-card__open { display: none; }
.lg-left-rail .lg-author-card__top { flex-direction: column; gap: 12px; padding-right: 0; }
.lg-left-rail .lg-stats { margin-top: 18px; }
.lg-side-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 13px;
  color: var(--lg-muted);
  font-weight: 800;
  font-size: .9rem;
}
.lg-side-menu a:hover,
.lg-side-menu .is-active { color: var(--lg-primary); background: rgba(8,117,255,.10); }
.lg-side-menu svg { width: 17px; height: 17px; }
.lg-article {
  border-radius: var(--lg-radius-xl);
  padding: 36px 42px;
  min-width: 0;
}
.lg-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--lg-muted-2);
  font-size: .86rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.lg-article__header { text-align: center; margin-bottom: 24px; }
.lg-article__title {
  margin: 0 auto 14px;
  max-width: 900px;
  font-size: 2rem;
  line-height: 1.24;
  letter-spacing: 0;
}
.lg-article__summary {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--lg-muted);
  font-size: 1rem;
}
.lg-article__meta { justify-content: center; }
.lg-article__hero {
  min-height: 156px;
  aspect-ratio: 4.65 / 1;
  margin: 26px 0 28px;
  border-radius: 26px;
}
.entry-content {
  color: color-mix(in srgb, var(--lg-text) 92%, var(--lg-muted));
  font-size: 1.02rem;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  scroll-margin-top: 120px;
  letter-spacing: 0;
  line-height: 1.28;
}
.entry-content h2 {
  position: relative;
  margin: 38px 0 14px;
  padding-left: 18px;
  font-size: 1.55rem;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .22em;
  width: 5px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(var(--lg-primary), var(--lg-primary-2));
}
.entry-content h3 { margin: 28px 0 12px; font-size: 1.24rem; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content a { color: var(--lg-primary); font-weight: 700; }
.entry-content ul,
.entry-content ol { padding-left: 1.35em; }
.entry-content li + li { margin-top: .45em; }
.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--lg-primary);
  border-radius: 18px;
  color: var(--lg-muted);
  background: rgba(8,117,255,.08);
}
.entry-content pre,
.entry-content code {
  font-family: var(--lg-mono);
}
.entry-content code {
  padding: .12em .38em;
  border-radius: 7px;
  color: #d73a69;
  background: rgba(8,117,255,.08);
}
.entry-content pre {
  position: relative;
  overflow: auto;
  margin: 24px 0;
  padding: 48px 20px 18px;
  border-radius: 18px;
  color: #d7e8ff;
  background:
    linear-gradient(135deg, rgba(13,31,55,.94), rgba(20,47,78,.88)),
    radial-gradient(circle at 18% 0%, rgba(75,170,255,.18), transparent 34%);
  border: 1px solid rgba(150,194,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(35,76,126,.16);
}
.entry-content pre::before {
  content: attr(data-lg-code-language);
  position: absolute;
  top: 14px;
  left: 18px;
  color: rgba(215,232,255,.56);
  font-family: var(--lg-sans);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.entry-content pre code {
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  white-space: pre;
}
.lg-token-comment { color: #7f95b5; font-style: italic; }
.lg-token-keyword { color: #7bb7ff; font-weight: 800; }
.lg-token-string { color: #9ee6b8; }
.lg-token-number { color: #ffc777; }
.lg-token-function { color: #c3a6ff; }
.lg-token-attr { color: #8ed4ff; }
.lg-code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-width: 58px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(207,226,255,.28);
  border-radius: 999px;
  color: #eaf4ff;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  font-size: .78rem;
  font-weight: 800;
}
.lg-code-copy:hover,
.lg-code-copy.is-copied {
  color: #fff;
  background: rgba(52,151,255,.34);
}
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 26px 0;
  border-radius: 18px;
  border: 1px solid var(--lg-border-soft);
  background: rgba(255,255,255,.48);
}
.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--lg-border-soft);
  text-align: left;
}
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content th { background: rgba(8,117,255,.08); }
.entry-content .wp-block-image img,
.entry-content img { border-radius: 20px; }
.entry-content .wp-block-separator { border: 0; height: 1px; background: var(--lg-border-soft); }
.lg-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--lg-border-soft);
}
.lg-post-tags a { color: var(--lg-primary); }
.lg-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}
.lg-post-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 16px 20px;
  border-radius: 20px;
  color: var(--lg-text);
  background: rgba(255,255,255,.50);
  border: 1px solid var(--lg-border);
}
.lg-post-nav small { display: block; color: var(--lg-muted-2); font-weight: 800; }
.lg-post-nav a:hover { color: var(--lg-primary); transform: translateY(-1px); }
.lg-post-nav__next { text-align: right; }

/* TOC and related */
.lg-toc {
  display: grid;
  gap: 4px;
}
.lg-toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--lg-muted);
  font-size: .9rem;
  font-weight: 800;
}
.lg-toc a.toc-h3 { padding-left: 26px; font-size: .84rem; }
.lg-toc a:hover,
.lg-toc a.is-active { color: var(--lg-primary); background: rgba(8,117,255,.10); }
.lg-widget.is-empty { display: none; }
.lg-related-list li a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: .22s ease;
}
.lg-related-list li a:hover { background: rgba(255,255,255,.44); transform: translateY(-1px); }
.lg-related-list .lg-cover { min-height: 54px; height: 54px; border-radius: 12px; }
.lg-related-title { display: block; font-size: .92rem; font-weight: 900; line-height: 1.35; }
.lg-related-meta { color: var(--lg-muted-2); font-size: .78rem; font-weight: 700; }
.lg-share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.lg-share-grid a,
.lg-share-grid button {
  min-height: 44px;
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  color: var(--lg-muted);
  background: rgba(255,255,255,.48);
  font-size: .88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lg-share-grid a:hover,
.lg-share-grid button:hover { color: var(--lg-primary); }
.lg-share-grid svg { width: 18px; height: 18px; flex: 0 0 auto; }
.lg-share-copy svg { color: #2f6fcb; }
.lg-share-weibo svg { color: #e84b45; }
.lg-share-wechat svg { color: #16b768; }
.lg-share-qq svg { color: #1598dc; }

/* Comments */
.comments-area {
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.lg-comments-panel,
.lg-comment-form-panel {
  padding: 26px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(235,248,255,.46));
  border: 1px solid rgba(255,255,255,.84);
  box-shadow: var(--lg-shadow-soft);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}
.lg-comment-form-panel {
  margin-top: 22px;
}
.comments-title,
.comment-reply-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--lg-text);
  font-size: 1.2rem;
  line-height: 1.25;
}
.comments-title svg,
.comment-reply-title svg {
  width: 20px;
  height: 20px;
  color: #30315f;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.comment-body {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 16px;
  padding: 0 0 22px;
  border-radius: 0;
  color: var(--lg-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(84,132,190,.22);
}
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
  color: var(--lg-muted);
  font-size: .86rem;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.comment-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0;
  box-shadow: 0 8px 18px rgba(62,112,170,.10);
}
.comment-author .fn {
  color: var(--lg-text);
  font-size: .96rem;
  font-weight: 900;
}
.comment-author .says {
  color: var(--lg-muted);
  font-weight: 700;
}
.comment-metadata {
  margin-left: auto;
}
.comment-content {
  grid-column: 2;
  margin-top: 6px;
  color: var(--lg-muted);
  font-size: .95rem;
}
.comment-content p:last-child { margin-bottom: 0; }
.reply {
  grid-column: 2;
  margin-top: 12px;
  font-weight: 800;
  color: var(--lg-primary);
}
.comment-respond {
  margin-top: 0;
  padding-top: 0;
}
.comment-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: end;
}
.comment-form p {
  margin: 0;
}
.comment-notes,
.logged-in-as,
.comment-form-comment {
  grid-column: 1 / -1;
}
.comment-form-comment {
  order: 1;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
  grid-column: span 2;
  order: 2;
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
  position: relative;
}
.comment-form-author::before,
.comment-form-email::before,
.comment-form-url::before {
  position: absolute;
  left: 1px;
  top: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 0 0 14px;
  color: var(--lg-muted);
  background: rgba(235,241,250,.86);
  border-right: 1px solid rgba(84,132,190,.16);
  font-size: .9rem;
  font-weight: 900;
}
.comment-form-author::before { content: "U"; }
.comment-form-email::before { content: "@"; }
.comment-form-url::before { content: "#"; }
.comment-form-cookies-consent {
  grid-column: span 4;
  order: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}
.comment-form-cookies-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--lg-primary);
}
.comment-form-cookies-consent label {
  margin: 0;
  line-height: 1.5;
}
.logged-in-as,
.comment-notes {
  display: none;
  color: var(--lg-muted);
  font-size: .9rem;
  line-height: 1.55;
}
.logged-in-as a,
.comment-notes a {
  color: var(--lg-primary);
  font-weight: 800;
  white-space: nowrap;
}
.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--lg-muted);
  font-weight: 800;
  font-size: .86rem;
}
.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  width: 100%;
  border: 1px solid rgba(84,132,190,.28);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--lg-text);
  outline: 0;
  background: rgba(255,255,255,.76);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 18px rgba(62,112,170,.08);
}
.comment-form input:not([type="checkbox"]):not([type="submit"]) {
  height: 44px;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  padding-left: 54px !important;
}
.comment-form textarea {
  display: block;
  min-height: 98px;
  height: 98px;
  max-height: 220px;
  resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: rgba(8,117,255,.48);
  background: rgba(255,255,255,.88);
  box-shadow: 0 0 0 5px rgba(8,117,255,.10), inset 0 1px 0 rgba(255,255,255,.98);
}
.form-submit {
  grid-column: span 2;
  order: 4;
  display: flex;
  justify-content: flex-end;
  align-self: end;
}
.form-submit .submit {
  border: 0;
  min-height: 44px;
  min-width: 120px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-2));
  box-shadow: 0 12px 26px rgba(8,117,255,.22);
}

/* Generic WP */
.alignleft { float: left; margin: .35em 1.3em 1em 0; }
.alignright { float: right; margin: .35em 0 1em 1.3em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; color: var(--lg-muted); }
.wp-caption-text, .gallery-caption { font-size: .84rem; color: var(--lg-muted-2); text-align: center; }
.bypostauthor .comment-body { border-color: rgba(8,117,255,.22); }
.sticky .lg-post-card__index { background: linear-gradient(135deg, #ffb350, #ff6d8a); }
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--lg-muted);
  background: rgba(255,255,255,.52);
  border: 1px solid var(--lg-border);
  font-weight: 800;
}
.page-numbers.current,
.page-numbers:hover { color: var(--lg-primary); background: rgba(255,255,255,.82); }
.lg-empty {
  padding: 38px;
  border-radius: 28px;
  text-align: center;
}
.lg-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 44px;
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--lg-muted-2);
  font-size: .86rem;
  font-weight: 700;
}

/* Responsive */
@container lg-page (max-width: 1240px) {
  .lg-site { width: min(100% - 28px, var(--lg-width)); }
  .lg-nav { gap: 12px; padding-left: 20px; }
  .lg-brand { min-width: 150px; font-size: 1.42rem; }
  .lg-header-search { width: min(360px, 100%); }
  .lg-home-grid,
  .lg-archive-grid { grid-template-columns: 1fr; }
  .lg-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-single-grid { grid-template-columns: minmax(0, 1fr) 310px; }
  .lg-left-rail { display: none; }
}
@container lg-page (max-width: 920px) {
  body.admin-bar .lg-header { top: 0; }
  .lg-site { width: min(100% - 20px, var(--lg-width)); padding-top: 10px; }
  .lg-header { top: 10px; margin-bottom: 28px; }
  .lg-nav { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px 10px 16px; }
  .lg-brand { border-right: 0; padding-right: 0; min-width: 0; }
  .lg-menu-wrap,
  .lg-header-search { grid-column: 1 / -1; display: none; }
  .lg-nav.is-open .lg-menu-wrap,
  .lg-nav.is-open .lg-header-search { display: block; }
  .lg-menu { align-items: stretch; flex-direction: column; }
  .lg-menu a { justify-content: center; }
  .lg-header-tools { justify-content: flex-end; }
  .lg-mobile-toggle { display: inline-flex; }
  .lg-home-grid,
  .lg-archive-grid,
  .lg-single-grid { grid-template-columns: 1fr; }
  .lg-right-rail { position: static; }
  .lg-sidebar { grid-template-columns: 1fr; }
  .lg-post-card { grid-template-columns: 110px minmax(0, 1fr); padding: 8px; gap: 12px; }
  .lg-post-card__index { position: absolute; top: 14px; left: 14px; margin: 0; }
  .lg-post-card__views { display: none; }
  .lg-post-card__excerpt { display: none; }
  .lg-post-card__cover { height: 86px; min-height: 86px; }
  .lg-hero { min-height: 280px; }
  .lg-hero__slide { padding: 34px; }
  .lg-hero h1 { font-size: 2rem; }
  .lg-article { padding: 30px 24px; }
  .lg-article__hero { aspect-ratio: 16 / 7; min-height: 170px; }
  .lg-post-nav { grid-template-columns: 1fr; }
  .lg-share-grid { grid-template-columns: 1fr 1fr; }
}
@container lg-page (max-width: 680px) {
  .lg-site { width: min(100% - 16px, var(--lg-width)); }
  .lg-nav { border-radius: 24px; }
  .lg-brand { font-size: 1.28rem; }
  .lg-tool-group + .lg-tool-group,
  .lg-header-tools > .lg-icon-button:not(.lg-mobile-toggle) { display: none; }
  .lg-tool-group { height: 40px; }
  .lg-segment-button,
  .lg-icon-button {
    width: 34px;
    height: 34px;
  }
  .lg-filterbar {
    gap: 8px;
    margin: 12px 0;
    padding: 8px;
    border-radius: 24px;
  }
  .lg-chip {
    min-height: 38px;
    padding: 0 14px;
    font-size: .86rem;
  }
  .lg-widget,
  .lg-author-card { border-radius: 24px; padding: 20px; }
  .lg-author-card__top { padding-right: 40px; }
  .lg-stats { border-radius: 18px; }
  .lg-socials { gap: 8px; }
  .comment-form {
    grid-template-columns: 1fr;
  }
  .comment-form-author,
  .comment-form-email,
  .comment-form-url,
  .comment-form-cookies-consent,
  .form-submit {
    grid-column: 1 / -1;
  }
  .lg-comments-panel,
  .lg-comment-form-panel { padding: 22px 18px; }
  .form-submit .submit {
    width: 100%;
  }
}
@container lg-page (max-width: 560px) {
  .lg-hero { border-radius: 28px; min-height: 250px; }
  .lg-hero__slide { padding: 26px; }
  .lg-hero h1 { font-size: 1.82rem; }
  .lg-hero p { font-size: .94rem; }
  .lg-author-card__top { align-items: flex-start; }
  .lg-post-card { grid-template-columns: 1fr; }
  .lg-post-card__cover { height: 150px; }
  .lg-article { padding: 24px 18px; }
  .lg-article__header { text-align: left; }
  .lg-article__meta { justify-content: flex-start; }
  .lg-article__title { font-size: 1.72rem; }
  .lg-article__hero { min-height: 160px; aspect-ratio: 16 / 9; }
  .entry-content { font-size: .98rem; }
  .entry-content h2 { font-size: 1.32rem; }
  .lg-post-nav a { min-height: 64px; padding: 14px 16px; }
  .comment-form textarea {
    min-height: 96px;
    height: 96px;
  }
}

/* Keep the layout switch within reach when a narrow device previews the desktop canvas. */
@media (max-width: 920px) {
  html[data-lg-layout="desktop"] .lg-layout-switcher {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
  }
  html[data-lg-layout="desktop"] body.admin-bar .lg-layout-switcher {
    top: 58px;
  }
}

/* Author card interaction */
@media (prefers-reduced-motion: no-preference) {
  .lg-author-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.96);
    box-shadow: 0 30px 72px rgba(54,103,160,.19), 0 10px 26px rgba(62,117,180,.09);
  }
  .lg-author-card:focus-within::before {
    opacity: .72;
    transform: translate3d(430%, 0, 0) rotate(8deg);
  }
  .lg-author-card:focus-within::after {
    opacity: 1;
    transform: translate3d(-8px, -6px, 0) scale(1.06);
  }
  .lg-author-card:focus-within .lg-avatar {
    transform: translateY(-2px) scale(1.035);
    border-color: rgba(255,255,255,.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 34px rgba(8,117,255,.24);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lg-author-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.96);
    box-shadow: 0 30px 72px rgba(54,103,160,.19), 0 10px 26px rgba(62,117,180,.09);
  }
  .lg-author-card:hover::before {
    opacity: .72;
    transform: translate3d(430%, 0, 0) rotate(8deg);
  }
  .lg-author-card:hover::after {
    opacity: 1;
    transform: translate3d(-8px, -6px, 0) scale(1.06);
  }
  .lg-author-card:hover .lg-avatar {
    transform: translateY(-2px) scale(1.035);
    border-color: rgba(255,255,255,.96);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 16px 34px rgba(8,117,255,.24);
  }
}

html[data-lg-theme="dark"] .lg-author-card::before {
  background: linear-gradient(
    105deg,
    transparent 16%,
    rgba(255,255,255,.02) 38%,
    rgba(255,255,255,.16) 50%,
    rgba(85,201,255,.10) 62%,
    transparent 84%
  );
}
@media (prefers-reduced-motion: no-preference) {
  html[data-lg-theme="dark"] .lg-author-card:focus-within {
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 28px 72px rgba(0,0,0,.42), 0 8px 24px rgba(0,0,0,.22);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-lg-theme="dark"] .lg-author-card:hover {
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 28px 72px rgba(0,0,0,.42), 0 8px 24px rgba(0,0,0,.22);
  }
}

/* ── Reduced motion: disable all entrance animations ── */
@media (prefers-reduced-motion: reduce) {
  .lg-hero,
  .lg-filterbar,
  .lg-feed {
    animation: none !important;
  }
  .lg-hero__slide,
  .lg-hero__slide .lg-eyebrow,
  .lg-hero__slide h1,
  .lg-hero__slide p,
  .lg-hero__slide .lg-glass-button {
    animation: none !important;
    transition-duration: .01s !important;
    transition-delay: 0s !important;
  }
  .lg-post-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-duration: .01s !important;
    transition-delay: 0s !important;
  }
  .lg-post-card.is-visible:hover,
  .lg-post-card.is-visible:focus-within {
    transform: translateY(-2px) !important;
  }
  .lg-author-card,
  .lg-author-card::before,
  .lg-author-card::after,
  .lg-author-card .lg-avatar,
  .lg-author-card__open,
  .lg-socials a {
    animation: none !important;
    transition-duration: .01s !important;
    transform: none !important;
  }
}
