
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', sans-serif; font-size: 16px; line-height: 1.8; color: #333; background: #f5f5f5; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: #fff; border-bottom: 3px solid #f5a623; padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.site-title { font-size: 1.4em; font-weight: bold; color: #333; }
.site-title a { color: #333; }
.site-desc { font-size: 0.8em; color: #888; margin-top: 2px; }

/* Main layout */
.main-wrap { max-width: 900px; margin: 32px auto; padding: 0 20px; display: flex; gap: 24px; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 280px; flex-shrink: 0; }

/* Article cards */
.post-card { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.post-card-thumb { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 16px 20px 20px; }
.post-card-cats { margin-bottom: 8px; }
.cat-badge { display: inline-block; background: #f5a623; color: #fff; font-size: 0.72em; padding: 2px 10px; border-radius: 20px; margin-right: 4px; }
.post-card-title { font-size: 1.1em; font-weight: bold; line-height: 1.5; margin-bottom: 8px; }
.post-card-title a { color: #333; }
.post-card-title a:hover { color: #0066cc; text-decoration: none; }
.post-card-excerpt { font-size: 0.88em; color: #666; margin-bottom: 10px; }
.post-card-meta { font-size: 0.8em; color: #999; }

/* Single post */
.post-header { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.post-eyecatch { width: 100%; max-height: 400px; object-fit: cover; }
.post-header-body { padding: 20px 28px 24px; }
.post-title { font-size: 1.6em; font-weight: bold; line-height: 1.5; margin: 12px 0; }
.post-meta { font-size: 0.82em; color: #999; margin-bottom: 8px; }

.post-body { background: #fff; border-radius: 10px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.post-body h2 { font-size: 1.3em; padding: 10px 16px; background: #fff8e8; border-left: 4px solid #f5a623; margin: 28px 0 14px; border-radius: 0 6px 6px 0; }
.post-body h3 { font-size: 1.1em; border-bottom: 2px solid #f5a623; padding-bottom: 6px; margin: 22px 0 12px; }
.post-body h4 { font-size: 1em; font-weight: bold; margin: 18px 0 8px; }
.post-body p { margin-bottom: 14px; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 14px; }
.post-body li { margin-bottom: 4px; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.post-body th, .post-body td { border: 1px solid #ddd; padding: 8px 12px; }
.post-body th { background: #f5a623; color: #fff; }
.post-body blockquote { border-left: 4px solid #ccc; padding: 10px 16px; color: #666; background: #fafafa; margin: 14px 0; }
.post-body a { color: #0066cc; }
.post-body figure { margin: 12px 0; }

/* Sidebar */
.sidebar-widget { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.widget-title { font-size: 1em; font-weight: bold; padding-bottom: 8px; border-bottom: 2px solid #f5a623; margin-bottom: 14px; }
.cat-list { list-style: none; }
.cat-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9em; }
.cat-list li:last-child { border-bottom: none; }
.recent-list { list-style: none; }
.recent-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.88em; line-height: 1.5; }
.recent-list li:last-child { border-bottom: none; }

/* Footer */
.site-footer { background: #333; color: #ccc; text-align: center; padding: 24px; font-size: 0.85em; margin-top: 48px; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82em; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #999; }

/* Pager */
.pager { display: flex; gap: 12px; margin-top: 24px; }
.pager-link { flex: 1; background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); font-size: 0.88em; }
.pager-label { color: #999; font-size: 0.8em; margin-bottom: 4px; }
.pager-title { color: #333; font-weight: bold; }

@media(max-width: 700px) {
  .main-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .post-title { font-size: 1.3em; }
}
