:root {
  color-scheme: dark;
  --page-start: #0b1120;
  --page-mid: #111827;
  --page-end: #0b1220;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --panel-bg: rgba(15, 23, 42, 0.72);
  --panel-border: rgba(148, 163, 184, 0.16);
  --panel-shadow: 0 20px 60px rgba(15, 23, 42, 0.45);
  --field-bg: rgba(15, 23, 42, 0.82);
  --field-text: #ffffff;
  --field-placeholder: #64748b;
  --grid-line: rgba(255,255,255,0.04);
}

[data-theme="light"] {
  color-scheme: light;
  --page-start: #f8fbff;
  --page-mid: #eef4ff;
  --page-end: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-soft: #334155;
  --panel-bg: rgba(255, 255, 255, 0.76);
  --panel-border: rgba(148, 163, 184, 0.22);
  --panel-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
  --field-bg: rgba(255, 255, 255, 0.96);
  --field-text: #0f172a;
  --field-placeholder: #94a3b8;
  --grid-line: rgba(15,23,42,0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(110, 86, 255, 0.30), transparent 0 32%),
    radial-gradient(circle at top right, rgba(62, 207, 142, 0.18), transparent 0 28%),
    linear-gradient(180deg, var(--page-start) 0%, var(--page-mid) 45%, var(--page-end) 100%);
  min-height: 100vh;
  transition: background 180ms ease, color 180ms ease;
}

.grid-pattern {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.glass {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
}

.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.7), rgba(34, 211, 238, 0.45), rgba(74, 222, 128, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-lift {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(110, 86, 255, 0.18);
  border-color: rgba(167, 139, 250, 0.45);
}

.lang-option-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-link {
  transition: color 180ms ease;
}

.footer-link:hover {
  color: #a78bfa;
}

.metric-line {
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.metric-line > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 55%, #34d399 100%);
}

.score-ring {
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  background: conic-gradient(#8b5cf6 0 216deg, #22c55e 216deg 270deg, rgba(255,255,255,0.08) 270deg 360deg);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 40px rgba(15, 23, 42, 0.25), 0 10px 30px rgba(76, 29, 149, 0.25);
}

.score-ring::after {
  content: "";
  width: 7.4rem;
  height: 7.4rem;
  border-radius: 9999px;
  background: var(--page-start);
  box-shadow: inset 0 0 22px rgba(255,255,255,0.05);
}

.score-ring-label {
  position: absolute;
  text-align: center;
}

.hero-visual-shell {
  position: relative;
  min-height: 430px;
}

.brand-3d-stage {
  --spotlight-x: 50%;
  --spotlight-y: 26%;
  position: relative;
  min-height: 430px;
  overflow: visible;
  border-radius: 1.6rem;
  perspective: 1400px;
  isolation: isolate;
  cursor: pointer;
}

.brand-3d-stage-bare {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-3d-stage-bare::before {
  content: none;
}

.brand-3d-float {
  position: absolute;
  inset: 1.2rem 1.2rem 1.4rem;
  display: grid;
  place-items: center;
  animation: brandFloat 6.8s ease-in-out infinite;
  z-index: 2;
}

.brand-3d-object {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
  will-change: transform;
}

.robot-3d-object {
  display: grid;
  place-items: center;
  transform-origin: center center;
}

.robot-halo {
  position: absolute;
  inset: 10%;
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.10), transparent 68%);
  filter: blur(1px);
  animation: brandTilt 8s ease-in-out infinite;
}

.robot-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-a {
  inset: 6%;
  border: 1px solid rgba(167, 139, 250, 0.24);
  transform: rotateX(72deg) rotateZ(14deg) translateZ(22px);
  animation: orbitSpinA 11s linear infinite;
}

.orbit-b {
  inset: 2%;
  border: 1px solid rgba(34, 211, 238, 0.22);
  transform: rotateY(74deg) rotateZ(-14deg) translateZ(10px);
  animation: orbitSpinB 13s linear infinite;
}

.robot-antenna {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 8px;
  height: 42px;
  transform: translateX(-50%) translateZ(20px);
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.95), rgba(99, 102, 241, 0.7));
}

.robot-antenna::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: linear-gradient(135deg, #5eead4, #a78bfa);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.7);
}

.robot-head,
.robot-body,
.robot-arm,
.robot-neck,
.robot-leg {
  position: absolute;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.08), 0 16px 36px rgba(15, 23, 42, 0.26);
}

.robot-head {
  top: 68px;
  left: 50%;
  width: 126px;
  height: 98px;
  transform: translateX(-50%) translateZ(24px);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(34, 211, 238, 0.90));
}

