@font-face {
  font-family: 'xile';
  src: url('../fonts/xile.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'kangkang';
  src: url('../fonts/kangkang.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Patrick Hand';
  src: url('../fonts/patrick-hand-v25-latin-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Dymon ShouXieTi';
  src: url('../fonts/Dymon-ShouXieTi.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #e07a5f;
  --primary-light: #f0a58e;
  --secondary: #3d85c6;
  --accent: #81b29a;
  --warning: #f2cc8f;
  --danger: #c44536;
  --success: #81b29a;
  --bg: #fdf6e3;
  --bg-card: #fffdf7;
  --text: #3d3229;
  --text-light: #7a6e63;
  --border: #3d3229;
  --font-title: 'xile', 'Dymon ShouXieTi', cursive;
  --font-hand: 'kangkang', 'Patrick Hand', cursive;
  --font-body: 'kangkang', 'Patrick Hand', sans-serif;
  --radius: 3px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-hand);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(224, 122, 95, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(61, 133, 198, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(129, 178, 154, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body.pencil-mode {
  filter: url(#colored-pencil);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  filter: url(#hand-drawn);
  padding: 16px 32px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon svg {
  display: block;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 2px;
}

.tagline {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text-light);
}

.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
  position: relative;
  z-index: 1;
}

.hero-section {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -2px;
  height: 12px;
  background: var(--primary);
  opacity: 0.15;
  border-radius: 4px;
  transform: rotate(-1deg);
  filter: url(#hand-drawn);
}

.hero-subtitle {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-light);
  margin-top: 8px;
}

.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.section {
  margin-top: 64px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.title-text {
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 0;
  height: 10px;
  background: var(--primary);
  opacity: 0.2;
  border-radius: 3px;
  transform: rotate(-0.5deg);
  filter: url(#hand-drawn);
}

.shapes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.shape-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shape-item svg {
  filter: url(#hand-drawn);
  transition: transform 0.3s ease;
}

.shape-item:hover svg {
  transform: scale(1.08) rotate(2deg);
}

.shape-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-light);
}


.buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  font-family: var(--font-hand);
  font-size: 18px;
  padding: 10px 28px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}

.btn:hover {
  transform: translateY(-2px) rotate(0.5deg);
}

.btn:active {
  transform: translateY(0) rotate(0deg);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--text);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border: 2px solid var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid transparent;
  text-decoration: underline;
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 2px solid var(--text);
}

.hand-drawn-border {
  filter: url(#hand-drawn);
  border-radius: var(--radius);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 4px 4px 0 var(--border);
}

.card-icon {
  margin-bottom: 16px;
}

.card-icon svg {
  filter: url(#hand-drawn);
}

.card-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text);
}

.card-desc {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.5;
}

.decorations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.deco-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.deco-item svg {
  filter: url(#hand-drawn);
}

.washi-tape {
  position: relative;
  padding: 8px 32px;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text);
  text-align: center;
}

.washi-tape-1 {
  background: repeating-linear-gradient(
    45deg,
    rgba(224, 122, 95, 0.3),
    rgba(224, 122, 95, 0.3) 8px,
    rgba(242, 204, 143, 0.3) 8px,
    rgba(242, 204, 143, 0.3) 16px
  );
  transform: rotate(-2deg);
  border-top: 1px dashed rgba(61, 50, 41, 0.3);
  border-bottom: 1px dashed rgba(61, 50, 41, 0.3);
  filter: url(#hand-drawn);
  opacity: 0.9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.input-group {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.input-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 2px dashed var(--border);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-bottom-color: var(--primary);
  border-bottom-style: solid;
}

.input-field::placeholder {
  color: var(--text-light);
  opacity: 0.5;
}

.textarea-field {
  resize: vertical;
  min-height: 80px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.textarea-field:focus {
  border-color: var(--primary);
  border-style: solid;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 18px;
  cursor: pointer;
  user-select: none;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  flex-shrink: 0;
  transition: background 0.2s;
}

.checkbox-label:hover .checkbox-box {
  background: rgba(224, 122, 95, 0.1);
}

.checkmark {
  font-size: 16px;
  color: var(--primary);
  font-weight: bold;
}

.anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.anim-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.anim-shape svg {
  filter: url(#hand-drawn);
}

.anim-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-light);
}

@keyframes hand-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-0.5deg); }
}

@keyframes hand-swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

@keyframes hand-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hand-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

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

@keyframes squiggly-anim {
  0% { filter: url(#squiggly-0); }
  25% { filter: url(#squiggly-1); }
  50% { filter: url(#squiggly-2); }
  75% { filter: url(#squiggly-3); }
}

.anim-float {
  animation: hand-float 4s ease-in-out infinite;
}

.anim-swing {
  animation: hand-swing 2s ease-in-out infinite;
  transform-origin: top center;
}

.anim-spin {
  animation: hand-spin 6s linear infinite;
}

.anim-twinkle {
  animation: hand-twinkle 2s ease-in-out infinite;
}

.anim-pulse {
  animation: hand-pulse 1.5s ease-in-out infinite;
}

.anim-squiggly {
  animation: squiggly-anim 0.3s linear infinite;
}

.confetti-area {
  text-align: center;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(250px) rotate(720deg) scale(0.3);
  }
}

.fab-group {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.fab-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: url(#hand-drawn);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.08);
}

.fab-btn:hover {
  transform: translateY(-2px) rotate(3deg);
  background: rgba(224, 122, 95, 0.1);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.12);
}

.fab-back-to-top {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.fab-back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab-back-to-top.visible:hover {
  transform: translateY(-2px) rotate(3deg);
}

.theme-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.panel-content {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px 24px;
  width: 270px;
  filter: url(#hand-drawn);
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.12);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text);
  margin: 0;
}

.panel-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.panel-close:hover {
  color: var(--danger);
}

.control-group {
  margin-bottom: 20px;
}

.control-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.color-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  filter: url(#hand-drawn);
}

.swatch:hover {
  transform: scale(1.15);
}

.swatch.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  filter: url(#hand-drawn);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--text);
  cursor: pointer;
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--text);
  cursor: pointer;
}

.trail-options {
  display: flex;
  gap: 8px;
}

.trail-btn {
  font-family: var(--font-hand);
  font-size: 14px;
  padding: 4px 12px;
  border: 2px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  filter: url(#hand-drawn);
  transition: all 0.2s;
}

.trail-btn:hover {
  background: rgba(224, 122, 95, 0.1);
}

.trail-btn.active {
  background: var(--primary);
  color: #fff;
}

.font-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.font-btn {
  font-size: 14px;
  padding: 4px 10px;
  border: 2px solid var(--border);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}

.font-btn:hover {
  background: rgba(224, 122, 95, 0.1);
}

.font-btn.active {
  background: var(--primary);
  color: #fff;
}

.floating-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-star {
  position: absolute;
  animation: hand-twinkle 3s ease-in-out infinite;
  opacity: 0.3;
}

.cursor-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
}

.cursor-star {
  animation: particle-fade 1s ease-out forwards;
}

@keyframes particle-fade {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0) translateY(-30px);
  }
}

.cursor-bubble {
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: rgba(224, 122, 95, 0.1);
  animation: bubble-rise 1.5s ease-out forwards;
}

@keyframes bubble-rise {
  0% {
    opacity: 0.8;
    transform: scale(0.5) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) translateY(-60px);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 16px 60px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .header-inner {
    flex-direction: column;
    gap: 4px;
  }

  .hero-section {
    padding: 48px 0 40px;
  }

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

  .shapes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .text-demos {
    flex-direction: column;
    align-items: flex-start;
  }

  .fab-group {
    right: 16px;
    bottom: 16px;
  }

  .theme-panel {
    right: 16px;
    bottom: 80px;
  }

  .panel-content {
    width: 240px;
    padding: 16px;
  }

  .buttons-grid {
    gap: 12px;
  }

  .btn {
    font-size: 16px;
    padding: 8px 20px;
  }

  .anim-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .decorations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .shapes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

.site-footer {
  margin-top: 80px;
  padding: 0 24px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0 32px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand {
  flex: 1;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text);
}

.footer-desc {
  font-family: var(--font-hand);
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.footer-link {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-divider {
  height: 1.5px;
  background: var(--border);
  opacity: 0.15;
  margin: 24px 0;
  filter: url(#hand-drawn);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-icp {
  font-family: var(--font-hand);
  font-size: 0.8rem;
}

.footer-icp a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-icp a:hover {
  color: var(--primary);
}

@media (max-width: 600px) {
  .footer-main {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

.article-demo-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.toc-title {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 400;
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}

.toc-link:hover {
  color: var(--primary);
  background: rgba(224, 122, 95, 0.06);
}

.toc-link.active {
  color: var(--primary);
  background: rgba(224, 122, 95, 0.1);
  font-weight: 400;
}

.toc-link[data-level="2"] {
  padding-left: 16px;
  font-size: 13px;
}

.toc-link[data-level="3"] {
  padding-left: 24px;
  font-size: 12px;
}

.article-content {
  min-width: 0;
}

.article-h1 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
  filter: url(#hand-drawn);
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.article-h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed rgba(61, 50, 41, 0.2);
  line-height: 1.3;
}

.article-h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-body {
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 14px;
}

.article-content .sketch-blockquote {
  margin-top: 16px;
  margin-bottom: 20px;
}

.article-content .callout {
  margin-top: 16px;
  margin-bottom: 20px;
}

.sidebar-demo-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  min-height: 500px;
}

.sidebar-demo-sidebar {
  background: rgba(61, 50, 41, 0.03);
  border-right: 2px dashed rgba(61, 50, 41, 0.15);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-profile {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sidebar-author {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.sidebar-bio {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.4;
}

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

.sidebar-nav-title {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 400;
}

.sidebar-nav-item {
  display: block;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-light);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.sidebar-nav-item:hover {
  color: var(--primary);
  background: rgba(224, 122, 95, 0.06);
}

.sidebar-nav-active {
  color: var(--primary);
  background: rgba(224, 122, 95, 0.1);
}

.sidebar-tags .tags-wrap {
  gap: 6px;
}

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

.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-post-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-post-item:hover {
  background: rgba(224, 122, 95, 0.06);
}

.sidebar-post-title {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.sidebar-post-date {
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--text-light);
  opacity: 0.7;
}

.sidebar-demo-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-post-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-post-card:hover {
  transform: translateY(-2px) rotate(0.3deg);
  box-shadow: 3px 3px 0 var(--border);
}

.sidebar-card-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
}

.sidebar-card-date {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.sidebar-card-excerpt {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .article-demo-wrapper {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    margin-bottom: 16px;
  }

  .sidebar-demo-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar-demo-sidebar {
    border-right: none;
    border-bottom: 2px dashed rgba(61, 50, 41, 0.15);
  }
}

