:root {
  color-scheme: light;
  --color-primary: #7657ff;
  --color-primary-dark: #5136c7;
  --color-accent: #f3bf5a;
  --color-heading: #201a33;
  --color-text: #3f3852;
  --color-muted: #706982;
  --color-surface: #fff;
  --color-surface-subtle: #f5f2fc;
  --color-page: #f5f3fa;
  --color-border: #e8e2f2;
  --color-danger: #b42318;
  --radius-small: 10px;
  --radius-card: 18px;
  --shadow-small: 0 8px 28px rgb(45 32 74 / 8%);
  --shadow-medium: 0 18px 48px rgb(45 32 74 / 14%);
  --content-width: 1080px;
  --nav-height: 64px;
}

@keyframes page-enter {
  from { opacity: 0; }
}

@keyframes page-content-enter {
  from { transform: translateY(8px); }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--nav-height) + 32px);
}

.overlay-scrollbar { display: none; }

@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .overlay-scrollbar {
    position: fixed;
    z-index: 1800;
    top: 4px;
    right: 3px;
    bottom: 4px;
    display: block;
    width: 8px;
    pointer-events: none;
  }

  .overlay-scrollbar.is-hidden { opacity: 0; }

  .overlay-scrollbar-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    min-height: 48px;
    background: rgb(79 70 96 / 42%);
    border-radius: 999px;
    cursor: grab;
    opacity: 0.68;
    pointer-events: auto;
    transition: background-color 160ms ease, opacity 160ms ease, width 160ms ease;
  }

  .overlay-scrollbar-thumb:hover,
  .overlay-scrollbar-thumb.is-dragging {
    width: 8px;
    background: rgb(81 54 135 / 68%);
    opacity: 1;
  }

  .overlay-scrollbar-thumb.is-dragging { cursor: grabbing; }
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: calc(var(--nav-height) + 52px) 20px 28px;
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 0%, rgb(118 87 255 / 8%), transparent 26rem),
    var(--color-page);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  line-height: 1.6;
  animation: page-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: opacity 160ms cubic-bezier(0.4, 0, 1, 1);
}

html.is-leaving body {
  opacity: 0;
}

a,
button {
  -webkit-tap-highlight-color: rgb(118 87 255 / 18%);
}

button[type="button"] {
  appearance: none;
  -webkit-appearance: none;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 14px;
  color: #fff;
  background: #241d3e;
  border-radius: var(--radius-small);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 12px 20px auto;
}

.navbar-container {
  position: relative;
  display: flex;
  width: min(100%, 1120px);
  min-height: var(--nav-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-inline: auto;
  padding: 8px 10px;
  color: #fff;
  background: rgb(24 18 43 / 88%);
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgb(16 10 31 / 24%);
  backdrop-filter: blur(18px) saturate(125%);
}

.navbar-container a {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 12px rgb(118 87 255 / 28%));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 11px;
  color: rgb(255 255 255 / 78%);
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-intro { position: static; }

.nav-intro-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  color: rgb(255 255 255 / 78%);
  border-radius: 11px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.nav-intro-link:hover {
  color: #fff;
  background: rgb(255 255 255 / 11%);
  transform: translateY(-1px);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 11%);
}

