:root {
  color-scheme: light;
  --bg: #020617;
  --bg-alt: #0a132f;
  --panel: rgba(255, 255, 255, 0.9);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.2);
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --shadow: 0 28px 60px rgba(15, 23, 42, 0.36);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.4);
  --scrollbar-track: rgba(15, 23, 42, 0.18);
  --scrollbar-thumb: rgba(56, 189, 248, 0.55);
  --scrollbar-thumb-hover: rgba(14, 165, 233, 0.75);
  --header-inline-padding: clamp(1.4rem, 3vw, 2.8rem);
  --layout-gutter: clamp(1.2rem, 3vw, 2.4rem);
  --safe-area-top: 0px;
  --safe-area-right: 0px;
  --safe-area-bottom: 0px;
  --safe-area-left: 0px;
}

@supports (top: env(safe-area-inset-top)) {
  :root {
    --safe-area-top: env(safe-area-inset-top);
    --safe-area-right: env(safe-area-inset-right);
    --safe-area-bottom: env(safe-area-inset-bottom);
    --safe-area-left: env(safe-area-inset-left);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

@media (min-width: 1000px) {
  body {
    /* 宽屏时强制展示滚动条,避免布局抖动 */
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }
}

button,
a,
input,
textarea,
select,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus,
button:focus-visible,
a:focus,
a:focus-visible,
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible,
[tabindex]:focus,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: none;
}

.back-to-top {
  position: fixed;
  right: calc(1.6rem + var(--safe-area-right));
  bottom: calc(1.8rem + var(--safe-area-bottom));
  width: 3.15rem;
  height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background-color: transparent;
  background-image: url("../images/back_to_top.png"),
    linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 120, 220, 0.95));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 62%, 100%;
  cursor: pointer;
  padding: 0;
  z-index: 140;
  box-shadow: 0 18px 38px rgba(8, 47, 73, 0.35), var(--glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease,
    filter 0.2s ease;
}

.back-to-top:hover {
  box-shadow: 0 20px 45px rgba(8, 47, 73, 0.45), 0 0 0 1px rgba(59, 130, 246, 0.22);
  filter: brightness(1.08);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 82% 0%, rgba(22, 78, 227, 0.18), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.25), transparent 60%);
  opacity: 0.85;
}

body::after {
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.65), transparent 55%),
    linear-gradient(120deg, rgba(8, 25, 80, 0.5), rgba(2, 6, 23, 0.9));
  z-index: -3;
}

.sidebar-inner,
#guide-list,
.guide,
.table-wrapper,
.table-wrapper__scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.sidebar-inner,
#guide-list {
  scrollbar-gutter: stable both-edges;
}

body::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar,
#guide-list::-webkit-scrollbar,
.guide::-webkit-scrollbar,
.table-wrapper__scroller::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

body::-webkit-scrollbar-track,
.sidebar-inner::-webkit-scrollbar-track,
#guide-list::-webkit-scrollbar-track,
.guide::-webkit-scrollbar-track,
.table-wrapper__scroller::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb,
.sidebar-inner::-webkit-scrollbar-thumb,
#guide-list::-webkit-scrollbar-thumb,
.guide::-webkit-scrollbar-thumb,
.table-wrapper__scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--scrollbar-thumb), var(--accent-strong));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
  box-shadow: inset 0 0 6px rgba(8, 47, 73, 0.35);
}

body::-webkit-scrollbar-thumb:hover,
.sidebar-inner::-webkit-scrollbar-thumb:hover,
#guide-list::-webkit-scrollbar-thumb:hover,
.guide::-webkit-scrollbar-thumb:hover,
.table-wrapper__scroller::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--scrollbar-thumb-hover), var(--accent));
}

.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}

/* 顶部加载条 */
.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.top-loader__bar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0) 0%, rgba(248, 113, 113, 0.88) 40%, rgba(239, 68, 68, 0.96) 60%, rgba(248, 113, 113, 0) 100%);
  background-size: 220% 100%;
  transform-origin: left;
  transform: scaleX(0.12);
  opacity: 0;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.65);
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.58));
}

.top-loader.is-active {
  opacity: 1;
  transform: translateY(0);
}

.top-loader.is-active .top-loader__bar {
  opacity: 1;
  animation: loaderSweep 1.2s ease-in-out infinite, loaderSheen 2.4s linear infinite;
}

.top-loader.is-finishing .top-loader__bar {
  animation: none;
  transition: transform 0.32s ease-out, opacity 0.35s ease-out, box-shadow 0.32s ease-out;
  transform: scaleX(1);
  opacity: 0;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.45);
}

@keyframes loaderSweep {
  0% {
    transform: scaleX(0.18);
  }

  45% {
    transform: scaleX(0.95);
  }

  100% {
    transform: scaleX(0.32);
  }
}

