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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.8;
  color: #2c2c2c;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页面加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 页面淡出动画 */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* 页面内容渐入动画 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px;
  flex: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 页面过渡动画类 */
.page-transition {
  animation: fadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

header {
  margin-bottom: 64px;
  padding: 48px 40px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03), 0 1px 6px rgba(0, 0, 0, 0.02);
  text-align: center;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.03);
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  color: #1a1a1a;
}

header .description {
  color: #888;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

nav {
  margin-bottom: 56px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #2c2c2c;
  text-decoration: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

nav a:hover {
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.post-list {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.post-item {
  padding: 40px 48px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.post-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.04);
}

.post-item:first-child {
  padding-top: 40px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-title a {
  color: #2c2c2c;
  text-decoration: none;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-title a:hover {
  color: #1a1a1a;
}

.post-pinned {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.post-meta {
  color: #999;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.post-content {
  padding: 48px 56px;
  background: #ffffff;
  line-height: 1.9;
  font-size: 16px;
  font-weight: 400;
  color: #2c2c2c;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 1px 6px rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-content:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06), 0 3px 12px rgba(0, 0, 0, 0.04);
}

.post-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f5f5f5;
  letter-spacing: -0.8px;
  color: #1a1a1a;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 40px 0 24px;
  letter-spacing: -0.5px;
  color: #1a1a1a;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 36px 0 20px;
  letter-spacing: -0.4px;
  color: #2c2c2c;
}

.post-content h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 18px;
  letter-spacing: -0.3px;
  color: #2c2c2c;
}

.post-content p {
  margin-bottom: 24px;
  text-align: left;
  color: #2c2c2c;
}

.post-content pre {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 32px;
  font-size: 13px;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.post-content code {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 4px 12px;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px;
  color: #2c2c2c;
}

.post-content blockquote {
  border-left: 4px solid #e8e8e8;
  padding-left: 24px;
  margin: 32px 0;
  color: #666;
  font-weight: 400;
  font-style: italic;
  background: #fafafa;
  padding: 20px 24px;
  border-radius: 0 16px 16px 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.post-content ul,
.post-content ol {
  margin-bottom: 32px;
  padding-left: 36px;
  color: #2c2c2c;
}

.post-content li {
  margin-bottom: 14px;
  font-weight: 400;
}

.post-content a {
  color: #2c2c2c;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-content a:hover {
  color: #1a1a1a;
}

.pagination {
  padding: 32px 0;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.pagination a {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pagination a:hover {
  background: #fafafa;
  border-color: #d5d5d5;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.pagination a.current {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.archive-list {
  padding: 48px 56px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 1px 6px rgba(0, 0, 0, 0.02);
  margin-bottom: 64px;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-list:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06), 0 3px 12px rgba(0, 0, 0, 0.04);
}

.archive-list h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #1a1a1a;
  letter-spacing: -0.4px;
}

.archive-year {
  font-size: 14px;
  font-weight: 600;
  margin: 32px 0 24px;
  color: #666;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.archive-item {
  padding: 20px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-item:hover {
  padding: 20px 0 20px 12px;
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-item a {
  color: #2c2c2c;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.3px;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-item a:hover {
  color: #1a1a1a;
}

.archive-pinned {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  background: #f5f5f5;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  margin-left: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.archive-date {
  color: #999;
  font-size: 14px;
  margin-left: 20px;
  font-weight: 400;
}

footer {
  padding: 48px 40px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-weight: 400;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04), 0 1px 6px rgba(0, 0, 0, 0.02);
  margin-top: 64px;
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06), 0 3px 12px rgba(0, 0, 0, 0.04);
}

footer p {
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

footer .beian a {
  color: #999;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .beian a:hover {
  color: #666;
}

footer .runtime {
  margin-top: 16px;
  color: #888;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .container {
    padding: 56px 24px;
  }

  header {
    padding: 36px 32px;
    margin-bottom: 48px;
  }

  header h1 {
    font-size: 26px;
  }

  header .description {
    font-size: 15px;
  }

  nav {
    margin-bottom: 48px;
    gap: 16px;
  }

  nav a {
    padding: 12px 24px;
    font-size: 14px;
  }

  .post-item {
    padding: 32px 36px;
  }

  .post-title {
    font-size: 18px;
  }

  .post-content {
    padding: 36px 40px;
    font-size: 15px;
  }

  .post-content h1 {
    font-size: 28px;
  }

  .post-content h2 {
    font-size: 24px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .archive-list {
    padding: 36px 40px;
  }

  footer {
    padding: 36px 32px;
  }
}

/* 捐赠弹窗样式 */
.donate-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.donate-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.donate-modal-content {
  background: #ffffff;
  padding: 48px 56px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  position: relative;
  max-width: 600px;
  width: 90%;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.donate-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.donate-modal-close:hover {
  color: #1a1a1a;
  background-color: #f5f5f5;
}

.donate-modal-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.donate-modal-text {
  color: #666;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.donate-qr-codes {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.donate-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donate-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  margin-bottom: 12px;
}

.donate-qr-label {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

/* 归档页面标题布局 */
.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.archive-header h2 {
  margin: 0;
}

.donate-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #2c2c2c;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  letter-spacing: 0.3px;
}

.donate-btn:hover {
  color: #1a1a1a;
  border-color: #d5d5d5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .donate-modal-content {
    padding: 36px 40px;
    width: 95%;
  }

  .donate-modal-title {
    font-size: 20px;
  }

  .donate-modal-text {
    font-size: 14px;
  }

  .donate-qr-codes {
    flex-direction: column;
    gap: 24px;
  }

  .donate-qr-img {
    width: 180px;
    height: 180px;
  }

  .archive-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .donate-btn {
    width: 100%;
  }
}