/*
 Theme Name: 灵感小站主题
 Theme URI: http://118.89.168.11
 Description: 灵感小站定制子主题（基于 Astra）：酷炫首页 + 标签筛选体系，支持深色模式
 Author: WorkBuddy
 Template: astra
 Version: 2.0.0
*/

/* ============================================================
   0. 主题变量（浅色 / 深色两套）
   ============================================================ */
:root {
  --lx-bg: #f4f7fc;
  --lx-bg-soft: #eaf1fb;
  --lx-card: #ffffff;
  --lx-card-2: #fbfdff;
  --lx-brd: rgba(47, 111, 181, .12);
  --lx-text: #1b2a3d;
  --lx-text-soft: #52627a;
  --lx-primary: #2f6fb5;
  --lx-primary-2: #6d8ff5;
  --lx-accent: #7c5cff;
  --lx-chip: #eaf2fb;
  --lx-chip-text: #1c5ea8;
  --lx-shadow: 0 10px 30px rgba(31, 60, 110, .10);
  --lx-shadow-hi: 0 18px 46px rgba(31, 60, 110, .18);
  --lx-hero-1: #10243f;
  --lx-hero-2: #1f4b86;
  --lx-hero-3: #4f8ef7;
}

html.wp-dark-mode-active {
  --lx-bg: #0b1220;
  --lx-bg-soft: #0f1729;
  --lx-card: #141d2c;
  --lx-card-2: #18222f;
  --lx-brd: rgba(120, 170, 255, .16);
  --lx-text: #e8eefb;
  --lx-text-soft: #9fb0cc;
  --lx-primary: #78a9ff;
  --lx-primary-2: #9db8ff;
  --lx-accent: #a78bfa;
  --lx-chip: rgba(120, 169, 255, .14);
  --lx-chip-text: #a8c6ff;
  --lx-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --lx-shadow-hi: 0 18px 46px rgba(0, 0, 0, .55);
  --lx-hero-1: #050b16;
  --lx-hero-2: #10243f;
  --lx-hero-3: #2a5ea8;
}

/* ============================================================
   1. 基础排版
   ============================================================ */
body {
  background: var(--lx-bg);
  color: var(--lx-text);
}

.lx-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 自定义版式页面：解除 Astra 独立容器的宽度与内边距限制，让 Hero 可以通栏 */
body.lx-layout .site-content .ast-container {
  display: block !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.lx-layout .site-content { padding: 0 !important; }

.lx-home {
  width: 100%;
  /* 只留柔光渐变、不铺底色，好让全站粒子层透上来 */
  background:
    radial-gradient(1100px 480px at 8% -6%, rgba(109, 143, 245, .16), transparent 60%),
    radial-gradient(900px 420px at 96% 4%, rgba(124, 92, 255, .12), transparent 62%);
  padding-bottom: 64px;
}

html.wp-dark-mode-active .lx-home {
  width: 100%;
  background:
    radial-gradient(1100px 480px at 8% -6%, rgba(80, 120, 255, .18), transparent 60%),
    radial-gradient(900px 420px at 96% 4%, rgba(167, 139, 250, .14), transparent 62%);
}

/* 滚动进度条 */
.lx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--lx-primary), var(--lx-accent), var(--lx-primary-2));
  box-shadow: 0 0 12px rgba(124, 92, 255, .6);
  transition: width .1s linear;
}

/* ============================================================
   2. Hero 区
   ============================================================ */
.lx-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 28px 0 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--lx-hero-1) 0%, var(--lx-hero-2) 46%, var(--lx-hero-3) 100%);
  isolation: isolate;
}

/* Hero 底部渐隐，和下面的内容区自然衔接 */
.lx-hero + .lx-section { padding-top: 40px; }

/* 粒子画布：铺满 Hero，作背景层 */
.lx-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

/* 网格底纹 */
.lx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  z-index: -2;
}

/* 漂浮光斑 */
.lx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(320px 320px at 12% 20%, rgba(124, 92, 255, .45), transparent 65%),
    radial-gradient(380px 380px at 88% 78%, rgba(79, 142, 247, .40), transparent 65%);
  animation: lxDrift 16s ease-in-out infinite alternate;
}

@keyframes lxDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -26px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 22px, 0) scale(1.03); }
}

.lx-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 40px;
  align-items: center;
}

.lx-hero-copy { min-width: 0; }

.lx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .5px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 11px;
}

.lx-hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, .28);
  animation: lxPulse 2s ease-in-out infinite;
}

@keyframes lxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.lx-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .22);
}

