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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 24px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
}

.site-nav a {
  margin-left: 24px;
  font-size: 15px;
  color: #86868b;
}

.site-nav a:hover {
  color: #1d1d1f;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-item {
  list-style: none;
}

.post-link {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.post-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info {
  flex: 1;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.post-summary {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-date {
  font-size: 13px;
  color: #aeaeb2;
}

.post-single {
  max-width: 720px;
  margin: 0 auto;
}

.post-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-header time {
  font-size: 14px;
  color: #86868b;
  display: block;
  margin-bottom: 40px;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
}

.post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-content img {
  border-radius: 8px;
  margin: 24px 0;
  cursor: pointer;
}

.post-content img:active {
  transform: scale(1.02);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.post-content th,
.post-content td {
  border: 1px solid #e5e5e5;
  padding: 10px 14px;
  text-align: left;
}

.post-content th {
  background: #f5f5f7;
  font-weight: 600;
}

.post-content tr:hover {
  background: #fafafa;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
  color: #86868b;
}

.post-nav a:hover {
  color: #1d1d1f;
}

.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 13px;
  color: #aeaeb2;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .site-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav.active a {
    margin: 8px 0;
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .post-link {
    flex-direction: column;
  }

  .post-thumb {
    width: 100%;
    height: 180px;
  }

  .post-header h1 {
    font-size: 24px;
  }
}
