.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--color-text);
  width: 100%;
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
}

.content-area.with-sidebar {
  border-left: 1px solid var(--color-border);
}

.content-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.75rem clamp(2rem, 5vw, 3rem) 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 14px rgba(45, 60, 115, 0.15);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb-separator {
  color: rgba(31, 42, 68, 0.3);
}

.breadcrumb-text {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(45, 60, 115, 0.12);
}

.content-title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.content-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem);
  height: 0;
  min-height: 0;
}

.markdown-pane {
  width: min(860px, 100%);
}

.markdown-content {
  line-height: 1.75;
  font-size: 1rem;
}

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

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
}

.markdown-content h1 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  border-bottom: 2px solid rgba(31, 42, 68, 0.08);
  padding-bottom: 0.6rem;
}

.markdown-content h2 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  border-bottom: 1px solid rgba(31, 42, 68, 0.08);
  padding-bottom: 0.45rem;
}

.markdown-content h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
}

.markdown-content h4 {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.markdown-content h5 {
  font-size: 1.05rem;
}

.markdown-content h6 {
  font-size: 1rem;
}

.heading-anchor {
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: rgba(31, 42, 68, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.markdown-content h1:hover .heading-anchor,
.markdown-content h2:hover .heading-anchor,
.markdown-content h3:hover .heading-anchor,
.markdown-content h4:hover .heading-anchor {
  opacity: 1;
  transform: translate(-4px, -50%);
}

.markdown-content p,
.markdown-content ul,
.markdown-content ol,
.markdown-content blockquote,
.markdown-content pre,
.markdown-content table {
  margin: 0 0 1.35rem;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 1.5rem;
}

.markdown-content li + li {
  margin-top: 0.4rem;
}

.markdown-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.inline-code {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--color-text);
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(45, 60, 115, 0.12);
}

/* 桌面端代码块样式 */
@media (min-width: 769px) {
  .code-block-wrapper {
    width: clamp(85%, 90%, calc(100vw - 4rem));
    max-width: min(1200px, calc(100vw - 4rem));
    margin: 1.5rem auto;
    background: rgba(246, 248, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(45, 60, 115, 0.18);
    position: relative;
  }
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem 0.75rem 5rem;
  background: rgba(125, 167, 242, 0.12);
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.code-block-header::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}

.code-block-header::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 
    20px 0 0 #ffbd2e,
    40px 0 0 #28ca42,
    0 0 0 1px rgba(0, 0, 0, 0.1),
    20px 0 0 1px rgba(0, 0, 0, 0.1),
    40px 0 0 1px rgba(0, 0, 0, 0.1);
}

.code-block-header .code-copy-button {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.code-copy-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-muted);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  box-shadow: 0 3px 10px rgba(45, 60, 115, 0.16);
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-button:hover {
  color: var(--color-accent);
  border-color: rgba(125, 167, 242, 0.5);
}

.code-copy-button.copied {
  color: var(--color-accent);
  border-color: rgba(125, 167, 242, 0.65);
}

pre {
  margin: 0;
  padding: 1.1rem 1.35rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  font-size: 0.95rem;
  box-sizing: border-box;
  max-width: 100%;
  white-space: pre;
  line-height: 1.6;
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏 WebKit 浏览器的滚动条 */
pre::-webkit-scrollbar {
  display: none;
}





pre code {
  background: transparent !important;
  color: #1f2a44;
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: pre;
  line-height: inherit;
}

.markdown-image {
  margin: 1.6rem 0;
  text-align: center;
}

.markdown-image img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 30px rgba(45, 60, 115, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.markdown-image figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.markdown-content blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(125, 167, 242, 0.5);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 0 14px 14px 0;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(45, 60, 115, 0.14);
}

.markdown-content hr {
  border: none;
  border-top: 1px dashed rgba(31, 42, 68, 0.12);
  margin: 2.25rem 0;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(45, 60, 115, 0.16);
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(31, 42, 68, 0.1);
  text-align: left;
}

.table-wrapper th {
  color: var(--color-muted);
  font-weight: 600;
}

.table-wrapper tr:last-child td {
  border-bottom: none;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.external-link-icon {
  font-size: 0.8rem;
}

.loading-content {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 3rem 0;
  color: var(--color-muted);
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(111, 123, 146, 0.25);
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.welcome-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  min-height: calc(100vh - 7rem);
}

.welcome-content {
  text-align: center;
  max-width: 520px;
  padding: 2.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 36px rgba(45, 60, 115, 0.2);
}

.welcome-content h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(2.1rem, 3.2vw, 2.6rem);
}

.welcome-content p {
  margin: 0 auto 1.6rem;
  color: var(--color-muted);
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(31, 42, 68, 0.75);
  box-shadow: 0 4px 10px rgba(45, 60, 115, 0.16);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(45, 60, 115, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.feature-icon {
  font-size: 1.1rem;
}

/* 手机屏 */
@media (max-width: 768px) {
  .content-area {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .content-header {
    padding: clamp(0.5rem, 1.5vw, 0.75rem);
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .markdown-pane {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .heading-anchor {
    display: none;
  }

  .content-title {
    font-size: clamp(1.125rem, 3.5vw, 1.375rem);
    line-height: 1.2;
    margin-bottom: 0.375rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .content-body {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .markdown-content {
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h1 {
    font-size: clamp(1.375rem, 4.5vw, 1.75rem);
    line-height: 1.1;
    margin: 1.25rem 0 0.875rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h2 {
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    line-height: 1.2;
    margin: 1rem 0 0.625rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h3 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.2;
    margin: 0.875rem 0 0.5rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h4 {
    font-size: clamp(0.95rem, 2.8vw, 1.125rem);
    line-height: 1.3;
    margin: 0.75rem 0 0.375rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h5 {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.3;
    margin: 0.625rem 0 0.375rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content h6 {
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    line-height: 1.3;
    margin: 0.5rem 0 0.25rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content p {
    margin: 0.625rem 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content li {
    margin: 0.25rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .markdown-content blockquote {
    margin: 0.875rem 0;
    padding: 0.625rem 0.875rem;
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .code-block-wrapper {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0.875rem 0 0.875rem 0;
    background: rgba(246, 248, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 8px 25px rgba(45, 60, 115, 0.18);
    position: relative;
  }

  .code-block-header {
    padding: 0.375rem 0.5rem;
    font-size: 0.7rem;
  }

  .code-block-controls button {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
  }

  .copy-button {
    width: 24px;
    height: 24px;
    font-size: 10px;
    top: 0.375rem;
    right: 0.375rem;
  }

  .markdown-content pre {
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre;
    line-height: 1.4;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    /* 隐藏滚动条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  /* 隐藏移动端 WebKit 浏览器的滚动条 */
  .markdown-content pre::-webkit-scrollbar {
    display: none;
  }

  .markdown-content img {
    margin: 0.875rem auto;
    border-radius: 6px;
    max-width: calc(100vw - 1rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .markdown-content table {
    font-size: 0.8rem;
    width: 100%;
    max-width: calc(100vw - 1rem);
    overflow-x: auto;
    display: block;
  }

  .markdown-content th,
  .markdown-content td {
    padding: 0.375rem 0.5rem;
    min-width: 80px;
  }

  .feature-item {
    flex-direction: column;
  }
}