.lx-hero h1 .grad {
  background: linear-gradient(92deg, #7dd3fc 0%, #a5b4fc 52%, #d8b4fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 16px rgba(125, 211, 252, .35));
}

.lx-hero-sub {
  font-size: clamp(14px, 1.2vw, 16px);
  color: rgba(255, 255, 255, .86);
  margin: 0 0 12px;
  min-height: 1.9em;
  line-height: 1.9;
}

.lx-typing {
  color: #fff;
  font-weight: 600;
  border-right: 2px solid rgba(255, 255, 255, .85);
  padding-right: 3px;
  animation: lxCaret 1s step-end infinite;
}

@keyframes lxCaret {
  0%, 100% { border-color: rgba(255, 255, 255, .9); }
  50%      { border-color: transparent; }
}

/* 搜索框 */
.lx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  padding: 5px 6px 5px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .3s, background .3s, transform .3s;
}

.lx-search:focus-within {
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 14px 34px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}

.lx-search svg { flex: 0 0 auto; opacity: .85; }

.lx-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14.5px;
  padding: 8px 0;
}

.lx-search input::placeholder { color: rgba(255, 255, 255, .62); }

.lx-search button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #12365e;
  background: linear-gradient(135deg, #ffffff 0%, #d9e8ff 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .25s, box-shadow .25s;
}

.lx-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
}

/* 统计条：压成一行紧凑数据 */
.lx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}

.lx-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lx-stat .num {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: .5px;
}

.lx-stat .label {
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  letter-spacing: .5px;
}


/* ===== Hero 右侧「灵感轨道」装饰 ===== */
.lx-orbit {
  position: relative;
  width: 320px;
  height: 320px;
  justify-self: center;
  align-self: center;
}

.lx-orbit .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}

.lx-orbit .r1 {
  inset: 0;
  animation: lxSpin 28s linear infinite;
}

.lx-orbit .r1::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #bfe0ff;
  box-shadow: 0 0 18px 5px rgba(168, 208, 255, .8);
}

.lx-orbit .r2 {
  inset: 38px;
  border-style: dashed;
  border-color: rgba(196, 181, 253, .38);
  animation: lxSpin 18s linear infinite reverse;
}

.lx-orbit .r2::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8c7ff;
  box-shadow: 0 0 14px 4px rgba(196, 181, 253, .8);
}

.lx-orbit .r3 {
  inset: 82px;
  border-color: rgba(255, 255, 255, .14);
}

.lx-orbit .core {
  position: absolute;
  inset: 116px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .34), rgba(255, 255, 255, .05) 70%);
  box-shadow: inset 0 0 40px rgba(168, 208, 255, .32), 0 0 46px rgba(124, 92, 255, .32);
  animation: lxBreath 5s ease-in-out infinite;
}

.lx-orbit .spark {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: .85;
}

.lx-orbit .s1 {
  width: 4px;
  height: 4px;
  top: 22%;
  left: 12%;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, .7);
  animation: lxTwinkle 3.4s ease-in-out infinite;
}

.lx-orbit .s2 {
  width: 3px;
  height: 3px;
  bottom: 16%;
  right: 18%;
  box-shadow: 0 0 10px 3px rgba(196, 181, 253, .8);
  animation: lxTwinkle 4.2s ease-in-out infinite .8s;
}

@keyframes lxSpin { to { transform: rotate(360deg); } }

@keyframes lxBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

@keyframes lxTwinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.25); }
}

@media screen and (max-width: 1024px) {
  .lx-hero-inner { grid-template-columns: 1fr; gap: 0; }
  .lx-orbit { display: none; }
}

/* ============================================================
   3. 通用区块标题
   ============================================================ */
.lx-section { padding-top: 52px; padding-bottom: 8px; }

.lx-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.lx-sec-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--lx-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lx-sec-head h2::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--lx-primary), var(--lx-accent));
}

.lx-sec-head .hint {
  font-size: 13px;
  color: var(--lx-text-soft);
}

/* ============================================================
   4. 分类卡片
   ============================================================ */
.lx-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
}

.lx-cat {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 22px 20px;
  border-radius: 18px;
  text-decoration: none !important;
  background: var(--lx-card);
  border: 1px solid var(--lx-brd);
  box-shadow: var(--lx-shadow);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s;
}

.lx-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--c1, #6d8ff5), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.lx-cat:hover {
  transform: translateY(-7px);
  box-shadow: var(--lx-shadow-hi);
}

.lx-cat:hover::after { opacity: 1; }

.lx-cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--c1, #6d8ff5), var(--c2, #7c5cff));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c1, #6d8ff5) 38%, transparent);
}

.lx-cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--lx-text);
  margin-bottom: 4px;
}

.lx-cat-meta {
  font-size: 12.5px;
  color: var(--lx-text-soft);
}

