:root {
  --bg: #dfe8f6;
  --bg2: #eef3fb;
  --text: #0f1728;
  --muted: #51607a;
  --glass: rgba(255,255,255,.38);
  --glass-strong: rgba(255,255,255,.52);
  --line: rgba(255,255,255,.45);
  --shadow: 0 20px 50px rgba(31,41,55,.12);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1200px;
  --accent: #5b8cff;
  --accent2: #8b7dff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 16px/1.8 -apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left,rgba(255,255,255,.9),rgba(255,255,255,.45) 28%,rgba(223,232,246,.15) 50%),url('./assets/backgrounds/default.avif') center/cover fixed no-repeat;
  background-color: var(--bg);
}

body: before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg,rgba(239,244,251,.72),rgba(223,232,246,.52));
  backdrop-filter: saturate(1.15);
  z-index: -2;
}

.container {
  width: min(calc(100% - 32px),var(--max));
  margin: 0 auto;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.28);
  -webkit-backdrop-filter: blur(22px) saturate(1.28);
  border-radius: var(--radius);
}

a {
  text-decoration: none;
  color: #244a9d;
}

a:hover {
  color: #17356f;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  color: #0a1020;
}

.brand span {
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navlinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.navlinks a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.55);
  color: #16315f;
}

.hero {
  padding: 24px 0 18px;
}

.hero-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

. hero-card: after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,rgba(91,140,255,.18),rgba(139,125,255,.1),transparent 68%);
  filter: blur(8px);
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 13px;
  color: #31415e;
}

h1 {
  margin: 12px 0 10px;
  line-height: 1.12;
  font-size: 42px;
}

.lead {
  margin: 0;
  max-width: 860px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  padding: 18px 0 42px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  min-height: 220px;
  transition: transform .2s ease,box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card h2 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta {
  margin-top: auto;
  padding-top: 16px;
  color: #40516f;
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 18px;
  padding: 18px 0 42px;
}

.article {
  padding: 24px 26px;
}

.prose h1,.prose h2,.prose h3,.prose h4 {
  line-height: 1.35;
  margin: 1.35em 0 .6em;
  color: #101a31;
}

.prose p,.prose li {
  color: #172239;
}

.prose pre {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.58);
  overflow: auto;
}

.prose code {
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.prose blockquote {
  margin: 1em 0;
  padding: 1em 1.1em;
  border-left: 4px solid rgba(91,140,255,.65);
  background: rgba(255,255,255,.28);
  border-radius: 14px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
}

.prose td,.prose th {
  border: 1px solid rgba(136,146,176,.25);
  padding: 10px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel p,.panel li {
  font-size: 14px;
  color: var(--muted);
}

.toc {
  padding-left: 18px;
  margin: 0;
}

.footer {
  padding: 0 0 34px;
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 0;
}

.chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.36);
  border: 1px solid rgba(255,255,255,.52);
  font-size: 13px;
  color: #38507e;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.58);
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

@media (max-width:1000px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr))}.article-layout { grid-template-columns:1fr}.sidebar { order:-1} h1 { font-size:34px};
}

@media (max-width:680px) {
  .container { width: min(calc(100% - 20px),var(--max))}.nav { padding:12px 14px}.brand { font-size:20px}.hero-card { padding:22px} h1 { font-size:28px}.grid { grid-template-columns: 1fr;
  gap: 14px}.card { min-height:unset}.article { padding:18px}.topbar { padding-top:10px};
}

.card.liquid,.article.liquid,.hero-card.liquid,.hero-article-card.liquid {
  border: 1px solid rgba(255,255,255,.62);
  box-shadow: 0 20px 70px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.34),inset 0 -1px 0 rgba(255,255,255,.08);
}

.card. liquid: :before,.article.liquid::before,.hero-card.liquid::before,.hero-article-card.liquid::before {
  background: linear-gradient(135deg,rgba(255,255,255,.42),rgba(255,255,255,.12) 50%,rgba(255,255,255,.24));
}

.article {
  padding: 26px 26px 30px;
}

.article-layout {
  grid-template-columns: minmax(0,1fr);
  max-width: 960px;
  margin: 0 auto;
}

.sidebar {
  display: none;
}

.prose {
  position: relative;
  z-index: 1;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose img {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 16px 40px rgba(15,23,42,.12);
}

@media (max-width:720px) {
  .article { padding: 18px} .article-layout { max-width:100%};
}

.grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
}

.card {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  padding: 24px;
  border-radius: 34px;
  overflow: hidden;
}

. card: :before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(94,160,255,.38),rgba(127,123,255,.18),transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

. card: :after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.16),rgba(87,216,255,.34),rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .95;
  pointer-events: none;
}

