:root {
  --bg: #0b1220;
  --paper: #151c2c;
  --ink: #e8eef8;
  --muted: #8b97ad;
  --line: #243049;
  --lime: #c6ff3d;
  --mag: #ff3d8a;
  --cyan: #3ce0d0;
  --header-h: 4.15rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "IBM Plex Sans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(60, 224, 208, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(198, 255, 61, 0.04) 1px, transparent 1px),
    radial-gradient(900px 420px at 8% -10%, rgba(255, 61, 138, 0.18), transparent 55%),
    radial-gradient(720px 380px at 100% 0%, rgba(60, 224, 208, 0.14), transparent 50%),
    var(--bg);
  background-size: 48px 100%, 100% 28px, auto, auto, auto;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }
button { font: inherit; }

.wf-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: #0b1220;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.wf-skip:focus { left: 0.75rem; top: 0.75rem; }

.wf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.wf-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--lime) 0 18%, var(--cyan) 18% 52%, var(--mag) 52% 100%);
}

.wf-header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wf-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: #ffffff !important;
}
.wf-brand-mark {
  width: 1.35rem;
  height: 1.5rem;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 100%/3px 55% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 50% 100%/3px 100% no-repeat,
    linear-gradient(var(--mag), var(--mag)) 100% 100%/3px 70% no-repeat;
}
.wf-brand span:last-child {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  white-space: nowrap;
}

.wf-nav-toggle {
  margin-left: auto;
  height: 2.4rem;
  padding: 0 0.85rem 0 0.7rem;
  border: 1px solid var(--lime);
  background: transparent;
  color: var(--lime);
  display: none;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  z-index: 60;
  border-radius: 999px;
}
.wf-nav-toggle b {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}
.wf-nav-toggle i {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.wf-nav-toggle i span {
  width: 14px;
  height: 2px;
  background: var(--lime);
}

.wf-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2rem));
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 51;
  pointer-events: none;
}
.wf-nav > ul {
  pointer-events: auto;
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wf-nav-item { position: relative; }
.wf-nav-parent {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: default;
  color: #f8fafc;
  border: 1px solid transparent;
  border-radius: 999px;
}
.wf-nav-item:hover .wf-nav-parent,
.wf-nav-item:focus-within .wf-nav-parent {
  color: #0b1220;
  background: var(--lime);
  border-color: var(--lime);
}
.wf-sub {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
  background: #101826;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.wf-nav-item:hover .wf-sub,
.wf-nav-item:focus-within .wf-sub { display: block; }
.wf-sub a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  border-radius: 0.55rem;
}
.wf-sub a:hover {
  background: rgba(198, 255, 61, 0.14);
  color: var(--lime);
}

.wf-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.3rem auto 3rem;
}
.wf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.8rem;
  gap: 1.45rem;
  align-items: start;
}

.wf-banner {
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background: #0a0f1a;
  position: relative;
}
.wf-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--cyan), var(--mag));
}
.wf-banner img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  opacity: 0.9;
}