.lx-cat-count {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--c1, #2f6fb5);
  background: color-mix(in srgb, var(--c1, #6d8ff5) 14%, transparent);
}

/* ============================================================
   5. 标签筛选区
   ============================================================ */
.lx-filter {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  background: var(--lx-card);
  border: 1px solid var(--lx-brd);
  box-shadow: var(--lx-shadow);
}

.lx-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lx-filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lx-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lx-filter-reset {
  border: 1px solid var(--lx-brd);
  background: transparent;
  color: var(--lx-text-soft);
  font-size: 12.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: .25s;
}

.lx-filter-reset:hover {
  color: #fff;
  background: var(--lx-primary);
  border-color: var(--lx-primary);
}

.lx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.lx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
  color: var(--lx-chip-text);
  background: var(--lx-chip);
  border: 1px solid transparent;
  transition: transform .2s, background .25s, color .25s, box-shadow .25s;
}

.lx-chip .n {
  font-size: 11px;
  opacity: .68;
  font-weight: 700;
}

.lx-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(47, 111, 181, .18);
}

.lx-chip.on {
  color: #fff;
  background: linear-gradient(135deg, var(--lx-primary), var(--lx-accent));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--lx-primary) 40%, transparent);
}

.lx-chip.size-2 { font-size: 14px; padding: 7px 16px; }
.lx-chip.size-3 { font-size: 15px; padding: 8px 18px; font-weight: 600; }
.lx-chip.size-4 { font-size: 16px; padding: 9px 20px; font-weight: 700; }

/* ============================================================
   6. 文章卡片
   ============================================================ */
.lx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.lx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--lx-card);
  border: 1px solid var(--lx-brd);
  box-shadow: var(--lx-shadow);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s, opacity .3s;
}

.lx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(320px 200px at var(--mx, 50%) var(--my, 0%),
              color-mix(in srgb, var(--c1, #6d8ff5) 22%, transparent), transparent 70%);
}

.lx-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--lx-shadow-hi);
}

.lx-card:hover::before { opacity: 1; }

.lx-card.dim { display: none; }

.lx-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #6d8ff5), var(--c2, #7c5cff));
}

.lx-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.lx-card:hover .lx-thumb img { transform: scale(1.07); }

.lx-thumb .lx-cover-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c1, #6d8ff5) 88%, #000);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
}

.lx-thumb .lx-cover-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  opacity: .85;
}

.lx-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.lx-card h3 {
  margin: 0 0 8px;
  font-size: 17.5px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lx-card h3 a {
  color: var(--lx-text);
  text-decoration: none !important;
  background-image: linear-gradient(var(--lx-primary), var(--lx-primary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s, color .25s;
}

.lx-card:hover h3 a {
  color: var(--lx-primary);
  background-size: 100% 2px;
}

.lx-excerpt {
  font-size: 14px;
  color: var(--lx-text-soft);
  line-height: 1.75;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lx-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }

.lx-tags a {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--lx-chip-text);
  background: var(--lx-chip);
  transition: .22s;
}

.lx-tags a:hover {
  color: #fff;
  background: var(--lx-primary);
  transform: translateY(-1px);
}

.lx-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--lx-brd);
  font-size: 12.5px;
  color: var(--lx-text-soft);
}

.lx-meta .go {
  color: var(--lx-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lx-card:hover .lx-meta .go { gap: 8px; }

.lx-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--lx-text-soft);
  border: 1px dashed var(--lx-brd);
  border-radius: 16px;
  background: var(--lx-card-2);
}

/* 载入更多 */
.lx-more {
  display: block;
  width: fit-content;
  margin: 34px auto 0;
  padding: 12px 34px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  color: #fff;
  background: linear-gradient(135deg, var(--lx-primary), var(--lx-accent));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--lx-primary) 38%, transparent);
  transition: transform .28s, box-shadow .28s;
}

.lx-more:hover { transform: translateY(-3px); }

/* ============================================================
   7. 归档页头部（标签页 / 分类页）
   ============================================================ */
/* 首页 Hero 与子页横幅共用一套尺寸规格，视觉上是一家人 */
.lx-hero,
.lx-arch-head {
  display: flex;
  align-items: center;
  min-height: 320px;
}

.lx-hero,
.lx-arch-head {
  padding: 36px 0;
}

.lx-arch-head {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--lx-hero-1) 0%, var(--lx-hero-2) 50%, var(--lx-hero-3) 100%);
}

.lx-arch-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(340px 300px at 82% 12%, rgba(124, 92, 255, .42), transparent 65%),
    radial-gradient(300px 300px at 10% 90%, rgba(79, 142, 247, .35), transparent 65%);
  animation: lxDrift 18s ease-in-out infinite alternate;
}

.lx-arch-head > .lx-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.lx-arch-copy { min-width: 0; }

/* 右侧信息卡：和首页「最新文章卡」同款的玻璃质感 */
.lx-arch-side { min-width: 0; }

.lx-arch-panel {
  position: relative;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(6, 22, 48, .32);
}

.lx-arch-stats {
  display: flex;
  gap: 26px;
  margin-bottom: 14px;
}

.lx-arch-stats .st { display: flex; flex-direction: column; }

.lx-arch-stats .n {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.lx-arch-stats .t {
  margin-top: 3px;
  font-size: 12px;
  letter-spacing: .5px;
  color: rgba(255, 255, 255, .72);
}

.lx-arch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.lx-arch-chips a {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  text-decoration: none !important;
  background: rgba(255, 255, 255, .16);
  transition: .22s;
}

.lx-arch-chips a:hover {
  color: #12365e;
  background: rgba(255, 255, 255, .92);
}

.lx-arch-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none !important;
}

