
.doc-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  padding: 140px 24px 60px 24px;
}
.doc-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 140px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-version {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub-light);
  margin-bottom: 8px;
  padding-left: 17px;
  letter-spacing: 0.5px;
}
.toc-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border-left: 2px solid transparent;
}
.toc-link:hover, .toc-link.active {
  color: var(--text-main);
  background: var(--glass-bg);
  border-left: 2px solid var(--text-main);
  transform: translateX(4px);
}
.doc-container {
  flex: 1;
  max-width: 800px;
}
.doc-header {
  text-align: left;
  margin-bottom: 60px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--text-sub-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.doc-title {
  font-size: 56px;
  margin-bottom: 16px;
}
.doc-subtitle {
  font-size: 20px;
  max-width: 650px;
}
.doc-content {
  animation: slideUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes slideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.doc-section {
  margin-bottom: 40px;
}
.doc-section:last-child {
  margin-bottom: 0;
}
.doc-section h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--logo-grad-start) 0%, var(--logo-grad-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-section p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 20px;
}
.playful-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.playful-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.5;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s;
}
.playful-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--text-sub-light);
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s;
}
.playful-list li strong {
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.3s;
}
.playful-list li:hover {
  transform: translateX(6px);
  color: var(--bento-hover-icon);
}
.playful-list li:hover::before {
  color: var(--bento-hover-icon);
  transform: scale(1.3) rotate(15deg);
}
.separator {
  height: 1px;
  background: var(--glass-border);
  margin: 40px 0;
  border-radius: 1px;
}
@media (max-width: 1024px) {
  .doc-wrapper {
    flex-direction: column;
    padding: 100px 20px 40px 20px;
    gap: 30px;
  }
  .doc-sidebar {
    position: relative;
    top: 0;
    flex: auto;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
  }
  .toc-link {
    font-size: 14px;
    padding: 6px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .toc-link:hover, .toc-link.active {
    border-left: none;
    border-bottom: 2px solid var(--text-main);
    transform: translateY(-2px);
  }
  .doc-content {
    padding: 32px 20px;
  }
}
