body {
  margin: 0;
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #fafafa;
  color: #24292e;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #24292e;
  color: white;
  padding: 1rem;
}

.header h1 {
  margin: 0;
  font-size: 1.5rem;
  cursor: pointer;
}

#langSelect {
  font-size: 1rem;
  padding: 0.25rem;
}

@media (max-width: 600px) {
  .header h1 {
    font-size: 1.1rem;
  }
  #langSelect {
    font-size: 0.9rem;
    padding: 0.2rem;
  }
  .markdown-body {
    padding: 1rem;
  }
  footer {
    font-size: 0.8rem;
  }
}

.markdown-body {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  line-height: 1.6;
}

/* GitHub 风格代码块 */
.markdown-body pre {
  position: relative;
  background-color: #2d2d2d;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
}

/* 代码字体和颜色 */
.markdown-body pre code {
  font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #f8f8f2;
  font-size: 14px;
  line-height: 1.5;
}

/* 复制按钮 - 固定右上，始终可见 */
.icon-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 1 !important; /* 始终显示 */
  transition: none;
  z-index: 10;
}

.icon-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: #c9d1d9;
}

.icon-copy-btn.copied svg {
  fill: #2ea44f;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f1f1f1;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}
