* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
  background: #f7f8fa;
  line-height: 1.7;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部 */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}
.site-header h1 a {
  text-decoration: none;
  color: #222;
  font-size: 24px;
}
.site-header nav {
  margin-top: 10px;
}
.site-header nav a {
  margin-right: 16px;
  color: #555;
  text-decoration: none;
}
.site-header nav a:hover {
  color: #0070f3;
}

/* 主体 */
main {
  padding: 40px 0;
  min-height: calc(100vh - 220px);
}

.loading {
  color: #888;
  text-align: center;
  padding: 40px 0;
}

/* 文章列表 */
.post-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-item h2 a {
  color: #222;
  text-decoration: none;
  font-size: 20px;
}
.post-item h2 a:hover {
  color: #0070f3;
}
.post-date {
  color: #888;
  font-size: 14px;
  margin: 6px 0 12px;
}
.post-summary {
  color: #555;
}
.readmore {
  display: inline-block;
  margin-top: 12px;
  color: #0070f3;
  text-decoration: none;
  font-size: 14px;
}

/* 文章详情 */
.post-detail {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.post-title {
  font-size: 26px;
  margin-bottom: 8px;
}
.post-content {
  margin-top: 20px;
  font-size: 16px;
  color: #333;
}

/* 卡片 */
.card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card h3 {
  margin-bottom: 16px;
  color: #222;
}

/* 表单 */
input, textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea {
  resize: vertical;
}

/* 按钮 */
.btn-primary, .btn-secondary, .btn-danger, .btn-small {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-primary {
  background: #0070f3;
  color: #fff;
}
.btn-secondary {
  background: #eee;
  color: #333;
}
.btn-danger {
  background: #e53e3e;
  color: #fff;
}
.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  margin-left: 8px;
}
.btn-group {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

/* 管理列表 */
.manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.manage-item:last-child {
  border-bottom: none;
}

/* 底部 */
.site-footer {
  text-align: center;
  padding: 24px 0;
  color: #888;
  font-size: 14px;
  background: #fff;
  border-top: 1px solid #eee;
}