@keyframes loaderSheen {
  0% {
    background-position: 220% 0;
  }

  100% {
    background-position: -220% 0;
  }
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem var(--header-inline-padding);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.58), rgba(14, 165, 233, 0.3));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 25px 45px rgba(2, 6, 23, 0.55);
  border-radius: 0 0 28px 28px;
  backdrop-filter: blur(16px);
  padding-top: calc(1.1rem + var(--safe-area-top));
  padding-left: calc(var(--header-inline-padding) + var(--safe-area-left));
  padding-right: calc(var(--header-inline-padding) + var(--safe-area-right));
}

.branding h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  letter-spacing: 0.015em;
  background: linear-gradient(120deg, #e0f2fe, #38bdf8 45%, #bae6fd 85%);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
}

.branding p {
  margin: 0;
  color: rgba(224, 242, 254, 0.8);
  font-size: 0.92rem;
}

.nav-toggle {
  border: none;
  background: rgba(14, 165, 233, 0.28);
  color: #e0f2fe;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(125, 211, 252, 0.35);
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle:focus,
.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(14, 165, 233, 0.55);
  background: rgba(56, 189, 248, 0.4);
}

@media (min-width: 1024px) {
  .app-header {
    padding: 0.85rem clamp(1.6rem, 2.6vw, 2.4rem);
    gap: 1.1rem;
    justify-content: center;
    padding-top: calc(0.85rem + var(--safe-area-top));
    padding-left: calc(clamp(1.6rem, 2.6vw, 2.4rem) + var(--safe-area-left));
    padding-right: calc(clamp(1.6rem, 2.6vw, 2.4rem) + var(--safe-area-right));
  }

  .branding {
    text-align: center;
  }

  .branding h1 {
    font-size: clamp(1.28rem, 1.9vw, 1.9rem);
  }

  .branding p {
    font-size: 0.88rem;
  }
}

.app-body {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: var(--layout-gutter);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  width: min(1180px, 94vw);
  margin: 0 auto 2.5rem;
  align-items: stretch;
  padding-top: calc(var(--layout-gutter) + var(--safe-area-top));
  padding-bottom: calc(var(--layout-gutter) + var(--safe-area-bottom));
  padding-left: calc(var(--layout-gutter) + var(--safe-area-left));
  padding-right: calc(var(--layout-gutter) + var(--safe-area-right));
}

.sidebar {
  width: min(320px, 30vw);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.55), rgba(14, 165, 233, 0.26));
  border-radius: 28px;
  box-shadow: 0 28px 55px rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.28);
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 200px - var(--safe-area-top) - var(--safe-area-bottom));
  max-height: calc(100dvh - 200px - var(--safe-area-top) - var(--safe-area-bottom));
  padding: calc(1rem + var(--safe-area-top)) 0.45rem calc(1.2rem + var(--safe-area-bottom));
}

#guide-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.3rem 0.6rem;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.guide-empty {
  display: block;
  padding: 1.35rem;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.08);
  color: rgba(224, 242, 254, 0.7);
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.35);
}

.guide-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1.05rem;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: rgba(226, 232, 240, 0.95);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(12px);
  position: relative;
}

.guide-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.guide-link:hover,
.guide-link:focus {
  transform: translateY(-3px);
  background: rgba(248, 250, 252, 0.18);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.32);
  outline: none;
}

.guide-link.active {
  background: linear-gradient(125deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.8));
  color: #0b1120;
  border-color: transparent;
  box-shadow: 0 22px 45px rgba(56, 189, 248, 0.38);
}

.guide-link.active .guide-link-desc {
  color: rgba(15, 23, 42, 0.72);
}

.guide-link-title {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.guide-link-desc {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.72);
  line-height: 1.4;
}

.content {
  flex: 1;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 32px;
  box-shadow: 0 35px 60px rgba(15, 23, 42, 0.28);
  /* border: 1px solid rgba(148, 163, 184, 0.25); */
  padding: clamp(1.8rem, 3vw, 2.6rem);
  overflow: hidden;
  display: flex;
  position: relative;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(14, 165, 233, 0.12), transparent 60%);
  pointer-events: none;
  /* filter: blur(0.2px); */
}

.guide {
  flex: 1;
  overflow: auto;
  padding-right: 0.6rem;
  color: #0b1220;
  line-height: 1.75;
  position: relative;
}

.guide:focus {
  outline: none;
}

.guide:focus-visible {
  outline: none;
}

.guide h1,
.guide h2,
.guide h3,
.guide h4,
.guide h5 {
  color: #0f172a;
  scroll-margin-top: calc(110px + var(--safe-area-top));
}

.guide h1 {
  font-size: 2.2rem;
}

.guide h2 {
  font-size: 1.7rem;
}

.guide h3 {
  font-size: 1.35rem;
  color: #0284c7;
}