.lx-arch-more:hover { text-decoration: underline !important; }

.lx-arch-head .kicker,
.lx-hero .kicker {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 10px;
}

.lx-arch-head h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
}

.lx-arch-head p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }

.lx-arch-body { padding: 34px 0 60px; }

/* 标签导航页 */
.lx-tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: var(--lx-card);
  border: 1px solid var(--lx-brd);
  box-shadow: var(--lx-shadow);
}

.lx-tag-letter {
  margin: 26px 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--lx-primary);
  letter-spacing: 2px;
}

/* ============================================================
   8. 入场动画
   ============================================================ */
.lx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .8, .3, 1), transform .7s cubic-bezier(.2, .8, .3, 1);
  /* 兜底：万一脚本没跑起来，1.4 秒后自动显示，内容不会丢 */
  animation: lxFallback .01s linear 1.4s forwards;
}

@keyframes lxFallback {
  to { opacity: 1; transform: none; }
}

.lx-reveal.in { opacity: 1; transform: none; animation: none; }

/* 截图 / 打印预览：静态展示 */
html.lx-static .lx-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .lx-reveal { opacity: 1; transform: none; transition: none; }
  .lx-hero::after, .lx-arch-head::after { animation: none; }
}

/* ============================================================
   9. 响应式
   ============================================================ */
@media screen and (max-width: 782px) {
  .lx-hero { padding: 62px 0 54px; }
  .lx-stats { gap: 26px; }
  .lx-stat .num { font-size: 24px; }
  .lx-grid { grid-template-columns: 1fr; }
  .lx-search { flex-wrap: wrap; border-radius: 18px; padding: 12px; }
  .lx-search input { padding: 8px 4px; }
  .lx-search button { width: 100%; }
  .lx-wrap { padding: 0 16px; }
}

/* 深色模式下插件未覆盖到的兜底 */
html.wp-dark-mode-active .lx-cat,
html.wp-dark-mode-active .lx-card,
html.wp-dark-mode-active .lx-filter,
html.wp-dark-mode-active .lx-tagcloud {
  background: var(--lx-card) !important;
  color: var(--lx-text) !important;
}

html.wp-dark-mode-active .lx-card h3,
html.wp-dark-mode-active .lx-card h3 a,
html.wp-dark-mode-active .lx-cat-name {
  color: var(--lx-text) !important;
}

html.wp-dark-mode-active .lx-excerpt,
html.wp-dark-mode-active .lx-meta,
html.wp-dark-mode-active .lx-cat-meta,
html.wp-dark-mode-active .lx-sec-head .hint {
  color: var(--lx-text-soft) !important;
}

/* ============================================================
   10. 文章内页阅读体验（长文不累眼）
   ============================================================ */
.single .entry-content,
.page .entry-content {
  font-size: 17px;
  line-height: 1.95;
  color: var(--lx-text);
  letter-spacing: .2px;
}

.single .entry-content p,
.page .entry-content p {
  margin-bottom: 1.5em;
}

.single .entry-content h2,
.page .entry-content h2 {
  margin-top: 2.2em;
  margin-bottom: .8em;
  padding-left: 14px;
  border-left: 4px solid var(--lx-primary);
  font-size: 22px;
  line-height: 1.5;
}

.single .entry-content h3,
.page .entry-content h3 {
  margin-top: 1.8em;
  font-size: 18.5px;
}

.single .entry-content img,
.page .entry-content img {
  border-radius: 12px;
  height: auto;
}

.single .entry-content blockquote,
.page .entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--lx-primary-2);
  border-radius: 0 12px 12px 0;
  background: var(--lx-bg-soft);
  color: var(--lx-text-soft);
  font-size: 16px;
}

.single .entry-content code {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: .92em;
  background: var(--lx-chip);
  color: var(--lx-chip-text);
}

.single .entry-content pre {
  padding: 18px 20px;
  border-radius: 12px;
  overflow: auto;
  background: #0f1729;
  color: #e8eefb;
}

