:root {
  --lx-bg: #f3f6fb;
  --lx-panel: rgba(255, 255, 255, 0.88);
  --lx-panel-strong: rgba(255, 255, 255, 0.94);
  --lx-line: #e4eaf4;
  --lx-text: #1f2937;
  --lx-text-soft: #5b6b82;
  --lx-title: #0f172a;
  --lx-accent: #2f63d8;
  --lx-accent-deep: #244fb2;
  --lx-accent-soft: rgba(47, 99, 216, 0.1);
  --lx-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --lx-shadow-soft: 0 14px 32px rgba(148, 163, 184, 0.16);
  --lx-radius-lg: 24px;
  --lx-hero-image: url("https://img2024.cnblogs.com/blog/3737492/202603/3737492-20260329132520964-406756009.jpg");
  --lx-body-bg:
    radial-gradient(circle at top left, rgba(47, 99, 216, 0.08), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, var(--lx-bg) 100%);
  --lx-blockquote-bg: #f8fbff;
  --lx-table-bg: #fff;
  --lx-table-head-bg: #f8fafc;
  --lx-nav-page-bg: #fff;
  --lx-footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.94));
  --lx-footer-glow: radial-gradient(circle at top center, rgba(37, 99, 235, 0.08), transparent 42%);
  --lx-float-bg: rgba(255, 255, 255, 0.78);
  --lx-float-border: rgba(148, 163, 184, 0.24);
  --lx-float-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  --lx-mode-menu-bg: rgba(255, 255, 255, 0.92);
  --lx-mode-menu-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  --lx-mode-item-color: #6d28d9;
  --lx-mode-item-active: #f97316;
  --lx-mode-trigger-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.9));
  --lx-mode-trigger-color: #111827;
  --lx-mode-trigger-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  --lx-hero-title: var(--lx-title);
  --lx-hero-desc-color: rgba(46, 62, 88, 0.8);
}

body[data-theme="dark"] {
  --lx-bg: #0b1220;
  --lx-panel: rgba(15, 23, 42, 0.82);
  --lx-panel-strong: rgba(15, 23, 42, 0.92);
  --lx-line: rgba(148, 163, 184, 0.18);
  --lx-text: #dbe7ff;
  --lx-text-soft: #9fb2d1;
  --lx-title: #f8fbff;
  --lx-accent: #78a6ff;
  --lx-accent-deep: #a7c2ff;
  --lx-accent-soft: rgba(120, 166, 255, 0.16);
  --lx-shadow: 0 24px 52px rgba(2, 6, 23, 0.44);
  --lx-shadow-soft: 0 18px 38px rgba(2, 6, 23, 0.3);
  --lx-body-bg:
    radial-gradient(circle at top left, rgba(120, 166, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #111827 0%, #0b1220 100%);
  --lx-blockquote-bg: rgba(18, 28, 48, 0.92);
  --lx-table-bg: rgba(15, 23, 42, 0.94);
  --lx-table-head-bg: rgba(19, 31, 53, 0.96);
  --lx-nav-page-bg: rgba(15, 23, 42, 0.94);
  --lx-footer-bg: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(11, 18, 32, 0.96));
  --lx-footer-glow: radial-gradient(circle at top center, rgba(120, 166, 255, 0.12), transparent 42%);
  --lx-float-bg: rgba(15, 23, 42, 0.82);
  --lx-float-border: rgba(148, 163, 184, 0.2);
  --lx-float-shadow: 0 16px 32px rgba(2, 6, 23, 0.34);
  --lx-mode-menu-bg: rgba(15, 23, 42, 0.92);
  --lx-mode-menu-shadow: 0 20px 40px rgba(2, 6, 23, 0.42);
  --lx-mode-item-color: #c4b5fd;
  --lx-mode-item-active: #f59e0b;
  --lx-mode-trigger-bg:
    linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
  --lx-mode-trigger-color: #f8fbff;
  --lx-mode-trigger-shadow: 0 16px 32px rgba(2, 6, 23, 0.42);
  --lx-hero-title: #f8fbff;
  --lx-hero-desc-color: rgba(226, 232, 240, 0.84);
}

body[data-theme="eye"] {
  --lx-bg: #edf3e2;
  --lx-panel: rgba(248, 252, 241, 0.9);
  --lx-panel-strong: rgba(248, 252, 241, 0.96);
  --lx-line: rgba(141, 161, 125, 0.28);
  --lx-text: #31452f;
  --lx-text-soft: #60715a;
  --lx-title: #223320;
  --lx-accent: #5b8a52;
  --lx-accent-deep: #476f41;
  --lx-accent-soft: rgba(91, 138, 82, 0.14);
  --lx-shadow: 0 20px 45px rgba(77, 99, 68, 0.1);
  --lx-shadow-soft: 0 14px 30px rgba(111, 135, 98, 0.14);
  --lx-body-bg:
    radial-gradient(circle at top left, rgba(135, 166, 109, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f9ef 0%, #edf3e2 100%);
  --lx-blockquote-bg: #f3f8ea;
  --lx-table-bg: #f9fcf3;
  --lx-table-head-bg: #eff6e4;
  --lx-nav-page-bg: #f9fcf3;
  --lx-footer-bg: linear-gradient(180deg, rgba(249, 252, 243, 0.96), rgba(239, 246, 228, 0.96));
  --lx-footer-glow: radial-gradient(circle at top center, rgba(91, 138, 82, 0.12), transparent 42%);
  --lx-float-bg: rgba(249, 252, 243, 0.84);
  --lx-float-border: rgba(141, 161, 125, 0.28);
  --lx-float-shadow: 0 14px 28px rgba(111, 135, 98, 0.16);
  --lx-mode-menu-bg: rgba(249, 252, 243, 0.94);
  --lx-mode-menu-shadow: 0 18px 36px rgba(111, 135, 98, 0.18);
  --lx-mode-item-color: #55834c;
  --lx-mode-item-active: #ea580c;
  --lx-mode-trigger-bg:
    linear-gradient(180deg, rgba(249, 252, 243, 0.96), rgba(235, 244, 222, 0.92));
  --lx-mode-trigger-color: #2f3d2d;
  --lx-mode-trigger-shadow: 0 14px 28px rgba(111, 135, 98, 0.18);
  --lx-hero-title: #20301e;
  --lx-hero-desc-color: rgba(50, 68, 47, 0.82);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--lx-body-bg);
  color: var(--lx-text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: var(--lx-accent);
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--lx-accent-deep);
  text-decoration: none;
}

#top_nav {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

#home {
  max-width: 1180px;
  margin: 28px auto 40px;
  padding: 0 20px;
}

#header,
#navigator,
#footer {
  display: none;
}

