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

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.8;
  color: #3d3d3d;
  background: #fef9e7;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Nav */
.blog-nav {
  padding: 16px 0;
  border-bottom: 1px solid #e8dcc8;
  margin-bottom: 32px;
}
.blog-nav-inner {
  display: flex;
  gap: 16px;
}
.back-link {
  color: #8b7d5c;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.back-link:hover { color: #4a3f28; }

/* Article */
.blog-article {
  padding: 24px 0;
}
.blog-header {
  margin-bottom: 32px;
}
.blog-header h1 {
  font-size: 28px;
  color: #2d2618;
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-header time {
  font-size: 14px;
  color: #a08868;
}

/* Content */
.blog-content {
  word-break: break-word;
}
.blog-content h1 { font-size: 24px; color: #2d2618; margin: 32px 0 12px; }
.blog-content h2 { font-size: 20px; color: #4a3f28; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e8dcc8; }
.blog-content h3 { font-size: 17px; color: #6b5c3b; margin: 20px 0 8px; }
.blog-content p { margin: 12px 0; font-size: 16px; }
.blog-content a { color: #3d5a6e; }
.blog-content img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.blog-content hr { border: none; border-top: 1px solid #d4c4a8; margin: 32px 0; }
.blog-content blockquote { border-left: 3px solid #b8a080; padding-left: 16px; color: #8b7d5c; margin: 16px 0; }
.blog-content .callout { background: #fdf0d5; border-radius: 8px; padding: 12px 16px; margin: 16px 0; }

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.blog-content th, .blog-content td {
  border: 1px solid #d4c4a8;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.blog-content th {
  background: #f5f0e8;
  font-weight: 600;
  color: #4a3f28;
}
.blog-content td {
  background: #fff;
}

/* Code */
.blog-content pre {
  background: #2d2618;
  color: #f5f0e8;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
}
.blog-content code {
  background: #f5f0e8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #3d5a6e;
}
.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Lists */
.blog-content ul, .blog-content ol {
  margin: 12px 0;
  padding-left: 24px;
}
.blog-content li {
  margin: 4px 0;
  font-size: 15px;
}

/* Article footer */
.blog-article-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid #e8dcc8;
  text-align: center;
  color: #a08868;
  font-size: 14px;
}

/* Blog list */
.blog-list {
  padding: 16px 0;
}
.blog-list h1 {
  font-size: 24px;
  color: #2d2618;
  margin-bottom: 24px;
}
.post-list {
  list-style: none;
  padding: 0;
}
.post-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8dcc8;
}
.post-item time {
  font-size: 13px;
  color: #a08868;
  display: block;
  margin-bottom: 4px;
}
.post-title {
  font-size: 18px;
  color: #4a3f28;
  text-decoration: none;
  font-weight: 600;
}
.post-title:hover { color: #3d5a6e; }
.post-excerpt {
  font-size: 14px;
  color: #8b7d5c;
  margin-top: 6px;
}

/* Footer */
.blog-footer {
  text-align: center;
  padding: 32px 0 40px;
  color: #a08868;
  font-size: 14px;
}
.blog-footer a { color: #8b7d5c; }
.copyright { font-size: 12px; margin-top: 4px; color: #b8a080; }

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  background: #fff;
  border: 1px solid #e8dcc8;
  border-radius: 16px;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e8dcc8;
}
.author-name {
  font-size: 16px;
  font-weight: 700;
  color: #4a3f28;
  margin-bottom: 2px;
}
.author-bio {
  font-size: 13px;
  color: #8b7d5c;
  margin-bottom: 8px;
}
.author-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.follow-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid #d4c4a8;
  color: #6b5c3b;
  background: #fef9e7;
  transition: background 0.2s;
}
.follow-chip:hover { background: #fdf0d5; }
.follow-chip .qr-small { width: 40px; height: 40px; border-radius: 4px; }

/* Follow section */
.follow-section {
  margin: 48px 0 24px;
  padding: 32px 0;
  border-top: 1px solid #e8dcc8;
  text-align: center;
}
.follow-section h2 {
  font-size: 20px;
  color: #4a3f28;
  margin-bottom: 8px;
}
.follow-section > p {
  font-size: 14px;
  color: #8b7d5c;
  margin-bottom: 24px;
}
.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.follow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border-radius: 16px;
  text-decoration: none;
  border: 2px solid #e8dcc8;
  transition: transform 0.2s, box-shadow 0.2s;
}
.follow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.follow-card.douyin { border-color: #d4c4a8; }
.follow-card.bilibili { border-color: #FB7299; }
.follow-card.xiaohongshu { border-color: #FF2442; }
.follow-emoji { font-size: 32px; }
.follow-name { font-size: 14px; font-weight: 600; color: #4a3f28; }
.follow-desc { font-size: 11px; color: #a08868; }
.follow-qr { width: 80px; height: 80px; border-radius: 8px; margin-top: 4px; }

/* Mobile */
@media (max-width: 640px) {
  body { padding: 0 16px; }
  .blog-header h1 { font-size: 22px; }
  .blog-content h2 { font-size: 18px; }
  .follow-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .follow-card { padding: 16px 8px; }
  .follow-qr { width: 60px; height: 60px; }
  .author-card { flex-direction: column; text-align: center; }
}