.single .entry-content a {
  color: var(--lx-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 正文区最大行宽，避免长行难读 */
.single .entry-content > p,
.single .entry-content > h2,
.single .entry-content > h3,
.single .entry-content > ul,
.single .entry-content > ol,
.single .entry-content > blockquote {
  max-width: 46em;
}

/* 文章标题与元信息 */
.single .entry-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: .5px;
}

.single .entry-meta,
.single .ast-blog-single-element.ast-taxonomy-container a {
  font-size: 13px;
}

/* 移动端 */
@media screen and (max-width: 782px) {
  .single .entry-content, .page .entry-content { font-size: 16.5px; line-height: 1.9; }
}


/* 标签导航页：分组区用无框样式，标签少时不留大白块 */
.lx-tagcloud-plain {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 4px;
}

/* ============================================================
   11. 深色模式：补齐 Astra 头部 / 页脚 / 按钮的对比度
   ============================================================ */
html.wp-dark-mode-active .site-header,
html.wp-dark-mode-active .ast-primary-header-bar,
html.wp-dark-mode-active .main-header-bar,
html.wp-dark-mode-active .ast-mobile-header-wrap {
  background-color: #0e1726 !important;
  border-color: rgba(120, 170, 255, .12) !important;
}

html.wp-dark-mode-active .site-title a,
html.wp-dark-mode-active .ast-builder-menu-1 .menu-item > .menu-link,
html.wp-dark-mode-active .main-header-menu > .menu-item > .menu-link,
html.wp-dark-mode-active .ast-mobile-menu-trigger-minimal {
  color: #dbe6f7 !important;
}

html.wp-dark-mode-active .main-header-menu > .menu-item.current-menu-item > .menu-link,
html.wp-dark-mode-active .main-header-menu > .menu-item > .menu-link:hover {
  color: #9dc0ff !important;
}

/* 深色下插件会把浅底强制映射成深色，改用描边式按钮保证辨识度 */
html.wp-dark-mode-active body.lx-layout .lx-home .lx-hero .lx-search button {
  color: #ffffff !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  /* 插件会改写 background 与 border 色，box-shadow 不受影响，用它画一圈亮边 */
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .92),
              0 0 22px rgba(150, 190, 255, .28) !important;
  text-shadow: 0 0 12px rgba(190, 220, 255, .55);
}

html.wp-dark-mode-active body.lx-layout .lx-home .lx-hero .lx-search button:hover {
  background: rgba(255, 255, 255, .14) !important;
  border-color: rgba(255, 255, 255, .8) !important;
}

/* 深色下 Hero 保留层次，别塌成纯黑 */
html.wp-dark-mode-active body .lx-home .lx-hero {
  background: linear-gradient(135deg, #0a1626 0%, #153459 46%, #2f66b8 100%) !important;
}

html.wp-dark-mode-active body .lx-home .lx-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) !important;
}

html.wp-dark-mode-active body .lx-arch-head {
  background: linear-gradient(135deg, #0a1626 0%, #153459 50%, #2f66b8 100%) !important;
}

html.wp-dark-mode-active .lx-search input {
  color: #ffffff !important;
}

html.wp-dark-mode-active .site-footer,
html.wp-dark-mode-active .site-below-footer-wrap,
html.wp-dark-mode-active .ast-footer-copyright {
  background-color: #080e18 !important;
  color: #8fa1ba !important;
}

html.wp-dark-mode-active .ast-footer-copyright a { color: #9dc0ff !important; }

/* 搜索框在被插件反色后保持玻璃感 */
html.wp-dark-mode-active .lx-search {
  background: rgba(255, 255, 255, .10) !important;
  border-color: rgba(160, 200, 255, .30) !important;
}

/* 深色模式：标题渐变文字保住可见性（插件会清掉 background） */
html.wp-dark-mode-active body .lx-home .lx-hero h1 .grad {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #a8c4ff !important;
  color: #a8c4ff !important;
}

/* 深色模式：轨道装饰更亮一点 */
html.wp-dark-mode-active .lx-orbit .ring { border-color: rgba(170, 205, 255, .34) !important; }
html.wp-dark-mode-active .lx-orbit .r3 { border-color: rgba(170, 205, 255, .18) !important; }

/* ============================================================
   12. 文章内页：柔光背景 + 封面 + 更舒服的宽度
   ============================================================ */
.single .site-content,
.page .site-content {
  background:
    radial-gradient(900px 420px at 12% -4%, rgba(109, 143, 245, .14), transparent 60%),
    radial-gradient(760px 380px at 92% 2%, rgba(124, 92, 255, .10), transparent 62%);
}

.single .site-content .ast-container,
.page .site-content .ast-container {
  max-width: 960px !important;
}

.lx-post-cover {
  margin: 0 0 30px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(31, 60, 110, .14);
}

.lx-post-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}

.lx-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 26px;
  font-size: 13px;
  color: var(--lx-text-soft);
}

.lx-post-tags a {
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--lx-chip-text);
  background: var(--lx-chip);
  transition: .22s;
}

.lx-post-tags a:hover {
  color: #fff;
  background: var(--lx-primary);
}

/* 标题与正文之间加一条节奏线 */
.single .entry-header {
  padding-bottom: 8px;
}

.single .entry-title {
  margin-bottom: 10px;
}

html.wp-dark-mode-active body .lx-home .lx-orbit .ring {
  border-color: rgba(170, 205, 255, .45) !important;
}
html.wp-dark-mode-active body .lx-home .lx-orbit .r3 {
  border-color: rgba(170, 205, 255, .22) !important;
}

/* ============================================================
   13. v3：Hero 右侧「最新文章」卡 + 排序切换 + 卡片酷炫特效
   ============================================================ */

