@charset "UTF-8";
/* =========================================================
   Base / Reset
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
  line-height: 1.7;
  color: #222;
  background: #fafafa;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   Site Header
========================================================= */

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.site-title {
  margin: 0;
  font-size: 2.2rem;
}

.site-title a {
  color: #222;
}

.site-description {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.95rem;
}

/* =========================================================
   Layout
========================================================= */

.layout {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main {
  flex: 1 1 70%;
  min-width: 0;
}

.sidebar {
  flex: 0 0 280px;
}

/* =========================================================
   Sidebar
========================================================= */

.sidebar .widget {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 6px;
}

.sidebar h2 {
  font-size: 1rem;
  margin-top: 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #ddd;
}

/* =========================================================
   Article / Markdown
========================================================= */

article h1,
article h2,
article h3 {
  margin-top: 2.5rem;
}

article p {
  margin: 1.2rem 0;
}

.post-date {
  display: inline-block;
  margin-right: 0.5rem;
  color: #666;
  font-variant-numeric: tabular-nums;
}

.post-meta {
  margin: -0.4rem 0 1.6rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-meta span + span {
  margin-left: 0.8rem;
}

article ul,
article ol {
  padding-left: 1.5rem;
}

/*article pre {
  background: #f0f0f0;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 6px;
}

article code {
  background: #eee;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}*/

/*article pre {
  background: #f6f8fa;
  color: #24292f;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #d0d7de;
}

article code {
  background: none;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}*/

article pre {
  background: #0d1117;
  color: #c9d1d9;
  margin-block: 1em;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
}

article .code-block {
  margin-block: 1em;
}

article .code-title {
  margin-bottom: 0.2rem;
  color: #24292f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.4;
}

article .code-block pre {
  margin-block: 0;
}

article code {
  background: none;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

article pre::-webkit-scrollbar {
  height: 8px;
}

article pre::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border: 1px solid #bfc7d1;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.8rem 1rem;
  border: 1px solid #c9d1db;
  text-align: left;
  vertical-align: top;
}

th {
  background: #cfd8e3;
  color: #1f2937;
  font-weight: 700;
}

tr:nth-child(even) td {
  background: #f3f6f9;
}

tr:hover td {
  background: #eaf2fb;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid #ddd;
  color: #666;
  background: #fff;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    order: 2;
  }

  .main {
    order: 1;
  }

  .post-meta span {
    display: block;
  }

  .post-meta span + span {
    margin-left: 0;
  }
}