.card .glass-layer {
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  background: linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  pointer-events: none;
}

.card .edge-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg at 50% 50%,rgba(255,255,255,0) 0deg,rgba(255,255,255,.75) 28deg,rgba(87,216,255,.55) 70deg,rgba(255,255,255,0) 120deg,rgba(255,255,255,0) 360deg);
  filter: blur(14px);
  opacity: .34;
  z-index: -2;
  transition: opacity .25s ease,transform .25s ease;
}

. card: hover .edge-glow {
  opacity: .62;
  transform: scale(1.02);
}

.card > * {
  position: relative;
  z-index: 2;
}

.hero-card,.hero-article-card,.article {
  border-radius: 40px;
}

.hero-article-card {
  padding: 34px 34px 28px;
}

.article-layout {
  max-width: 1040px;
}

.article {
  max-width: 920px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 34px 34px 40px;
  background: linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.17));
  box-shadow: 0 28px 90px rgba(15,23,42,.18),inset 0 1px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(255,255,255,.08);
}

. article: :before {
  background: linear-gradient(135deg,rgba(255,255,255,.48),rgba(255,255,255,.14) 52%,rgba(255,255,255,.24));
}

. article: :after {
  border: 1px solid rgba(255,255,255,.24);
}

.article .prose {
  padding: 6px 2px 0;
}

.hero-article-card::after,.hero-card::after,.article::after {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24);
}

@media ( max-width: 720px) {
  .grid { grid-template-columns: 1fr;
  gap: 16px} .card { min-height: 220px;
  padding: 20px;
  border-radius: 28px} .card .glass-layer { inset: 8px;
  border-radius: 22px} .article { padding: 22px 18px 26px;
  border-radius: 30px} .hero-article-card { padding:24px 20px};
}

@media (min-width:1280px) {
  .container { width: min(calc(100% - 48px),1240px)} .grid { grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px} .hero-card h1 { font-size:56px} .article { max-width: 980px;
  padding: 40px 42px 46px};
}

@media ( min-width: 768px) and (max-width:1279px) {
  .grid { grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px} .hero-card h1 { font-size:44px} .article { max-width: 900px;
  padding: 30px 28px 36px} .nav { padding:14px 18px};
}

@media (max-width:767px) {
  .topbar { padding-top: 8px} .container { width:min(calc(100% - 16px),var(--max))} .nav { padding: 10px 12px;
  align-items: flex-start;
  flex-direction: column} .navlinks { width:100%} .navlinks a { flex: 1;
  text-align: center} .hero { padding:16px 0 10px} .hero-card,.hero-article-card { padding: 20px 16px;
  border-radius: 26px} .hero-card h1,.hero-article-card h1 { font-size: 28px;
  line-height: 1.12} .hero-orbs { gap:8px} .hero-orb,.chip,.badge { font-size:12px} .grid { grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 28px} .card { padding: 18px;
  min-height: auto;
  border-radius: 24px} .card h3 { font-size:20px} .article-layout { padding:12px 0 24px} .article { padding: 18px 14px 24px;
  border-radius: 24px} .toolbar { margin-bottom:12px} .btn { width: 100%;
  justify-content: center} .prose { font-size: 15px;
  line-height: 1.74} .prose h1,.prose h2 { font-size:22px} .prose h3 { font-size:19px} .footer { padding-bottom:22px};
}

.card.theme-blue::before {
  background: radial-gradient(circle,rgba(94,160,255,.42),rgba(87,216,255,.20),transparent 70%);
}

.card.theme-violet::before {
  background: radial-gradient(circle,rgba(127,123,255,.42),rgba(180,146,255,.18),transparent 70%);
}

.card.theme-cyan::before {
  background: radial-gradient(circle,rgba(87,216,255,.42),rgba(94,160,255,.18),transparent 70%);
}

.card.theme-emerald::before {
  background: radial-gradient(circle,rgba(92,214,179,.38),rgba(87,216,255,.16),transparent 70%);
}

.card.theme-amber::before {
  background: radial-gradient(circle,rgba(255,191,94,.38),rgba(255,223,159,.15),transparent 70%);
}

.card.theme-rose::before {
  background: radial-gradient(circle,rgba(255,120,174,.36),rgba(255,184,213,.16),transparent 70%);
}

.card.theme-indigo::before {
  background: radial-gradient(circle,rgba(112,132,255,.40),rgba(170,178,255,.16),transparent 70%);
}

.card.theme-mint::before {
  background: radial-gradient(circle,rgba(112,233,210,.36),rgba(175,255,237,.18),transparent 70%);
}

.card.theme-sky::before {
  background: radial-gradient(circle,rgba(108,190,255,.40),rgba(184,227,255,.18),transparent 70%);
}