/* --- Hero 右侧最新文章卡 --- */
.lx-hero-side { min-width: 0; }

.lx-featured {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none !important;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(6, 22, 48, .34);
  transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s;
}

.lx-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(6, 22, 48, .46);
}

/* hover 时一道流光扫过 */
.lx-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 66%);
  transform: translateX(-120%);
}

.lx-featured:hover::after { animation: lxSheen 1.1s ease; }

@keyframes lxSheen { to { transform: translateX(120%); } }

.lx-featured-flag {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, #6d8ff5), var(--c2, #7c5cff));
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}

.lx-featured-thumb {
  position: relative;
  height: 88px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #6d8ff5), var(--c2, #7c5cff));
}

.lx-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.2, .8, .3, 1);
}

.lx-featured:hover .lx-featured-thumb img { transform: scale(1.08); }

.lx-featured-body { padding: 12px 15px 14px; }

.lx-featured-cat {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  margin-bottom: 8px;
}

.lx-featured-body h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lx-featured-body p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lx-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.lx-featured-tags span {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .16);
}

.lx-featured-go {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lx-featured:hover .lx-featured-go { gap: 12px; }

.lx-featured-empty {
  background: rgba(255, 255, 255, .10);
}

/* --- 排序切换 --- */
.lx-sort {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--lx-chip);
}

.lx-sort a {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--lx-text-soft);
  transition: .25s;
}

.lx-sort a:hover { color: var(--lx-primary); }

.lx-sort a.on {
  color: #fff;
  background: linear-gradient(135deg, var(--lx-primary), var(--lx-accent));
  box-shadow: 0 6px 14px color-mix(in srgb, var(--lx-primary) 34%, transparent);
}

/* --- 卡片：3D 倾斜 + 扫光 + 渐变描边 --- */
.lx-grid { perspective: 1400px; }

.lx-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.lx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .5) 50%, transparent 64%);
}

.lx-card:hover::after { animation: lxSheen 1.05s ease; opacity: 1; }

.lx-card:hover {
  box-shadow: var(--lx-shadow-hi), 0 0 0 1px color-mix(in srgb, var(--c1, #6d8ff5) 55%, transparent),
              0 18px 40px color-mix(in srgb, var(--c1, #6d8ff5) 26%, transparent);
}

/* 封面加一层渐变，让分类色更明显 */
.lx-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c1, #6d8ff5) 30%, transparent));
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}

.lx-card:hover .lx-thumb::after { opacity: 1; }

/* Hero 标题：轻微光晕呼吸，更"活" */
.lx-hero h1 { animation: lxGlow 6s ease-in-out infinite; }

@keyframes lxGlow {
  0%, 100% { text-shadow: 0 4px 24px rgba(0, 0, 0, .22); }
  50%      { text-shadow: 0 4px 30px rgba(150, 200, 255, .38); }
}

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  .lx-hero h1,
  .lx-hero::after,
  .lx-orbit .ring,
  .lx-orbit .core { animation: none !important; }
  .lx-card::after, .lx-featured::after { display: none; }
}

/* --- 响应式 --- */
@media screen and (max-width: 1024px) {
  .lx-hero-inner { grid-template-columns: 1fr; gap: 22px; }
  .lx-hero-side { max-width: 420px; }
  .lx-featured-thumb { height: 150px; }
}

@media screen and (max-width: 782px) {
  .lx-hero { padding: 32px 0 28px; }
  .lx-hero-side { max-width: none; }
  .lx-stats { gap: 18px; }
  .lx-sort { padding: 3px; }
  .lx-sort a { padding: 5px 13px; font-size: 12.5px; }
  .lx-featured-thumb { height: 132px; }
}

/* ============================================================
   14. v3：Hero 热门标签快捷条 + 最新卡流光边框
   ============================================================ */

.lx-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.lx-hero-tags .lb {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .55);
  margin-right: 2px;
}

.lx-hero-tags a {
  font-size: 12.5px;
  padding: 3px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none !important;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: .25s;
}

.lx-hero-tags a:hover {
  color: #12365e;
  background: rgba(255, 255, 255, .92);
  border-color: transparent;
  transform: translateY(-1px);
}

/* 最新文章卡：沿边框流动的光 */
@property --lx-a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.lx-featured {
  box-shadow: 0 18px 44px rgba(6, 22, 48, .34), 0 0 0 1px rgba(255, 255, 255, .06);
}

.lx-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  padding: 1.4px;
  pointer-events: none;
  background: conic-gradient(from var(--lx-a),
    transparent 0deg,
    rgba(125, 211, 252, .95) 26deg,
    rgba(196, 181, 253, 1) 62deg,
    rgba(255, 255, 255, .85) 92deg,
    transparent 132deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: lxBorderSpin 6.5s linear infinite;
}

@keyframes lxBorderSpin { to { --lx-a: 360deg; } }

/* Hero 底部细光边，和下面的内容区分开 */
.lx-hero { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14); }