#main {
  display: block;
}

#mainContent,
#sideBar,
.forFlow {
  min-width: 0;
}

#mainContent {
  max-width: 860px;
  margin: 0 auto;
}

#sideBar {
  display: none;
}

.lx-hero {
  margin-bottom: 28px;
}

body.lx-post-page .lx-hero {
  margin-bottom: 18px;
}

.lx-hero__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 42px 40px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 32px;
  aspect-ratio: 9981 / 5000;
  background:
    linear-gradient(90deg, rgba(243, 247, 255, 0.5) 0%, rgba(243, 247, 255, 0.24) 28%, rgba(243, 247, 255, 0.06) 56%, rgba(15, 23, 42, 0.14) 100%),
    var(--lx-hero-image) center center / cover no-repeat;
  box-shadow: var(--lx-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  isolation: isolate;
}

.lx-hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}

.lx-hero__inner > * {
  position: relative;
  z-index: 1;
}

body.lx-post-page .lx-hero__inner {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  background: none;
  box-shadow: none;
}

body.lx-post-page .lx-hero__inner::before {
  display: none;
}

.lx-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--lx-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lx-hero__title {
  margin: 0;
  max-width: 520px;
  color: var(--lx-hero-title);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.lx-hero__title a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lx-hero__title a:hover {
  color: var(--lx-accent-deep);
  transform: translateY(-1px);
}

.lx-hero__desc {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--lx-hero-desc-color);
  font-size: 17px;
  line-height: 1.95;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.lx-post-page .lx-hero__eyebrow,
body.lx-post-page .lx-hero__title,
body.lx-post-page .lx-hero__desc {
  display: none;
}

.lx-hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}

body.lx-post-page .lx-hero__nav {
  justify-content: center;
  margin-top: 0;
  padding-top: 0;
}

body.lx-post-page .lx-hero__nav a {
  min-width: 118px;
}

.lx-hero__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 112px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  color: rgba(15, 23, 42, 0.9);
  font-size: 15px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(148, 163, 184, 0.16);
}

.lx-hero__nav a::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06) 65%);
  pointer-events: none;
}

.lx-hero__nav a:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.12);
  color: var(--lx-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 16px 28px rgba(148, 163, 184, 0.22);
  transform: translateY(-1px);
}

.day {
  margin: 0 0 24px;
  padding: 28px 30px;
  border: 1px solid rgba(228, 234, 244, 0.92);
  border-radius: var(--lx-radius-lg);
  background: var(--lx-panel-strong);
  box-shadow: var(--lx-shadow-soft);
}

.dayTitle {
  margin: 0 0 18px;
}

.dayTitle a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lx-accent-soft);
  color: var(--lx-accent);
  font-size: 13px;
  font-weight: 700;
}

.postTitle {
  margin: 0 0 14px;
}

.postTitle a {
  color: var(--lx-title);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

.postCon,
.c_b_p_desc {
  color: var(--lx-text);
  font-size: 16px;
  line-height: 1.9;
}

.c_b_p_desc_readmore {
  font-weight: 700;
}

.postDesc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--lx-line);
  color: var(--lx-text-soft);
  font-size: 13px;
}

.postSeparator {
  display: none;
}

blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--lx-accent);
  border-radius: 0 14px 14px 0;
  background: var(--lx-blockquote-bg);
  color: var(--lx-text-soft);
}