.guide h4 {
  font-size: 1.18rem;
  color: #0f4c81;
}

.guide a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.guide a:hover,
.guide a:focus {
  text-decoration: underline;
}

.guide p {
  margin: 0 0 1rem;
}

.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.5rem auto;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  animation: loadingPulse 1.4s ease-in-out infinite alternate;
}

.loading::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.92), rgba(56, 189, 248, 0.65));
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.55);
  animation: loadingOrb 0.9s ease-in-out infinite alternate;
}

@keyframes loadingPulse {
  from {
    transform: translateY(0);
    background: rgba(56, 189, 248, 0.12);
  }

  to {
    transform: translateY(-4px);
    background: rgba(56, 189, 248, 0.2);
  }
}

@keyframes loadingOrb {
  from {
    transform: scale(0.75);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  }

  to {
    transform: scale(1.15);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.7);
  }
}

.guide ul,
.guide ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.guide blockquote {
  margin: 1.6rem 0;
  padding: 1.2rem 1.5rem 1.2rem 1.6rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(14, 165, 233, 0.08));
  border-left: 4px solid rgba(56, 189, 248, 0.6);
  border-radius: 20px;
  box-shadow: 0 18px 35px rgba(148, 163, 184, 0.18);
}

.guide code {
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}

.guide pre code {
  display: block;
  padding: 1rem;
  overflow: auto;
}

.table-wrapper {
  position: relative;
  --table-radius: 18px;
  border-radius: var(--table-radius);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin: 1.4rem 0;
  /*background: rgba(255, 255, 255, 0.96);*/
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 20px 35px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.table-wrapper__scroller {
  position: relative;
  max-height: clamp(320px, 70vh, 520px);
  max-height: clamp(320px, 70dvh, 520px);
  overflow: auto;
  border-radius: calc(var(--table-radius) - 1px);
  /*background-color: transparent;*/
  /*background: rgba(248, 250, 252, 0.95);*/
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: min(360px, 100%);
  margin: 0;
}

.table-wrapper th,
.table-wrapper td {
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background: white;
  text-align: left;
  white-space: nowrap;
  position: relative;
}

.table-wrapper th {
  font-weight: 700;
  color: #0f172a;
}

.table-wrapper td {
  color: #0b1220;
}

.table-wrapper thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(120deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.92));
  z-index: 2;
  /*backdrop-filter: blur(6px);*/
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.25);
}

.table-wrapper tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.75);
}

.table-wrapper td:first-child,
.table-wrapper th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: linear-gradient(140deg, rgba(224, 242, 254, 0.95), rgba(191, 219, 254, 0.92));
  /*backdrop-filter: blur(14px);*/
  color: #0b1220;
  box-shadow: inset -1px 0 0 rgba(56, 189, 248, 0.18);
}

.table-wrapper thead th:first-child {
  z-index: 4;
  border-top-left-radius: 18px;
  background: linear-gradient(140deg, rgba(191, 219, 254, 0.98), rgba(165, 243, 252, 0.92));
}

.table-wrapper thead th:last-child {
  border-top-right-radius: 18px;
}

.table-wrapper tbody tr:last-child td:first-child,
.table-wrapper tbody tr:last-child th:first-child {
  border-bottom-left-radius: 18px;
}

.table-wrapper tbody tr:nth-child(even) td:first-child {
  background: linear-gradient(140deg, rgba(224, 242, 254, 0.98), rgba(165, 243, 252, 0.92));
}

.table-wrapper tbody tr:last-child td:last-child,
.table-wrapper tbody tr:last-child th:last-child {
  border-bottom-right-radius: 18px;
}



.table-hint {
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.35rem 0 1.2rem;
}

