/* wpf学习笔记 - 站点样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #f6f7f9;
}

a {
  color: #1b6ac9;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部 */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.site-title {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

.site-title span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #6b7280;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav li {
  margin-left: 20px;
}

.site-nav a {
  color: #374151;
  padding: 6px 0;
  display: inline-block;
}

.site-nav a.active {
  color: #1b6ac9;
  border-bottom: 2px solid #1b6ac9;
}

/* 主体 */
.main {
  padding: 28px 0 40px;
}

.hero {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 12px;
}

.hero p {
  color: #4b5563;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f1f3;
}

.card h3 {
  font-size: 16px;
  color: #1f2937;
  margin: 18px 0 8px;
}

.card p {
  margin-bottom: 12px;
  color: #4b5563;
}

.card ul,
.card ol {
  margin: 0 0 12px 22px;
  color: #4b5563;
}

.card li {
  margin-bottom: 6px;
}

/* 笔记列表 */
.note-list {
  list-style: none;
  margin: 0;
}

.note-list li {
  padding: 14px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.note-list li:last-child {
  border-bottom: none;
}

.note-list .note-title {
  font-size: 16px;
  font-weight: bold;
}

.note-list .note-meta {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.note-list .note-desc {
  margin-top: 6px;
  color: #4b5563;
}

/* 文章 */
.article-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
}

code {
  font-family: Consolas, Monaco, "Courier New", monospace;
}

p code,
li code {
  background: #f1f3f5;
  color: #c0341d;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.info-table th,
.info-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: left;
  color: #4b5563;
}

.info-table th {
  background: #f9fafb;
  width: 140px;
  color: #1f2937;
}

/* 底部 */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer a {
  color: #6b7280;
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav li {
    margin: 0 16px 0 0;
  }

  .info-table th {
    width: 100px;
  }
}
