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

/* body {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  background-color: #f8f9fa;
} */

/* .container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} */

#markdown-content {
  line-height: 1.6;
}

#markdown-content h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #34495e;
}

#markdown-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #34495e;
}

#markdown-content p {
  margin-bottom: 15px;
}

#markdown-content ul,
#markdown-content ol {
  margin-bottom: 15px;
  padding-left: 30px;
}

#markdown-content li {
  margin-bottom: 5px;
}

#markdown-content pre {
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 15px;
}

#markdown-content code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
}

#markdown-content pre code {
  background-color: transparent;
  padding: 0;
}

#markdown-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 15px;
  margin: 15px 0;
  color: #666;
  font-style: italic;
}

/* Modern Table Styling */
table,
#markdown-content table,
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

th:first-child,
td:first-child,
#markdown-content th:first-child,
#markdown-content td:first-child,
.markdown-body th:first-child,
.markdown-body td:first-child {
    min-width: 280px;
    width: 280px;
}

th,
td,
#markdown-content th,
#markdown-content td,
.markdown-body th,
.markdown-body td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th,
#markdown-content th,
.markdown-body th {
    background-color: #223769;
    color: #ffffff;
    font-weight: normal;
}

tr:hover,
#markdown-content tr:hover,
.markdown-body tr:hover {
    background-color: #f5f5f5;
}

/* Table Container for Responsive Design */
.table-container,
#markdown-content .table-container,
.markdown-body .table-container {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-container table,
#markdown-content .table-container table,
.markdown-body .table-container table {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Modern Image Styling */
#markdown-content img,
.markdown-body img {
  max-width: 100%;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Respect width and height attributes when set */
#markdown-content img:not([width]),
.markdown-body img:not([width]) {
  width: auto;
}

#markdown-content img:not([height]),
.markdown-body img:not([height]) {
  height: auto;
}

#markdown-content img:hover,
.markdown-body img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Image Container for Better Alignment */
.image-container,
#markdown-content .image-container,
.markdown-body .image-container {
  margin: 25px 0;
  text-align: center;
}

/* Caption Styling */
.image-caption,
#markdown-content .image-caption,
.markdown-body .image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

#markdown-content hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

#markdown-content input[type="checkbox"] {
  margin-right: 5px;
}

/* 代码块行号样式 */
pre {
  position: relative;
  padding-left: 40px !important;
}

.line-numbers {
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 100%;
  background-color: #f0f0f0;
  border-right: 1px solid #ddd;
  padding: 15px 5px;
  text-align: right;
  font-size: 0.8em;
  line-height: 1.5;
  color: #999;
  user-select: none;
}