.app-footer {
  text-align: center;
  padding: 1.2rem 1rem 2.5rem;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .app-header {
    /* 移动端固定头部,避免滚动时离开视口 */
    position: sticky;
    top: calc(0px + var(--safe-area-top));
    z-index: 60;
  }

  .app-header {
    justify-content: space-between;
  }

  .branding p {
    display: none;
  }

  .app-body {
    padding: 1rem;
    width: 100%;
    margin: 0;
    flex-direction: column;
    gap: 1rem;
    padding-top: calc(1rem + var(--safe-area-top));
    padding-bottom: calc(1rem + var(--safe-area-bottom));
    padding-left: calc(1rem + var(--safe-area-left));
    padding-right: calc(1rem + var(--safe-area-right));
  }

  .sidebar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 24px)) scale(0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s ease;
    border-radius: 32px;
    width: min(92vw, 420px);
    max-height: 80vh;
    max-height: 80dvh;
    z-index: 40;
    display: flex;
    flex-direction: column;
  }

  .sidebar.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .sidebar::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(2px);
    z-index: -1;
    transition: opacity 0.28s ease;
    opacity: 0;
  }

  body.sidebar-visible {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
  }

  .sidebar.open::before {
    opacity: 1;
  }

  .content {
    padding: 1.4rem;
  }

  .guide {
    padding-right: 0;
  }

  .sidebar-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem 0.45rem;
  }

  #guide-list {
    padding: 0.5rem 0.4rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .table-wrapper {
    margin: 1rem 0;
  }

  .table-wrapper__scroller {
    max-height: clamp(260px, 70vh, 460px);
    max-height: clamp(260px, 70dvh, 460px);
    overflow-x: scroll;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable both-edges;
  }

  .table-hint {
    text-align: left;
    padding-left: 0.2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .app-header {
    gap: 1rem;
  }

  .nav-toggle {
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
  }

  .branding h1 {
    font-size: 1.2rem;
  }

  .content {
    padding: 1.1rem;
  }

  .guide {
    line-height: 1.65;
  }

  .guide h1 {
    font-size: 1.65rem;
  }

  .guide h2 {
    font-size: 1.32rem;
  }

  .guide h3 {
    font-size: 1.16rem;
  }

  .guide h4 {
    font-size: 1.02rem;
  }

  .guide p {
    margin-bottom: 0.85rem;
  }

  .guide-link {
    padding: 0.85rem 1rem;
  }

  .guide-link-title {
    font-size: 0.96rem;
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .table-hint {
    font-size: 0.78rem;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {

  .app-header,
  .sidebar {
    backdrop-filter: none;
  }

  .app-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.72), rgba(14, 165, 233, 0.42));
  }

  .sidebar {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.65), rgba(14, 165, 233, 0.36));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --panel: rgba(8, 15, 40, 0.92);
    --text: rgba(226, 232, 240, 0.92);
    --border: rgba(148, 163, 184, 0.18);
  }

  body {
    color: var(--text);
  }

  .app-header {
    background: linear-gradient(135deg, rgba(11, 21, 51, 0.95), rgba(30, 64, 175, 0.6), rgba(14, 165, 233, 0.32));
    color: var(--text);
  }

  .top-loader__bar {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0) 0%, rgba(14, 165, 233, 0.9) 45%, rgba(56, 189, 248, 0.95) 65%, rgba(14, 165, 233, 0) 100%);
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.7);
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.65));
  }

  .branding p {
    color: rgba(148, 163, 184, 0.82);
  }

  .sidebar {
    background: linear-gradient(160deg, rgba(8, 15, 40, 0.92), rgba(30, 64, 175, 0.55), rgba(14, 165, 233, 0.26));
    border-color: rgba(148, 163, 184, 0.25);
  }

  .guide-link {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.32);
    color: var(--text);
  }

  .guide-link::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .guide-link-desc {
    color: rgba(191, 219, 254, 0.75);
  }

  .guide-link.active {
    color: #0b1220;
  }

  .content {
    background: rgba(8, 15, 40, 0.9);
    /* border: 1px solid rgba(148, 163, 184, 0.2); */
    box-shadow: 0 30px 55px rgba(2, 6, 23, 0.55);
  }

  .content::before {
    background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.18), transparent 55%),
      radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.14), transparent 60%);
  }

  .guide {
    color: var(--text);
  }

  .guide blockquote {
    box-shadow: 0 18px 32px rgba(8, 47, 73, 0.35);
  }

  .guide code {
    background: rgba(56, 189, 248, 0.2);
  }

  .table-wrapper {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(148, 163, 184, 0.28);
  }

  .table-wrapper th,
  .table-wrapper td {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.35);
  }

  .table-wrapper tbody tr:nth-child(even) td {
    background: rgba(30, 41, 59, 0.85);
  }

  .table-wrapper thead th {
    background: linear-gradient(120deg, rgba(24, 33, 55, 0.95), rgba(17, 24, 39, 0.92));
  }

  .table-wrapper th:first-child,
  .table-wrapper td:first-child {
    background: linear-gradient(140deg, rgba(30, 41, 59, 0.95), rgba(56, 189, 248, 0.18));
    /*backdrop-filter: blur(12px);*/
    color: rgba(226, 232, 240, 0.95);
    box-shadow: inset -1px 0 0 rgba(56, 189, 248, 0.28);
  }

  .table-wrapper thead th:first-child {
    background: linear-gradient(140deg, rgba(30, 41, 59, 0.98), rgba(56, 189, 248, 0.32));
  }

  .table-wrapper tbody tr:nth-child(even) td:first-child {
    background: linear-gradient(140deg, rgba(37, 51, 74, 0.9), rgba(56, 189, 248, 0.22));
  }

  .table-hint {
    color: rgba(148, 163, 184, 0.78);
  }

  .app-footer {
    color: rgba(148, 163, 184, 0.75);
  }

  .loading {
    background: rgba(14, 165, 233, 0.22);
    color: rgba(191, 219, 254, 0.88);
  }
}