@media screen and (max-width: 782px) {
  .lx-hero-tags { margin-top: 12px; gap: 6px; }
  .lx-hero-tags a { font-size: 12px; padding: 2px 9px; }
  .lx-featured::before { animation: none; opacity: .55; }
}

/* ============================================================
   15. v3：整体质感 —— 标题流光 / 卡片渐变描边 / 区块光边
   ============================================================ */

/* "灵感"两字的光泽流动 */
.lx-hero h1 .grad {
  background: linear-gradient(100deg,
    #7dd3fc 0%, #a5b4fc 26%, #d8b4fe 44%,
    #ffffff 55%, #d8b4fe 66%, #a5b4fc 80%, #7dd3fc 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lxShimmer 7s linear infinite;
}

@keyframes lxShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

/* Hero 底部柔光：不占布局，只加层次 */
.lx-hero-inner::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -86px;
  height: 150px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .18), transparent 68%);
  filter: blur(14px);
}

/* 卡片边框带一点分类色，比纯灰更精致 */
.lx-card {
  border-color: color-mix(in srgb, var(--c1, #6d8ff5) 16%, var(--lx-brd));
}

/* 标签云区顶部一道光边 */
.lx-filter { position: relative; overflow: hidden; }

.lx-filter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lx-primary), var(--lx-accent), transparent);
  opacity: .55;
}

/* 区块标题竖条加发光 */
.lx-sec-head h2::before {
  box-shadow: 0 0 10px color-mix(in srgb, var(--lx-primary) 65%, transparent);
}

/* 首页最后一段留白，别贴着页脚 */
.lx-home .lx-section:last-of-type { padding-bottom: 44px; }

@media screen and (max-width: 782px) {
  .lx-home .lx-section:last-of-type { padding-bottom: 28px; }
}

/* ============================================================
   16. v3 移动端：搜索单行、最新卡横向紧凑
   ============================================================ */
@media screen and (max-width: 782px) {
  /* 搜索框保持一行，不要堆成一个巨大的卡片 */
  .lx-search {
    flex-wrap: nowrap;
    border-radius: 999px;
    padding: 4px 5px 4px 14px;
    gap: 6px;
  }

  .lx-search svg { width: 17px; height: 17px; }

  .lx-search input {
    font-size: 13.5px;
    padding: 8px 2px;
  }

  .lx-search button {
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
  }

  /* 最新文章卡：图左文右，省一半高度 */
  .lx-featured { display: flex; align-items: stretch; }

  .lx-featured-thumb {
    flex: 0 0 104px;
    width: 104px;
    height: auto;
    min-height: 104px;
  }

  .lx-featured-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px 11px;
  }

  .lx-featured-body h3 { font-size: 14.5px; margin-bottom: 6px; }

  .lx-featured-cat { font-size: 11px; padding: 2px 8px; margin-bottom: 6px; }

  .lx-featured-tags { margin-bottom: 6px; }

  .lx-featured-go { font-size: 12.5px; }

  .lx-featured-flag { top: 8px; right: 8px; font-size: 10.5px; padding: 3px 9px; }

  .lx-hero-inner { gap: 14px; }
}

/* ============================================================
   17. v3：内容区氛围光 + 封面常驻色调
   ============================================================ */

/* 内容区淡光斑，纯白背景不再单薄 */
.lx-home {
  background-image:
    radial-gradient(880px 460px at 6% 0%, rgba(109, 143, 245, .10), transparent 62%),
    radial-gradient(760px 420px at 96% 6%, rgba(124, 92, 255, .08), transparent 60%);
  background-repeat: no-repeat;
}

/* 封面常驻一层很淡的分类色，hover 时加深 */
.lx-thumb::after {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c1, #6d8ff5) 10%, transparent) 0%,
    transparent 46%,
    color-mix(in srgb, var(--c1, #6d8ff5) 30%, transparent) 100%);
  opacity: .7;
}

.lx-card:hover .lx-thumb::after { opacity: 1; }

/* 深色模式下光斑更收敛 */
html.wp-dark-mode-active .lx-home {
  background-image:
    radial-gradient(760px 420px at 6% 0%, rgba(90, 130, 220, .14), transparent 62%),
    radial-gradient(680px 380px at 96% 6%, rgba(110, 84, 220, .12), transparent 60%);
}

/* ============================================================
   18. 页脚备案信息
   ============================================================ */
.lx-beian {
  width: 100%;
  padding: 12px 16px 16px;
  background: var(--lx-bg);
  border-top: 1px solid var(--lx-brd);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--lx-text-soft);
  text-align: center;
}

.lx-beian-inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  max-width: 1180px;
}

.lx-beian a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lx-text-soft);
  text-decoration: none !important;
  transition: color .22s;
}

.lx-beian a:hover { color: var(--lx-primary); }