.nav-links a[aria-current="page"] {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.content-main,
.home-main {
  width: min(100%, var(--content-width));
  margin-inline: auto;
  animation: page-content-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: transform 160ms cubic-bezier(0.4, 0, 1, 1);
}

html.is-leaving .content-main,
html.is-leaving .home-main,
html.is-leaving .site-footer {
  transform: translateY(-6px);
}

.content-main {
  min-height: 65vh;
}

h1 {
  margin: 0;
  color: var(--color-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.page-heading {
  max-width: 720px;
  margin: 28px auto 32px;
  text-align: center;
}

.page-heading::before {
  display: block;
  width: 54px;
  height: 5px;
  margin: 0 auto 22px;
  background: linear-gradient(90deg, var(--color-primary), #b66bdf, var(--color-accent));
  border-radius: 99px;
  content: "";
}

.page-heading > p:last-child {
  margin: 15px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.page-kicker {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.title-aside {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--color-primary);
  font-size: 0.45em;
  font-weight: 750;
  letter-spacing: 0.08em;
  vertical-align: 0.42em;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
}

.action-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  color: var(--color-primary-dark);
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgb(45 32 74 / 5%);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.action-links a:hover {
  border-color: rgb(118 87 255 / 45%);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  width: min(100%, var(--content-width));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 54px auto 0;
  padding: 24px 4px 4px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  transition: transform 160ms cubic-bezier(0.4, 0, 1, 1);
}

.footer-brand {
  color: var(--color-heading);
  font-weight: 800;
}

.custom-link {
  color: #7040c6;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.custom-link:hover {
  color: #9668db;
}

.text-red { color: #c40000; }
.text-green { color: #087b2c; }
.text-darkcyan { color: darkcyan; }
.text-lightseagreen { color: #147d77; }

.text-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.loading-state {
  width: 100%;
  margin: 30px auto;
  color: var(--color-muted);
  text-align: center;
}

.error-state { color: var(--color-danger); }

/* Homepage */
.page-home {
  position: relative;
  isolation: isolate;
  padding: 0 24px 30px;
  color: #fff;
  background: #100d17;
}

.home-background {
  position: fixed;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  height: 100vh;
  overflow: hidden;
  background: #100d17;
  pointer-events: none;
}

@supports (height: 100lvh) {
  .home-background { height: 100lvh; }
}

.home-background-layer {
  position: absolute;
  z-index: 0;
  inset: -1.5%;
  background-position: center;
  background-size: cover;
  filter: saturate(0.82) contrast(1.06);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity var(--cover-transition-duration, 1400ms) ease-in-out;
  will-change: opacity;
}

.home-background-layer.is-active { opacity: 1; }

.home-background-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(12 8 24 / 16%) 0%, rgb(10 7 20 / 20%) 50%, rgb(12 8 24 / 16%) 100%),
    linear-gradient(0deg, rgb(11 8 18 / 70%) 0%, transparent 48%, rgb(8 6 14 / 34%) 100%);
  opacity: 0.34;
  transition: opacity var(--cover-transition-duration, 1400ms) ease-in-out;
}

.home-main {
  display: block;
  padding-block: 126px 72px;
}

.home-hero {
  display: grid;
  min-height: calc(100vh - 198px);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.75fr);
}

.hero-copy {
  max-width: 670px;
}

.server-live-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  padding: 8px 13px;
  color: rgb(255 255 255 / 84%);
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #7ae8a4;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(122 232 164 / 11%), 0 0 14px rgb(122 232 164 / 65%);
}

.server-live-status[data-state="loading"] .status-dot,
.server-live-status[data-state="error"] .status-dot {
  background: #f3c867;
  box-shadow: 0 0 0 5px rgb(243 200 103 / 11%), 0 0 14px rgb(243 200 103 / 55%);
}

.server-live-status[data-state="offline"] .status-dot {
  background: #ff7a8a;
  box-shadow: 0 0 0 5px rgb(255 122 138 / 11%), 0 0 14px rgb(255 122 138 / 55%);
}

.live-status-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.live-status-item small {
  color: rgb(255 255 255 / 52%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.live-status-item strong {
  color: #f4ce78;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.live-status-divider {
  width: 1px;
  height: 16px;
  background: rgb(255 255 255 / 15%);
}

.home-main h1 {
  color: #fff;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-shadow: 0 9px 40px rgb(0 0 0 / 45%);
}

.home-main h1 span {
  color: transparent;
  background: linear-gradient(100deg, #fff 4%, #e0bcff 48%, #f3c867 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.home-tagline {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 700;
  line-height: 1.85;
  text-shadow: 0 2px 4px rgb(0 0 0 / 80%), 0 5px 20px rgb(0 0 0 / 68%);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #1d1630;
  background: #f1cf78;
  box-shadow: 0 14px 32px rgb(208 156 255 / 20%);
}

.button-primary:hover { box-shadow: 0 18px 40px rgb(208 156 255 / 30%); }

.button-secondary {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 18%);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 28%);
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 27px;
}

.intro-links a {
  color: rgb(255 255 255 / 62%);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.intro-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.server-card {
  padding: 24px;
  background: linear-gradient(145deg, rgb(28 20 48 / 72%), rgb(19 15 31 / 62%));
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 32%);
  backdrop-filter: blur(18px) saturate(125%);
}

.server-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.server-card-icon {
  display: grid;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  place-items: center;
  color: #efca75;
  background: rgb(243 191 90 / 11%);
  border: 1px solid rgb(243 191 90 / 20%);
  border-radius: 14px;
}

.server-card-heading span:not(.server-card-icon) {
  display: block;
  color: rgb(255 255 255 / 56%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.server-card-heading strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feature-list > div {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 13px;
  grid-template-columns: 24px 1fr;
  transition: background-color 180ms ease, transform 180ms ease;
}

.feature-list > div:hover {
  background: rgb(255 255 255 / 5%);
  transform: translateX(3px);
}

.feature-list > div > i {
  color: #c8a1ff;
  text-align: center;
  transition: color 180ms ease, transform 180ms ease;
}

.feature-list > div:hover > i {
  color: #dec8ff;
  transform: scale(1.08);
}

.feature-list strong,
.feature-list small { display: block; }
.feature-list strong { color: rgb(255 255 255 / 91%); }

.feature-list small {
  margin-top: 2px;
  color: rgb(255 255 255 / 49%);
  line-height: 1.45;
}

.home-intro-section {
  position: relative;
  scroll-margin-top: 112px;
  margin-top: 56px;
  padding-block: 44px 16px;
}

.home-intro-section::before {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: #100d17;
  border-top: 1px solid rgb(255 255 255 / 8%);
  content: "";
}

.home-intro-shell {
  padding: 28px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgb(0 0 0 / 22%);
}

.home-intro-heading {
  display: grid;
  gap: 10px;
  max-width: 820px;
  margin-bottom: 22px;
}

.home-intro-heading p {
  margin: 0;
  color: #d5adff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.home-intro-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.home-intro-heading span {
  color: rgb(255 255 255 / 64%);
  font-size: clamp(0.98rem, 1.7vw, 1.16rem);
  font-weight: 650;
  line-height: 1.75;
}

.home-intro-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.home-intro-statement,
.home-intro-status,
.home-intro-features article {
  position: relative;
  overflow: hidden;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
}

.home-intro-statement {
  padding: 24px;
}

.home-intro-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: #f1cf78;
  background: rgb(241 207 120 / 9%);
  border: 1px solid rgb(241 207 120 / 14%);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.home-intro-statement > p {
  max-width: 760px;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  font-weight: 720;
  line-height: 1.72;
}

.home-intro-principles {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-intro-principles div {
  padding: 14px;
  background: rgb(255 255 255 / 4%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 13px;
}

.home-intro-principles strong,
.home-intro-principles span {
  display: block;
}

.home-intro-principles strong {
  color: #fff;
  font-size: 0.92rem;
}

.home-intro-principles span {
  margin-top: 5px;
  color: rgb(255 255 255 / 52%);
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-intro-status {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
}

.home-intro-status .home-intro-label { margin-bottom: 0; }

.home-intro-status small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8debad;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-intro-status small i { font-size: 0.48rem; }

.home-intro-status strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 1.35rem;
}

.home-intro-status > div > span {
  display: block;
  margin-top: 5px;
  color: #f1cf78;
  font-weight: 850;
}

.home-intro-status dl {
  display: grid;
  gap: 8px;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-intro-status dl div {
  min-width: 0;
  padding: 10px;
  background: rgb(255 255 255 / 5%);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 12px;
}

.home-intro-status dt {
  color: rgb(255 255 255 / 44%);
  font-size: 0.66rem;
  font-weight: 800;
}

.home-intro-status dd {
  margin: 3px 0 0;
  color: rgb(255 255 255 / 88%);
  font-size: 0.78rem;
  font-weight: 800;
}

.home-intro-features {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-intro-features article {
  padding: 18px;
}

.home-intro-features i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #cf9cff;
  background: rgb(207 156 255 / 12%);
  border: 1px solid rgb(207 156 255 / 16%);
  border-radius: 11px;
}

.home-intro-features h3 {
  margin: 15px 0 0;
  color: #fff;
  font-size: 1rem;
}

.home-intro-features p {
  margin: 8px 0 0;
  color: rgb(255 255 255 / 52%);
  font-size: 0.84rem;
  line-height: 1.65;
}

.home-intro-features code {
  color: #e3c6ff;
  font: inherit;
  font-weight: 750;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.page-home .site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  color: rgb(255 255 255 / 52%);
  border-color: rgb(255 255 255 / 12%);
}

.page-home .footer-brand { color: rgb(255 255 255 / 86%); }

/* FAQ */
.faq-tools {
  width: min(100%, 880px);
  margin: 0 auto 30px;
}

.faq-search {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 13px;
  padding: 0 19px;
  color: var(--color-primary);
  background: rgb(255 255 255 / 94%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-search:focus-within {
  border-color: rgb(118 87 255 / 48%);
  box-shadow: 0 12px 34px rgb(74 49 135 / 13%);
}

.faq-search input {
  width: 100%;
  padding: 0;
  color: var(--color-heading);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1.02rem;
}

.faq-search input::placeholder { color: #9991aa; }

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.faq-categories button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 14px;
  color: var(--color-muted);
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.faq-categories button:hover { transform: translateY(-1px); }

.faq-categories button span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--color-muted);
  background: var(--color-surface-subtle);
  border-radius: 999px;
  font-size: 0.73rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.faq-categories button[aria-pressed="true"] {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.faq-categories button[aria-pressed="true"] span {
  color: #fff;
  background: rgb(255 255 255 / 17%);
}

.faq-result-count {
  margin: 12px 2px 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.faq-layout {
  display: grid;
  align-items: start;
  gap: 28px;
  grid-template-columns: 190px minmax(0, 1fr);
}

.faq-index {
  position: sticky;
  top: calc(var(--nav-height) + 34px);
  padding: 18px;
  background: rgb(255 255 255 / 68%);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.faq-index-title {
  margin: 0 8px 10px;
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.faq-index nav { display: grid; gap: 4px; }

.faq-index button {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.87rem;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.faq-index button small { opacity: 0.68; }

.faq-index button:hover,
.faq-index button.is-active {
  color: var(--color-primary-dark);
  background: var(--color-surface-subtle);
}

.faq-index button:hover { transform: translateX(2px); }

.faq {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.faq.is-empty::after {
  padding: 44px 20px;
  color: var(--color-muted);
  background: rgb(255 255 255 / 58%);
  border: 1px dashed #d6cde4;
  border-radius: var(--radius-card);
  content: "这里暂时空空如也";
  text-align: center;
}

.faq-item,
.entry {
  overflow: hidden;
  background: rgb(255 255 255 / 92%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 360ms ease, transform 360ms ease;
}

.faq-item:hover,
.entry:hover {
  border-color: rgb(118 87 255 / 24%);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--color-heading);
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: left;
}

.faq-question > span { min-width: 0; }

.faq-question > small {
  margin-left: auto;
  padding: 4px 8px;
  color: var(--color-primary-dark);
  background: var(--color-surface-subtle);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.faq-toggle-icon {
  position: relative;
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--color-primary-dark);
  background: var(--color-surface-subtle);
  border-radius: 9px;
  transition: background-color 180ms ease, transform 220ms ease;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  position: absolute;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  content: "";
  transition: opacity 180ms ease, transform 220ms ease;
}

.faq-toggle-icon::after { transform: rotate(90deg); }

.faq-question[aria-expanded="true"] .faq-toggle-icon {
  background: #ebe5fb;
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] .faq-toggle-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.disclosure-region {
  overflow: hidden;
}

.faq-answer {
  margin: 0 22px 22px;
  padding: 16px 18px;
  color: #554d68;
  background: var(--color-surface-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px 12px 12px 4px;
  line-height: 1.75;
}

/* Fun list */
.fun-intro {
  width: min(100%, 820px);
  margin: 0 auto 25px;
  padding: 17px 20px;
  color: var(--color-text);
  background: rgb(255 255 255 / 64%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 1rem;
  text-align: center;
}

.fun-intro strong { color: #b42318; }

.fun-list {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 42px;
}

.fun-list::before {
  position: absolute;
  inset: 8px auto 8px 11px;
  width: 2px;
  background: linear-gradient(var(--color-primary), #c89de8 72%, transparent);
  border-radius: 99px;
  content: "";
}

.entry {
  position: relative;
  overflow: visible;
  padding: clamp(18px, 3vw, 28px);
}

.entry::before {
  position: absolute;
  top: 30px;
  left: -39px;
  width: 18px;
  height: 18px;
  background: var(--color-surface);
  border: 5px solid var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--color-page);
  content: "";
}

.entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.entry-overline {
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.entry-header h2 {
  margin: 5px 0 0;
  color: var(--color-heading);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.entry-header time {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--color-muted);
  background: var(--color-surface-subtle);
  border-radius: 999px;
  font-size: 0.9rem;
}

.entry-summary {
  margin: 18px 0 16px;
  color: #5d556f;
  line-height: 1.75;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.result-badges span {
  padding: 5px 9px;
  color: #8d3347;
  background: #fff0f2;
  border: 1px solid #f5d7dd;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.entry-metadata {
  display: grid;
  gap: 10px;
  padding: 15px 17px;
  background: var(--color-surface-subtle);
  border-radius: 13px;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.entry-metadata > div { min-width: 0; }

.entry-metadata span,
.entry-metadata strong { display: block; }

.entry-metadata span {
  color: var(--color-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-metadata strong {
  margin-top: 2px;
  overflow-wrap: anywhere;
  color: var(--color-heading);
  font-size: 0.91rem;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.entry-action {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--color-primary-dark);
  background: #fff;
  border: 1px solid #ddd4ed;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.entry-action:hover {
  background: var(--color-surface-subtle);
  border-color: rgb(118 87 255 / 38%);
  transform: translateY(-1px);
}

.entry-action-chevron {
  margin-left: 2px;
  font-size: 0.7rem;
  transition: transform 220ms ease;
}

.entry-action[aria-expanded="true"] .entry-action-chevron { transform: rotate(180deg); }

.entry-story {
  margin-top: 18px;
  padding: 18px 20px;
  color: #554d68;
  background: var(--color-surface-subtle);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px 12px 12px 4px;
  line-height: 1.75;
}

.entry-story h3 {
  margin: 0 0 10px;
  color: var(--color-heading);
  font-size: 1rem;
}

.image-container {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-thumbnail {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 120px;
  padding: 0;
  overflow: hidden;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  cursor: zoom-in;
}

.image-thumbnail::after {
  position: absolute;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  background: rgb(25 18 41 / 72%);
  border-radius: 10px;
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  opacity: 0;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -40%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.image-thumbnail:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.image-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  max-height: 210px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.image-thumbnail:hover img { transform: scale(1.025); }

.image-lightbox {
  width: min(94vw, 1180px);
  max-width: none;
  max-height: 92vh;
  padding: 16px;
  overflow: visible;
  color: #fff;
  background: #14101e;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  box-shadow: 0 30px 100px rgb(0 0 0 / 55%);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: none), (pointer: coarse) {
  a,
  button {
    -webkit-tap-highlight-color: transparent;
  }

  .faq-item:hover,
  .entry:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-small);
    transform: none;
  }

  .entry-action:hover {
    background: #fff;
    border-color: #ddd4ed;
    transform: none;
  }

  .faq-categories button:hover,
  .faq-index button:hover {
    transform: none;
  }

  .image-thumbnail:hover::after { opacity: 0; }
  .image-thumbnail:hover img { transform: none; }
}

.image-lightbox.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-lightbox::backdrop {
  background: rgb(8 5 13 / 84%);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.image-lightbox.is-open::backdrop { opacity: 1; }

.image-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 76px);
  margin: auto;
  border-radius: 11px;
  object-fit: contain;
}

.image-lightbox p {
  margin: 11px 45px 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.88rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 1;
  top: -14px;
  right: -14px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #fff;
  background: #2b223a;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 50%;
  cursor: pointer;
}

.has-reveal .faq-item,
.has-reveal .entry {
  opacity: 0;
  transform: translateY(18px);
}

.has-reveal .faq-item.is-visible,
.has-reveal .entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.has-reveal .faq-item.is-visible:hover,
.has-reveal .entry.is-visible:hover {
  transform: translateY(-2px);
}

[hidden] { display: none !important; }

@media (max-width: 820px) {
  .home-hero {
    max-width: 680px;
    margin-inline: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy { max-width: none; }

  .home-intro-overview,
  .home-intro-principles,
  .home-intro-features { grid-template-columns: 1fr; }

  .home-background-overlay {
    background:
      linear-gradient(90deg, rgb(12 8 24 / 70%) 0%, rgb(14 10 25 / 58%) 50%, rgb(12 8 24 / 70%) 100%),
      linear-gradient(0deg, rgb(11 8 18 / 78%), transparent 55%, rgb(8 6 14 / 40%));
  }

  .faq-layout { grid-template-columns: 1fr; }
  .faq-index { display: none; }
}

@media (max-width: 600px) {
  :root { --nav-height: 60px; }

  body {
    padding: calc(var(--nav-height) + 42px) 12px 22px;
  }

  .site-header { inset: 8px 8px auto; }

  .navbar-container {
    gap: 6px;
    padding: 6px 7px;
    border-radius: 14px;
  }

  .brand {
    gap: 7px;
    padding-right: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-name { display: none; }

  .nav-links {
    flex: 1;
    justify-content: flex-end;
  }

  .nav-links a {
    width: 48px;
    min-height: 46px;
    padding: 8px;
    font-size: 1.05rem;
  }

  .nav-intro-link {
    width: 48px;
    min-height: 46px;
    padding: 8px;
    font-size: 1.05rem;
  }

  .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .page-heading { margin-top: 14px; }
  .page-heading::before { margin-bottom: 18px; }

  .page-home { padding-inline: 16px; }

  .home-main { padding-block: 112px 54px; }

  .home-hero { min-height: auto; }

  .home-main h1 { font-size: clamp(3.25rem, 18vw, 5rem); }

  .home-tagline br { display: none; }

  .hero-actions { flex-direction: column; }
  .button { width: 100%; }

  .intro-links { gap: 9px 18px; }

  .server-card { padding: 19px; }

  .home-intro-section {
    margin-top: 52px;
    padding-block: 36px 6px;
  }

  .home-intro-shell { padding: 18px; }

  .home-intro-heading { margin-bottom: 18px; }

  .home-intro-status { padding: 18px; }

  .home-intro-status dl { grid-template-columns: 1fr 1fr; }

  .home-intro-actions { flex-direction: column; }

  .action-links { margin-bottom: 24px; }

  .faq-question { padding: 16px; }

  .faq-question > small { display: none; }

  .faq-answer { margin: 0 16px 16px; }

  .entry { padding: 17px; }

  .fun-list { padding-left: 22px; }

  .fun-list::before { left: 4px; }

  .entry::before {
    top: 27px;
    left: -24px;
    width: 14px;
    height: 14px;
    border-width: 4px;
    box-shadow: 0 0 0 4px var(--color-page);
  }

  .entry-header { gap: 12px; }

  .entry-header time {
    padding: 4px 7px;
    font-size: 0.76rem;
  }

  .entry-metadata { grid-template-columns: 1fr; }

  .entry-actions { display: grid; grid-template-columns: 1fr; }
  .entry-action { width: 100%; }

  .image-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .image-lightbox {
    width: calc(100vw - 20px);
    padding: 10px;
    border-radius: 14px;
  }

  .lightbox-close { top: 8px; right: 8px; }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 38px;
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