.robot-eye {
  position: absolute;
  top: 34px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #022c22;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.85);
}

.robot-eye-left { left: 28px; }
.robot-eye-right { right: 28px; }

.robot-mouth {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 42px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
}

.robot-neck {
  top: 162px;
  left: 50%;
  width: 22px;
  height: 20px;
  transform: translateX(-50%) translateZ(12px);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.9), rgba(59, 130, 246, 0.75));
}

.robot-body {
  top: 184px;
  left: 50%;
  width: 142px;
  height: 102px;
  transform: translateX(-50%) translateZ(18px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(49, 46, 129, 0.88));
}

.robot-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: #a5f3fc;
  letter-spacing: 0.08em;
}

.robot-arm {
  top: 194px;
  width: 28px;
  height: 86px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.88), rgba(34, 211, 238, 0.84));
}

.robot-arm-left {
  left: 44px;
  transform: rotate(18deg) translateZ(8px);
}

.robot-arm-right {
  right: 44px;
  transform: rotate(-18deg) translateZ(8px);
}

.robot-leg {
  top: 278px;
  width: 24px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.86), rgba(14, 116, 144, 0.82));
}

.robot-leg-left {
  left: 122px;
  transform: translateZ(6px);
}

.robot-leg-right {
  right: 122px;
  transform: translateZ(6px);
}

.robot-mouth-writing {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  animation: writing 1.2s ease-in-out infinite;
}

.robot-arm-writing {
  animation: armWriting 1.2s ease-in-out infinite;
  transform: rotate(35deg) translateZ(10px);
}

.robot-arm-right.robot-arm-holding {
  transform: rotate(-5deg) translateZ(10px);
}

.robot-pen {
  position: absolute;
  top: 185px;
  right: 38px;
  width: 7px;
  height: 52px;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-radius: 3px 3px 2px 2px;
  transform: rotate(25deg) translateZ(14px);
  animation: penWriting 1.2s ease-in-out infinite;
  z-index: 5;
}

.robot-pen::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 10px solid #1e293b;
}

.robot-pen::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  border-radius: 2px;
}

@keyframes writing {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.15); }
}

@keyframes armWriting {
  0%, 100% { transform: rotate(35deg) translateZ(10px); }
  50% { transform: rotate(42deg) translateZ(10px); }
}

@keyframes penWriting {
  0%, 100% { transform: rotate(25deg) translateZ(14px); }
  50% { transform: rotate(35deg) translateZ(14px); }
}

.brand-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #5eead4, #a78bfa);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.65);
}

.brand-node-a {
  top: 18%;
  right: 18%;
  animation: pulseNode 2.8s ease-in-out infinite;
}

.brand-node-b {
  bottom: 18%;
  left: 16%;
  animation: pulseNode 3.2s ease-in-out infinite 0.4s;
}

.brand-node-c {
  top: 50%;
  left: 8%;
  animation: pulseNode 3s ease-in-out infinite 0.7s;
}

@keyframes brandFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes brandTilt {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg); }
  50% { transform: rotateX(4deg) rotateY(-6deg); }
}

@keyframes orbitSpinA {
  from { transform: rotateX(72deg) rotateZ(0deg) translateZ(22px); }
  to { transform: rotateX(72deg) rotateZ(360deg) translateZ(22px); }
}

@keyframes orbitSpinB {
  from { transform: rotateY(74deg) rotateZ(0deg) translateZ(10px); }
  to { transform: rotateY(74deg) rotateZ(-360deg) translateZ(10px); }
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}

.sidebar-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #cbd5e1;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(99, 102, 241, 0.16);
  color: white;
}

.hero-pill {
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(76, 29, 149, 0.16);
}

.table-soft td,
.table-soft th {
  border-color: rgba(148, 163, 184, 0.12);
}

.field-block {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.field-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--field-bg);
  padding: 0.85rem 1rem;
  color: var(--field-text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field-input:focus {
  border-color: rgba(167, 139, 250, 0.7);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

.field-input::placeholder {
  color: var(--field-placeholder);
}

.field-textarea {
  min-height: 128px;
  resize: vertical;
}

.nav-tool {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-main);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.875rem;
  transition: all 180ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tool:hover {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(15, 23, 42, 0.7);
}

.nav-pill-secondary {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.42);
}

/* 下拉菜单样式 */
#lang-dropdown a,
#version-dropdown a {
  color: var(--text-main);
  transition: background-color 180ms ease;
}