.lx-beian-psb img {
  width: 18px;
  height: 20px;
  display: block;
  border-radius: 2px;
  opacity: .9;
}

.lx-beian-psb:hover img { opacity: 1; }

.lx-beian-dot { color: var(--lx-brd-strong, #c8d2e0); }

/* 深色模式 */
html.wp-dark-mode-active .lx-beian {
  background: #080e18 !important;
  border-top-color: rgba(120, 170, 255, .12) !important;
  color: #8fa1ba !important;
}

html.wp-dark-mode-active .lx-beian a { color: #8fa1ba !important; }
html.wp-dark-mode-active .lx-beian a:hover { color: #9dc0ff !important; }

@media screen and (max-width: 782px) {
  /* 手机上两行竖排，让出右下角深色模式悬浮按钮的位置 */
  .lx-beian {
    font-size: 12px;
    padding: 12px 14px 16px;
    text-align: center;
  }

  .lx-beian-inner {
    flex-direction: column;
    gap: 4px;
    max-width: 250px;
  }

  .lx-beian-dot { display: none; }
}

/* ============================================================
   19. 全站粒子层 + 页头深浅色切换按钮
   ============================================================ */

/* 全站氛围粒子：固定在视口最底层，任何页面都能看到 */
#lxStarsAmbient {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 页面内容抬到粒子层之上，粒子从各区块的透明底里透出来 */
#page {
  position: relative;
  z-index: 1;
}

/* 归档页头里的粒子层 */
.lx-stars-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  /* canvas 是替换元素，只写 inset:0 会退回默认 300x150，必须显式撑满 */
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lx-arch-head > .lx-wrap {
  position: relative;
  z-index: 1;
}

/* 页头的深浅色切换按钮 */
.lx-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--lx-brd);
  background: transparent;
  color: var(--lx-text-soft);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color .22s, border-color .22s, background .22s, box-shadow .22s;
}

.lx-theme-btn:hover {
  color: var(--lx-primary);
  border-color: var(--lx-primary);
  background: var(--lx-chip);
}

.lx-theme-btn:focus-visible {
  outline: 2px solid var(--lx-primary);
  outline-offset: 2px;
}

.lx-theme-btn .lx-theme-ico {
  font-size: 14px;
  line-height: 1;
}

.lx-theme-btn.is-dark {
  box-shadow: 0 0 14px rgba(120, 169, 255, .22);
}

/* 右下角那个小圆钮容易看漏，交给页头这个按钮 */
.wp-dark-mode-floating-switch { display: none !important; }

/* 手机端：按钮和汉堡按钮并排待在页头里 */
@media screen and (max-width: 782px) {
  .site-header-primary-section-right .lx-theme-btn {
    margin: 0 10px 0 0;
    padding: 5px 11px;
    font-size: 12.5px;
  }
}

/* ============================================================
   20. 文章内页：正文容器做成半透明玻璃，让粒子在背后若隐若现
   ============================================================ */
html body.single .site-content article.post,
html body.single .site-content article.page,
html body.page .site-content article.page {
  /* 插件会给容器打内联底色，这里用更高优先级覆盖成半透明 */
  background-color: color-mix(in srgb, var(--lx-bg) 88%, transparent) !important;
  border: 1px solid var(--lx-brd) !important;
  box-shadow: 0 18px 50px rgba(10, 24, 48, .10) !important;
}

html.wp-dark-mode-active body.single .site-content article.post,
html.wp-dark-mode-active body.single .site-content article.page,
html.wp-dark-mode-active body.page .site-content article.page {
  background-color: color-mix(in srgb, var(--lx-card) 86%, transparent) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .34) !important;
}

/* 内页顶部留一点呼吸感，别贴着头条 */
html body.single .site-content,
html body.page .site-content {
  padding-top: 26px;
}


/* ============================================================
   21. 横幅统一后的响应式
   ============================================================ */
@media screen and (max-width: 1024px) {
  .lx-arch-head > .lx-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .lx-arch-side { max-width: 420px; }
}

@media screen and (max-width: 782px) {
  .lx-hero,
  .lx-arch-head {
    min-height: 0;
    padding: 28px 0 26px;
  }
  .lx-arch-stats { gap: 20px; margin-bottom: 12px; }
  .lx-arch-stats .n { font-size: 22px; }
  .lx-arch-panel { padding: 14px 16px 13px; }
  .lx-arch-chips a { font-size: 11.5px; padding: 2px 9px; }
  .lx-arch-side { max-width: none; }
}

/* 手机端：横幅内容做减法，让首页与子页高度更接近 */
@media screen and (max-width: 782px) {
  /* 首页横幅里的热门标签在手机上去掉（下面的标签云已经能筛） */
  .lx-hero-tags { display: none; }

  /* 子页信息卡只留数字和入口，标签胶囊省掉 */
  .lx-arch-chips { display: none; }

  .lx-arch-stats { margin-bottom: 10px; }
  .lx-arch-more { margin-top: 8px; }
}
