```css
/* =========================================================
   妖精漫画 - 妖精漫画奇幻屋，恋爱冒险每日上新
   flycase.cn
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Design Tokens ---------- */
:root {
  --brand: #7c3aed;
  --brand-2: #ec4899;
  --brand-3: #0ea5e9;
  --brand-soft: rgba(124, 58, 237, 0.08);
  --ink: #1f2430;
  --ink-soft: #2c3242;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #faf9ff;
  --soft: #f6f4ff;
  --line: #e6e3f2;
  --line-strong: #d6d1ea;
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --shadow-sm: 0 2px 8px -2px rgba(31, 36, 48, 0.08);
  --shadow-md: 0 14px 34px -22px rgba(31, 36, 48, 0.35);
  --shadow-lg: 0 24px 60px -30px rgba(124, 58, 237, 0.45);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #f6f4ff 0%, #fdf2f8 55%, #f0f9ff 100%);
  --grad-brand: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 66px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: rgba(124, 58, 237, 0.22);
  color: var(--ink);
}

/* ---------- Layout ---------- */
.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ---------- Accessibility ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  background: #fff;
  color: var(--brand);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  font-size: 14px;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =========================================================
   Header
   ========================================================= */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.3s var(--ease);
}

header.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0.35;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.brand svg {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  filter: drop-shadow(0 6px 14px rgba(124, 58, 237, 0.35));
  transition: transform 0.4s var(--ease);
}

.brand:hover svg {
  transform: rotate(-6deg) scale(1.06);
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

nav.main-nav {
  margin-left: auto;
}

nav.main-nav ul {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

nav.main-nav a:hover {
  background: var(--soft);
  text-decoration: none;
  color: var(--brand);
  transform: translateY(-1px);
}

nav.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ---------- Search ---------- */
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 14px;
  background: var(--card-bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.35s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.search-box input {
  border: 0;
  outline: 0;
  width: 150px;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.search-box button {
  border: 0;
  background: var(--grad-brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: filter 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.8);
}

.search-box button:active {
  transform: translateY(0);
}

/* ---------- Icon Buttons ---------- */
.icon-btn {
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.icon-btn:active {
  transform: translateY(0) scale(0.96);
}

.icon-btn svg {
  pointer-events: none;
}

.menu-toggle {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: 40px 0 48px;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  animation: floatBlob 14s ease-in-out infinite;
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42) 0%, transparent 70%);
  animation: floatBlob 18s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-24px, 20px, 0) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(124, 58, 237, 0.04); }
}

.hero h1 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.hero .lead {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 620px;
  margin-bottom: 22px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(124, 58, 237, 0.9);
}

.btn-primary:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 34px -16px rgba(124, 58, 237, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: var(--card-bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* ---------- Hero Stats ---------- */
.hero-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-stats div {
  min-width: 84px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-stats div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-stats div strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.carousel:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px -34px rgba(124, 58, 237, 0.6);
}

.slides {
  position: relative;
  height: 340px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transform: translateY(6px);
  transition: transform 0.5s var(--ease);
}

.slide.active .slide-content {
  transform: translateY(0);
}

.slide-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--ink);
}

.slide-content p {
  font-size: 13px;
  color: var(--muted);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(124, 58, 237, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.carousel-dots button:hover {
  background: rgba(124, 58, 237, 0.55);
}

.carousel-dots button.active {
  background: var(--brand);
  width: 22px;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 56px 0;
  position: relative;
}

.section.soft {
  background: var(--soft);
}

.section.soft::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 85% 0%, rgba(236, 72, 153, 0.06), transparent 70%);
  pointer-events: none;
}

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head .tag {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand-soft);
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 12px 0 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--muted);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Card ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.28);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.45;
}

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

.card .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand-soft);
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 12px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.card:hover .num {
  transform: rotate(-6deg) scale(1.06);
}

/* =========================================================
   TOC
   ========================================================= */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

.toc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-brand);
}

.toc h3 {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.toc a {
  color: var(--muted);
  position: relative;
  padding: 2px 0;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.toc a::before {
  content: "→";
  position: absolute;
  left: -14px;
  opacity: 0;
  color: var(--brand);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  transform: translateX(-4px);
}

.toc a:hover {
  color: var(--brand);
  padding-left: 4px;
  text-decoration: none;
}

.toc a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================================
   Articles
   ========================================================= */
.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

.article::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transform: scale(0.6);
  pointer-events: none;
}

.article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.26);
}

.article:hover::after {
  opacity: 1;
  transform: scale(1);
}

.article .meta {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.article .meta span {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--brand);
  font-weight: 600;
  font-size: 12px;
}

.article h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  line-height: 1.45;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.article p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  position: relative;
  z-index: 1;
}

.article .more {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.article .more:hover {
  text-decoration: none;
  gap: 8px;
  color: var(--brand-2);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 10px 28px -20px rgba(124, 58, 237, 0.6);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.faq-q:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.faq-q .plus {
  color: var(--brand);
  font-size: 20px;
  line-height: 1;
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.faq-item.open .plus {
  transform: rotate(45deg);
  background: var(--grad-brand);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
  padding: 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 16px;
}

.faq-a p {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

/* =========================================================
   Steps
   ========================================================= */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 18px 62px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

.step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.28);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.9);
  transition: transform 0.3s var(--ease);
}

.step:hover::before {
  transform: scale(1.08);
}

.step h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
  font-weight: 700;
}

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

/* =========================================================
   Table
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  -webkit-overflow-scrolling: touch;
  transition: border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr {
  transition: background-color 0.25s var(--ease);
}

tbody tr:hover {
  background: var(--brand-soft);
}

tr:last-child td {
  border-bottom: 0;
}

/* =========================================================
   Cases
   ========================================================= */
.case {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}

.case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.26);
}

.case h3 {
  font-size: 16.5px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.case p {
  font-size: 14.5px;
  color: var(--muted);
}

.case blockquote {
  border-left: 3px solid transparent;
  border-image: var(--grad-brand) 1;
  padding: 8px 0 8px 14px;
  color: var(--muted);
  font-style: normal;
  margin-top: 12px;
  font-size: 14px;
  background: var(--brand-soft);
  border-radius: 0 8px 8px 0;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-info,
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}

.contact-info:hover,
.contact-form:hover {
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: var(--shadow-md);
}

.contact-info::before,
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px 12px;
  font-size: 14.5px;
}

.contact-info dt {
  color: var(--muted);
  font-weight: 500;
}

.contact-info dd {
  color: var(--ink);
  word-break: break-word;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.35s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.contact-form .btn {
  width: 100%;
  margin-top: 2px;
}

/* =========================================================
   Author Box
   ========================================================= */
.author-box {
  background: var(--grad-brand-soft);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 26px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.author-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.author-box svg {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 14px;
  box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.9);
}

.author-box h4 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 700;
}

.author-box p {
  font-size: 13.5px;
  color: var(--muted);
}

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   Footer
   ========================================================= */
footer.site-footer {
  background: #1f2430;
  color: #c9cfdb;
  padding: 48px 0 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
}

footer.site-footer::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  top: -240px;
  right: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

footer.site-footer a {
  color: #c9cfdb;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

footer.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
  font-weight: 700;
  position: relative;
  padding-bottom: 8px;
}

.footer-grid h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.footer-grid ul a {
  display: inline-block;
}

.footer-grid ul a:hover {
  padding-left: 4px;
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333a48;
  padding-top: 18px;
  font-size: 13px;
  color: #8b93a3;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* =========================================================
   Back To Top
   ========================================================= */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.25s var(--ease);
  z-index: 90;
  box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.8);
}

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

.back-top:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 32px -12px rgba(124, 58, 237, 0.95);
  transform: translateY(-3px) scale(1.04);
}

.back-top:active {
  transform: translateY(0) scale(0.96);
}

/* =========================================================
   Scroll Reveal Animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.grid > .reveal:nth-child(2) { transition-delay: 0.06s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.12s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.18s; }
.grid > .reveal:nth-child(5) { transition-delay: 0.24s; }
.grid > .reveal:nth-child(6) { transition-delay: 0.3s; }

/* =========================================================
   Section Inline Headings & Lists
   ========================================================= */
.section h3 {
  color: var(--ink);
}

.section ul:not([class]) li {
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.section ul:not([class]) li:hover {
  color: var(--brand);
}

.section ul:not([class]) li a {
  display: inline-block;
  transition: padding-left 0.25s var(--ease), color 0.25s var(--ease);
}

.section ul:not([class]) li a:hover {
  padding-left: 4px;
}

/* =========================================================
   Dark Mode
   ========================================================= */
body.dark {
  --ink: #e8eaf0;
  --ink-soft: #d5d9e4;
  --muted: #a3abbd;
  --bg: #12151c;
  --bg-alt: #171b24;
  --soft: #1a1e28;
  --line: #2a3040;
  --line-strong: #3a4256;
  --card-bg: #171b24;
  --glass-bg: rgba(23, 27, 36, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --brand-soft: rgba(124, 58, 237, 0.16);
  --grad-hero: linear-gradient(135deg, #1a1e28 0%, #221a2e 55%, #16202e 100%);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 14px 34px -22px rgba(0, 0, 0, 0.85);
  --shadow-lg: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

body.dark header.site-header {
  background: rgba(18, 21, 28, 0.88);
  border-bottom-color: var(--line);
}

body.dark .search-box,
body.dark .icon-btn {
  background: #171b24;
  border-color: var(--line);
}

body.dark .search-box input {
  color: var(--ink);
}

body.dark .btn-ghost {
  background: #171b24;
  color: var(--ink);
  border-color: var(--line);
}

body.dark .btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

body.dark .card,
body.dark .article,
body.dark .faq-item,
body.dark .step,
body.dark .case,
body.dark .contact-info,
body.dark .contact-form,
body.dark .toc,
body.dark .table-wrap,
body.dark .carousel {
  background: #171b24;
  border-color: var(--line);
}

body.dark .slide-content {
  background: rgba(23, 27, 36, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .hero {
  background: var(--grad-hero);
}

body.dark .hero::before {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
}

body.dark .hero::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, transparent 70%);
}

body.dark .eyebrow {
  background: rgba(23, 27, 36, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .hero-stats div {
  background: rgba(23, 27, 36, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #12151c;
  color: var(--ink);
  border-color: var(--line);
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
  border-color: var(--brand);
}

body.dark th {
  background: #1e2330;
  color: var(--ink);
}

body.dark tbody tr:hover {
  background: rgba(124, 58, 237, 0.12);
}

body.dark footer.site-footer {
  background: #0d1016;
}

body.dark footer.site-footer::after {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22) 0%, transparent 70%);
}

body.dark .author-box {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.24);
}

body.dark .case blockquote {
  background: rgba(124, 58, 237, 0.12);
}

body.dark .article .meta span {
  background: rgba(124, 58, 237, 0.18);
}

body.dark .carousel-dots button {
  background: rgba(255, 255, 255, 0.22);
}

body.dark .carousel-dots button.active {
  background: var(--brand);
}

body.dark ::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* =========================================================
   Responsive - Tablet
   ========================================================= */
@media (max-width: 1024px) {
  .header-inner {
    gap: 12px;
  }

  nav.main-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }

  .search-box input {
    width: 120px;
  }

  .hero-grid {
    gap: 28px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .slides {
    height: 320px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 12px;
    margin-left: 0;
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: navSlide 0.3s var(--ease);
  }

  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  nav.main-nav.open {
    display: block;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  nav.main-nav a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }

  nav.main-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .search-box input {
    width: 110px;
  }

  body.dark nav.main-nav {
    background: rgba(23, 27, 36, 0.96);
  }
}

/* =========================================================
   Responsive - Mobile
   ========================================================= */
@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .container {
    width: 92%;
  }

  .header-inner {
    gap: 8px;
    padding: 10px 0;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
  }

  .brand svg {
    width: 32px;
    height: 32px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 0.2px;
  }

  .search-box {
    padding-left: 10px;
  }

  .search-box input {
    width: 84px;
    font-size: 13px;
  }

  .search-box button {
    padding: 6px 10px;
    font-size: 12px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero h1 {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .hero .lead {
    font-size: 15px;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 14.5px;
    flex: 1 1 auto;
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats div {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    padding: 8px 12px;
  }

  .hero-stats div strong {
    font-size: 20px;
  }

  .hero-stats div span {
    font-size: 12px;
  }

  .slides {
    height: 280px;
  }

  .slide {
    padding: 16px;
  }

  .slide-content {
    padding: 12px 14px;
  }

  .slide-content h3 {
    font-size: 15px;
  }

  .slide-content p {
    font-size: 12.5px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card,
  .case,
  .contact-info,
  .contact-form,
  .article {
    padding: 18px;
  }

  .toc {
    padding: 16px 18px;
  }

  .toc ul {
    gap: 6px 12px;
    font-size: 13.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
  }

  .contact-info dl {
    grid-template-columns: 76px 1fr;
    font-size: 14px;
  }

  .author-box {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .step {
    padding: 16px 16px 16px 56px;
  }

  .step::before {
    left: 14px;
    top: 16px;
    width: 28px;
    height: 28px;
  }

  .faq-q {
    padding: 14px 16px;
    font-size: 14.5px;
  }

  .faq-a {
    padding: 0 16px;
    font-size: 14px;
  }

  .faq-item.open .faq-a {
    padding-bottom: 14px;
  }

  .back-top {
    right: 14px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .breadcrumb {
    padding: 10px 0;
    font-size: 12.5px;
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   Print
   ========================================================= */
@media print {
  header.site-header,
  .back-top,
  .hero-cta,
  .carousel-dots,
  footer.site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .card,
  .article,
  .faq-item,
  .step,
  .case {
    box-shadow: none;
    border-color: #ccc;
    break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
```