#lang-dropdown a:hover,
#version-dropdown a:hover {
  background-color: rgba(148, 163, 184, 0.1);
}

/* 亮色模式下的样式 */
[data-theme="light"] #lang-dropdown,
[data-theme="light"] #version-dropdown {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.24);
}

[data-theme="light"] #lang-dropdown a {
  color: var(--text-main);
}

[data-theme="light"] #lang-dropdown a:hover {
  background-color: rgba(148, 163, 184, 0.1);
}

/* 分隔线样式 */
[data-theme="light"] .h-6.w-px {
  background-color: rgba(148, 163, 184, 0.24);
}

[data-theme="light"] .text-white,
[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200 {
  color: #0f172a !important;
}

[data-theme="light"] .text-slate-300 {
  color: #334155 !important;
}

[data-theme="light"] .text-slate-400 {
  color: #64748b !important;
}

[data-theme="light"] .text-violet-100,
[data-theme="light"] .text-violet-300 {
  color: #6d28d9 !important;
}

[data-theme="light"] .text-cyan-300 {
  color: #0f766e !important;
}

[data-theme="light"] .text-emerald-300 {
  color: #047857 !important;
}

[data-theme="light"] .text-rose-300 {
  color: #be123c !important;
}

[data-theme="light"] .text-amber-200 {
  color: #92400e !important;
}

[data-theme="light"] .hover\:text-white:hover {
  color: #4c1d95 !important;
}

[data-theme="light"] .border-white\/10,
[data-theme="light"] .border-slate-700 {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

[data-theme="light"] .bg-slate-950\/75,
[data-theme="light"] .bg-slate-950\/60,
[data-theme="light"] .bg-slate-950\/40,
[data-theme="light"] .bg-slate-900\/80,
[data-theme="light"] .bg-slate-900\/70,
[data-theme="light"] .bg-slate-900\/60 {
  background-color: rgba(255, 255, 255, 0.82) !important;
}

[data-theme="light"] .bg-violet-500\/10 {
  background-color: rgba(139, 92, 246, 0.12) !important;
}

[data-theme="light"] .bg-emerald-500\/10 {
  background-color: rgba(16, 185, 129, 0.12) !important;
}

[data-theme="light"] .bg-cyan-500\/15 {
  background-color: rgba(8, 145, 178, 0.16) !important;
}

[data-theme="light"] .border-cyan-400\/50 {
  border-color: rgba(14, 116, 144, 0.42) !important;
}

[data-theme="light"] .text-cyan-100,
[data-theme="light"] .text-cyan-200 {
  color: #155e75 !important;
}

[data-theme="light"] .bg-rose-500\/10 {
  background-color: rgba(244, 63, 94, 0.10) !important;
}

[data-theme="light"] .bg-amber-500\/10 {
  background-color: rgba(245, 158, 11, 0.12) !important;
}

[data-theme="light"] .hero-pill {
  background: rgba(139, 92, 246, 0.10);
  border-color: rgba(139, 92, 246, 0.28);
  color: #6d28d9;
}


[data-theme="light"] .sidebar-link {
  color: #334155;
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
  background: rgba(99, 102, 241, 0.10);
  color: #4338ca;
}

[data-theme="light"] .nav-tool {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .glass a {
  color: inherit;
}

[data-theme="light"] .blog-hero {
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.25), transparent 0 28%),
    radial-gradient(circle at left top, rgba(139, 92, 246, 0.35), transparent 0 32%),
    linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(238, 244, 255, 0.92));
  box-shadow: 0 24px 60px rgba(148, 163, 184, 0.18);
}

[data-theme="light"] .blog-hero h1,
[data-theme="light"] .blog-hero p {
  color: #0f172a;
}

[data-theme="light"] .blog-stat-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.22);
}

[data-theme="light"] .blog-stat-label {
  color: #64748b;
}

[data-theme="light"] .blog-stat-value {
  color: #0f172a;
}

[data-theme="light"] .brand-3d-stage {
  background: transparent;
  border: 0;
}