.wf-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.wf-card {
  display: grid;
  grid-template-columns: 1.7rem 5.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease);
}
.wf-card::before {
  content: "";
  width: 1.7rem;
  height: 5.4rem;
  align-self: center;
  background:
    linear-gradient(var(--lime), var(--lime)) 0% 100%/3px 62% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 28% 100%/3px 38% no-repeat,
    linear-gradient(var(--lime), var(--lime)) 56% 100%/3px 92% no-repeat,
    linear-gradient(var(--mag), var(--mag)) 84% 100%/3px 54% no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) 100% 100%/3px 74% no-repeat;
}
.wf-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
}
.wf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 255, 61, 0.55);
}
.wf-card-cover {
  overflow: hidden;
  background: #0a0f1a;
  min-height: 5.4rem;
  height: 5.4rem;
  border-radius: 0.7rem;
}
.wf-card-cover img {
  width: 100%;
  height: 5.4rem;
  object-fit: cover;
  min-height: 5.4rem;
}
.wf-card h2 {
  margin: 0 0 0.28rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.4;
  font-weight: 750;
}
.wf-card h2 a { color: var(--ink); }
.wf-card h2 a:hover { color: var(--lime); }
.wf-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wf-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--cyan);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}
.wf-meta-l {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.wf-avatar {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: cover;
  border-radius: 50%;
}

.wf-crumb {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.wf-crumb a { color: var(--lime); }

.wf-pager {
  display: flex;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 1.15rem 0 0.2rem;
}
.wf-pager a {
  min-width: 6.8rem;
  text-align: center;
  padding: 0.65rem 1.05rem;
  background: var(--lime);
  color: #0b1220 !important;
  font-weight: 800;
  border-radius: 999px;
}
.wf-pager a:hover { background: var(--cyan); }

.wf-aside {
  position: sticky;
  top: calc(var(--header-h) + 0.9rem);
  display: grid;
  gap: 0.85rem;
}
.wf-side {
  background: var(--paper);
  padding: 0.95rem 0.95rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
}
.wf-side h3 {
  margin: 0 0 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-transform: uppercase;
}
.wf-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: n;
}
.wf-side li { border-top: 1px dashed var(--line); }
.wf-side li a {
  display: flex;
  gap: 0.5rem;
  padding: 0.58rem 0;
  color: var(--ink);
  font-size: 0.88rem;
}
.wf-side .wf-widlist a::before {
  counter-increment: n;
  content: counter(n, decimal-leading-zero);
  color: var(--mag);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: 0 0 1.5rem;
  font-size: 0.76rem;
}
.wf-topthub a {
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0;
}
.wf-topthub img {
  width: 100%;
  height: 7.4rem;
  object-fit: cover;
  border-radius: 0.7rem;
}
.wf-topthub span { font-weight: 650; }

.wf-article-card {
  background: var(--paper);
  padding: clamp(1.15rem, 3.2vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: inset 5px 0 0 var(--lime);
}
.wf-article-card h1 {
  margin: 0 0 0.7rem;
  text-align: left;
  font-size: clamp(1.32rem, 3vw, 1.9rem);
  line-height: 1.35;
}
.wf-bloginfo {
  display: flex;
  justify-content: flex-start;
  color: var(--cyan);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}
.wf-bloginfo ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wf-prose {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.95;
  color: #d5deea;
  max-width: 44rem;
}
.wf-prose img,
.wf-prose video,
.wf-prose iframe,
.wf-prose table { max-width: 100%; }
.wf-prose table { display: block; overflow-x: auto; }
.wf-copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.wf-pagerow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.15rem;
}
.wf-pagerow a {
  display: block;
  padding: 0.8rem 0.9rem;
  background: rgba(60, 224, 208, 0.08);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
}
.wf-pagerow .next { text-align: right; }

.wf-footer {
  background: #070b14;
  padding: 1.5rem 1rem 2.3rem;
  text-align: center;
  color: #8b97ad;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}
.wf-footer p { margin: 0 0 0.7rem; }
.wf-footer a { color: var(--lime); margin: 0 0.35rem; }

#go-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--lime);
  color: #0b1220;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.18);
}
#go-to-top::after { content: "↑"; font-size: 1.05rem; font-weight: 800; }

.wf-mask { display: none; }

@media (max-width: 980px) {
  .wf-layout { grid-template-columns: 1fr; }
  .wf-aside { position: static; }
}

@media (max-width: 768px) {
  .wf-nav-toggle { display: inline-flex; }
  .wf-nav {
    left: auto;
    right: 0;
    top: 0;
    width: min(84vw, 20rem);
    height: 100dvh;
    margin: 0;
    display: block;
    background: #101826;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.4);
    padding: 5rem 1.1rem 1.5rem;
    transform: translateX(110%);
    transition: transform 0.35s var(--ease), visibility 0.35s;
    overflow-y: auto;
    visibility: hidden;
    z-index: 55;
    pointer-events: auto;
    border-left: 3px solid var(--lime);
  }
  body.nav-open .wf-nav {
    transform: translateX(0);
    visibility: visible;
  }
  .wf-nav > ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  .wf-sub {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0.4rem 0.8rem;
    background: transparent;
  }
  .wf-nav-parent {
    color: var(--ink);
  }
  .wf-nav-item:hover .wf-nav-parent {
    background: rgba(198, 255, 61, 0.16);
    color: var(--lime);
  }
  .wf-mask {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 40;
  }
  body.nav-open .wf-mask {
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open { overflow: hidden; }
  .wf-card {
    grid-template-columns: 1.4rem 4.4rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem;
  }
  .wf-card::before {
    width: 1.4rem;
    height: 4.4rem;
  }
  .wf-card-cover,
  .wf-card-cover img {
    min-height: 4.4rem;
    height: 4.4rem;
  }
  .wf-pagerow { grid-template-columns: 1fr; }
  .wf-pagerow .next { text-align: left; }
}

@media (max-width: 420px) {
  .wf-card {
    grid-template-columns: 1.3rem minmax(0, 1fr);
    grid-template-areas: "eq cover" "eq body";
  }
  .wf-card::before { grid-area: eq; height: auto; }
  .wf-card-cover { grid-area: cover; }
  .wf-card > div { grid-area: body; }
  .wf-card-cover,
  .wf-card-cover img {
    width: 100%;
    height: 8.5rem;
    min-height: 8.5rem;
  }
}

@media (min-width: 1440px) {
  :root { --max: 1260px; }
}

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