pre,
.cnblogs_code {
  border: 1px solid #d9e2ef !important;
  border-radius: 18px;
  background: #0b1220 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 30px rgba(15, 23, 42, 0.12);
}

code,
pre,
.cnblogs_code {
  font-family: "Fira Code", "JetBrains Mono", Consolas, monospace !important;
}

pre code,
.cnblogs_code pre {
  color: #e8eefb !important;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: var(--lx-table-bg);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--lx-line);
  text-align: left;
}

th {
  background: var(--lx-table-head-bg);
  color: var(--lx-title);
}

.topicListFooter {
  margin-top: 8px;
}

#nav_next_page a,
#nav_next_page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--lx-line);
  border-radius: 999px;
  background: var(--lx-nav-page-bg);
}

.lx-footer-card {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 28px 30px;
  border: 1px solid rgba(228, 234, 244, 0.92);
  border-radius: 24px;
  background: var(--lx-footer-bg);
  box-shadow: var(--lx-shadow-soft);
  text-align: center;
}

.lx-footer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lx-footer-glow);
  pointer-events: none;
}

.lx-footer-card__title,
.lx-footer-card__text,
.lx-footer-card__links {
  position: relative;
  z-index: 1;
}

.lx-footer-card__title {
  color: var(--lx-title);
  font-size: 20px;
  font-weight: 700;
}

.lx-footer-card__text {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--lx-text-soft);
  font-size: 15px;
  line-height: 1.85;
}

.lx-footer-card__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.lx-footer-card__links a {
  color: var(--lx-accent);
  font-size: 14px;
  font-weight: 600;
}

.lx-float-actions {
  position: fixed;
  right: 26px;
  bottom: 28px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lx-mode-switch {
  position: relative;
}

.lx-mode-switch__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  min-width: 172px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: var(--lx-mode-menu-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--lx-mode-menu-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lx-mode-switch__menu::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  background: inherit;
  transform: rotate(45deg);
}

.lx-mode-switch.is-open .lx-mode-switch__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lx-mode-switch__item {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--lx-mode-item-color);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lx-mode-switch__item:hover {
  color: var(--lx-mode-item-active);
  transform: scale(1.04);
}

.lx-mode-switch__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: var(--lx-mode-trigger-bg);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  box-shadow: var(--lx-mode-trigger-shadow);
  color: var(--lx-mode-trigger-color);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.lx-mode-switch__trigger:hover {
  transform: translateY(-2px) scale(1.02);
}

.lx-mode-switch__trigger svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.lx-mode-switch__trigger[data-theme="light"] {
  color: #111827;
}

.lx-mode-switch__trigger[data-theme="dark"] {
  color: #e5eefc;
}

.lx-mode-switch__trigger[data-theme="eye"] {
  color: #476f41;
}

.lx-back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--lx-float-border);
  border-radius: 50%;
  background: var(--lx-float-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--lx-float-shadow);
  color: var(--lx-title);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lx-back-top:hover {
  background: rgba(239, 246, 255, 0.9);
  color: var(--lx-accent-deep);
  box-shadow: 0 18px 34px rgba(47, 99, 216, 0.18);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .lx-hero__inner {
    min-height: 360px;
    background:
      linear-gradient(180deg, rgba(243, 247, 255, 0.42) 0%, rgba(243, 247, 255, 0.2) 42%, rgba(15, 23, 42, 0.18) 100%),
      var(--lx-hero-image) center 28% / cover no-repeat;
  }
}

@media (max-width: 768px) {
  #home {
    margin-top: 16px;
    padding: 0 12px;
  }

  #mainContent {
    max-width: 100%;
  }

  .lx-hero__inner,
  .day,
  .lx-footer-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .lx-hero__inner {
    min-height: 300px;
  }

  body.lx-post-page .lx-hero {
    margin-bottom: 14px;
  }

  body.lx-post-page .lx-hero__inner {
    min-height: auto;
    padding: 0;
  }

  .lx-hero__title {
    max-width: 100%;
    font-size: clamp(30px, 10vw, 42px);
  }

  .lx-hero__desc,
  .postCon,
  .c_b_p_desc {
    font-size: 15px;
  }

  .lx-hero__nav {
    gap: 10px;
    padding-top: 20px;
  }

  .lx-hero__nav a {
    min-width: calc(50% - 5px);
    height: 42px;
    font-size: 14px;
  }

  body.lx-post-page .lx-hero__nav {
    gap: 10px;
    padding-top: 0;
  }

  body.lx-post-page .lx-hero__nav a {
    min-width: calc(50% - 5px);
  }

  .postTitle a {
    font-size: 22px;
  }

  .lx-float-actions {
    right: 16px;
    bottom: 18px;
    gap: 12px;
  }

  .lx-mode-switch__menu {
    min-width: 154px;
    padding: 12px 14px;
  }

  .lx-mode-switch__item {
    font-size: 17px;
  }

  .lx-mode-switch__trigger {
    width: 48px;
    height: 48px;
  }

  .lx-back-top {
    width: 46px;
    height: 46px;
    font-size: 12px;
  }
}