[data-theme="light"] .robot-mouth-writing {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .brand-3d-stage .text-slate-400 {
  color: #64748b;
}

[data-theme="light"] .text-sm.uppercase.tracking-\[0\.2em\].text-violet-300 {
  color: #6d28d9;
}

[data-theme="light"] .text-sm.uppercase.tracking-\[0\.2em\].text-cyan-300 {
  color: #0f766e;
}

[data-theme="light"] .text-sm.uppercase.tracking-\[0\.2em\].text-emerald-300 {
  color: #047857;
}

[data-theme="light"] h2.text-2xl.font-bold.text-white {
  color: #0f172a;
}

[data-theme="light"] .glass.card-lift {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

[data-theme="light"] .glass.card-lift .text-xs {
  color: #6d28d9;
}

[data-theme="light"] .glass.card-lift .text-cyan-300 {
  color: #0f766e;
}

[data-theme="light"] .glass.card-lift .text-emerald-300 {
  color: #047857;
}

[data-theme="light"] .glass.card-lift p.text-base.font-semibold.text-white {
  color: #0f172a;
}

[data-theme="light"] #posts.text-2xl.font-bold.text-white,
[data-theme="light"] .text-sm.font-semibold.text-white {
  color: #0f172a;
}

[data-theme="light"] .text-slate-300 {
  color: #475569;
}

[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

[data-theme="light"] #blog-search {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
  color: #0f172a;
}

[data-theme="light"] #blog-search::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .robot-pen {
  background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
}

[data-theme="light"] .robot-pen::before {
  border-top-color: #475569;
}

[data-theme="light"] .robot-pen::after {
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
}

[data-theme="light"] #featured-post .bg-slate-950\/85 {
  background: rgba(255, 255, 255, 0.98) !important;
}

[data-theme="light"] #featured-post .text-white {
  color: #0f172a !important;
}

[data-theme="light"] #featured-post .text-slate-300 {
  color: #475569 !important;
}

[data-theme="light"] #featured-post .text-slate-400 {
  color: #64748b !important;
}

[data-theme="light"] #featured-post .text-violet-300 {
  color: #6d28d9 !important;
}

[data-theme="light"] #featured-post .bg-gradient-to-br {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(238, 244, 255, 0.85)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

[data-theme="light"] #post-grid .text-white {
  color: #0f172a !important;
}

[data-theme="light"] #post-grid .text-slate-300 {
  color: #475569 !important;
}

[data-theme="light"] #post-grid .text-slate-400 {
  color: #64748b !important;
}

[data-theme="light"] #post-grid .text-cyan-300 {
  color: #0f766e !important;
}

[data-theme="light"] .topic-chip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(148, 163, 184, 0.24);
  color: #475569;
}

[data-theme="light"] .topic-chip-active {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

[data-theme="light"] .rounded-full.border.border-white\/10.bg-slate-900\/70.text-slate-300 {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #475569 !important;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(167, 139, 250, 0.26);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 0 28%),
    radial-gradient(circle at left top, rgba(139, 92, 246, 0.30), transparent 0 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.90));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
}

.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent 45%);
}

.blog-stat-card {
  border-radius: 1rem;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: rgba(2, 6, 23, 0.72);
  padding: 1rem;
}

.blog-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-stat-value {
  margin-top: 0.4rem;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
}

.topic-chip {
  border-radius: 9999px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(8, 145, 178, 0.08);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: #a5f3fc;
  transition: all 180ms ease;
}

.topic-chip:hover,
.topic-chip-active {
  border-color: rgba(139, 92, 246, 0.36);
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
}

.toc-link {
  display: block;
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease;
}

.toc-link:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-main);
}

.mdx-prose {
  color: var(--text-soft);
  line-height: 1.85;
}

.mdx-prose > * + * {
  margin-top: 1rem;
}

.mdx-prose h1,
.mdx-prose h2,
.mdx-prose h3 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mdx-prose h2 {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 1.5rem;
}

.mdx-prose h3 {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.mdx-prose p,
.mdx-prose li {
  font-size: 1rem;
}

.mdx-prose ul,
.mdx-prose ol {
  padding-left: 1.25rem;
}

.mdx-prose a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mdx-prose code {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.72);
  padding: 0.12rem 0.4rem;
  font-size: 0.92em;
}

.mdx-prose pre {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  background: rgba(2, 6, 23, 0.88);
  padding: 1rem;
}

.mdx-prose pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.mdx-inline-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mdx-inline-badge-tip {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.mdx-inline-badge-info {
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
}

.mdx-inline-badge-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.mdx-callout {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1rem;
}

.mdx-callout-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.mdx-callout-info {
  background: rgba(6, 182, 212, 0.08);
}

.mdx-callout-tip {
  background: rgba(16, 185, 129, 0.08);
}

.mdx-callout-warn {
  background: rgba(245, 158, 11, 0.08);
}

.mdx-feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mdx-feature-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.56);
  padding: 1rem;
}

.mdx-feature-title {
  font-weight: 700;
  color: var(--text-main);
}

.mdx-feature-body {
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}