.card.theme-lilac::before {
  background: radial-gradient(circle,rgba(182,132,255,.38),rgba(226,205,255,.18),transparent 70%);
}

.hero-article-card {
  overflow: hidden;
}

.hero-article-card .light-orb,.hero-card .light-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: .75;
  mix-blend-mode: screen;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-article-card .light-orb.orb-a,.hero-card .light-orb.orb-a {
  width: 180px;
  height: 180px;
  right: -30px;
  top: -20px;
  background: radial-gradient(circle,rgba(255,255,255,.95),rgba(87,216,255,.28),transparent 72%);
}

.hero-article-card .light-orb.orb-b,.hero-card .light-orb.orb-b {
  width: 220px;
  height: 220px;
  left: -40px;
  bottom: -60px;
  background: radial-gradient(circle,rgba(255,255,255,.65),rgba(127,123,255,.24),transparent 74%);
  animation-delay: -3s;
}

.hero-article-card .light-orb.orb-c,.hero-card .light-orb.orb-c {
  width: 120px;
  height: 120px;
  left: 42%;
  top: 10px;
  background: radial-gradient(circle,rgba(255,255,255,.72),rgba(94,160,255,.20),transparent 72%);
  animation-delay: -1.5s;
}

@keyframes floatGlow {
  0%{transform: translate3d(0,0,0) scale(1)} 50%{transform:translate3d(0,-10px,0) scale(1.06)} 100%{transform:translate3d(0,0,0) scale(1)};
}

@media (max-width:767px) {
  .grid { gap: 16px} .card { transform: translateY(0) scale(1);
  box-shadow: 0 18px 44px rgba(15,23,42,.16),0 8px 18px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.32);
  } .grid .card: nth-child(odd){transform:perspective(1000px) rotateX(1.2deg) translateY(0)} .grid .card:nth-child(even){transform:perspective(1000px) rotateX(-1deg) translateY(-2px)} .grid .card::after { opacity:.98} .grid .card .glass-layer { background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08))} .grid .card + .card { margin-top:-2px};
}

body: :after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 20%,rgba(255,255,255,.18),transparent 20%), radial-gradient(circle at 75% 15%,rgba(127,123,255,.12),transparent 22%), radial-gradient(circle at 82% 72%,rgba(87,216,255,.10),transparent 22%), radial-gradient(circle at 24% 78%,rgba(94,160,255,.10),transparent 24%);
  animation: ambientShift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}

@keyframes ambientShift {
  0%{transform: translate3d(0,0,0) scale(1)} 100%{transform:translate3d(0,-18px,0) scale(1.03)};
}

.card-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  margin: -4px -4px 16px;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg,rgba(255,255,255,.30),rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.16),inset 0 1px 0 rgba(255,255,255,.24);
}

.card-cover-label {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5a6884;
}

.card-cover-title {
  font-size: 14px;
  color: #2a3c5f;
  font-weight: 700;
}

.theme-blue .card-icon {
  background: linear-gradient(135deg,#5ea0ff,#57d8ff);
}

.theme-violet .card-icon {
  background: linear-gradient(135deg,#7f7bff,#b492ff);
}

.theme-cyan .card-icon {
  background: linear-gradient(135deg,#46d5ff,#5ea0ff);
}

.theme-emerald .card-icon {
  background: linear-gradient(135deg,#39d59e,#57d8ff);
}

.theme-amber .card-icon {
  background: linear-gradient(135deg,#ffb85e,#ffd86a);
}

.theme-rose .card-icon {
  background: linear-gradient(135deg,#ff78ae,#ffb8d5);
}

.theme-indigo .card-icon {
  background: linear-gradient(135deg,#7084ff,#98a4ff);
}

.theme-mint .card-icon {
  background: linear-gradient(135deg,#52e3c9,#89ffe7);
}

.theme-sky .card-icon {
  background: linear-gradient(135deg,#61b8ff,#8ed9ff);
}

.theme-lilac .card-icon {
  background: linear-gradient(135deg,#b684ff,#e2cdff);
}

.toc-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.toc-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.52);
  color: #23406f;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26),0 10px 24px rgba(15,23,42,.08);
}

.toc-pill:hover {
  background: rgba(255,255,255,.42);
}

@media ( max-width: 767px) {
  .card-cover { min-height: 76px;
  padding: 12px 14px;
  border-radius: 20px} .card-icon { width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 21px} .card-cover-title { font-size:13px} .toc-pills { gap: 8px;
  margin-bottom: 14px;
  overflow: auto;
  padding-bottom: 2px;
  flex-wrap: nowrap} .toc-pill { white-space: nowrap;
  font-size: 12px;
  padding: 8px 12px};
}