/**
 * 烧风主题 - 主样式表
 * 参照 leehenry.top 布局风格
 */

:root {
  --primary: #2C5F2E;
  --primary-dark: #1E3D1F;
  --accent: #D4A853;
  --sky: #4A90D9;
  --text: #1a1a1a;
  --text-muted: #888;
  --border: #e0e0d8;
  --bg: #fafaf8;
  --surface: #ffffff;
  --radius: 4px;
  --shadow-sm: 0 2px 8px rgba(44,95,46,0.06);
  --shadow-md: 0 4px 16px rgba(44,95,46,0.1);
  --banner-height: 65vh;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'Georgia', 'SimSun', serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ── Banner ── */
.site-banner {
  position: relative;
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
}
.site-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}
.site-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1)  40%,
    rgba(250,250,248,0.6) 80%,
    rgba(250,250,248,1)   100%
  );
  pointer-events: none;
}

/* ── Navbar ── */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a { text-decoration: none; color: var(--text); }
.site-branding img { max-height: 40px; width: auto; }
.site-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
}
.site-title:hover { color: var(--primary); }
.site-description { font-size: 12px; color: var(--text-muted); }
  justify-content: space-between;
  gap: 24px;
}
.site-branding a { text-decoration: none; color: var(--text); }
.site-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
}
.site-title:hover { color: var(--primary); }
.site-description { font-size: 12px; color: var(--text-muted); }

/* ── Navigation ── */
.main-navigation { flex: 1; }
.main-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.main-navigation li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
  color: var(--primary);
  background: rgba(44,95,46,0.06);
  text-decoration: none;
}

/* ── Header Actions ── */
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all 0.15s;
  text-decoration: none;
}
.header-actions a:hover { color: var(--primary); background: rgba(44,95,46,0.06); }

/* ── Layout ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.page-wrap--full {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: block;
}

/* ── Sidebar ── */
#secondary { position: sticky; top: 72px; }
.widget { margin-bottom: 32px; }
.widget-title {
  font-size: 11px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}
.widget ul { list-style: none; }
.widget ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--radius);
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: all 0.15s;
}
.widget ul li a:hover { color: var(--primary); background: rgba(44,95,46,0.06); text-decoration: none; }
.widget ul li .tag-emoji { font-size: 14px; min-width: 18px; }
.widget ul li .tag-name { flex: 1; }
.widget ul li .tag-count { font-size: 11px; color: #ccc; font-family: Georgia, serif; }

/* ── Content ── */
#primary { min-width: 0; }

/* ── Post List (has_thumbnail) ── */
.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  align-items: start;
}
.post-card:first-child { padding-top: 0; }
.post-card:last-child { border-bottom: none; }
.post-card__body { min-width: 0; }
.post-card__thumb {
  width: 180px;
  height: 120px;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
  align-self: start;
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.97);
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

/* Post List (no thumbnail) */
.post-card.no-thumb { display: block; }

/* ── Entry Header ── */
.entry-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
}
.entry-title a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.entry-title a:hover { color: var(--primary); }

/* ── Entry Excerpt ── */
.entry-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.85;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

/* ── Entry Meta ── */
.entry-meta {
  font-size: 12px;
  color: #aaa;
  font-family: Georgia, serif;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.entry-meta a { color: #aaa; text-decoration: none; }
.entry-meta a:hover { color: var(--primary); text-decoration: none; }
.entry-meta .sep { color: #ddd; }

/* ── Categories ── */
.post-categories { margin-bottom: 6px; }
.post-categories a {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  margin-right: 4px;
  font-weight: 500;
  text-decoration: none;
}
.post-categories a:hover { background: var(--primary-dark); text-decoration: none; }

/* ── Read More ── */
.read-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary);
  font-family: Georgia, serif;
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* ── Post Footer ── */
.entry-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dotted var(--border);
  font-size: 12px;
  color: #aaa;
  font-family: Georgia, serif;
}
.entry-footer a { color: #aaa; font-size: 11px; text-decoration: none; }
.entry-footer a:hover { color: var(--primary); }
.tags-links { margin-top: 6px; display: block; }
.tags-links a {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  margin-right: 4px;
  color: #888;
  font-size: 11px;
  text-decoration: none;
  font-family: Georgia, serif;
  border-radius: 2px;
}
.tags-links a:hover { border-color: var(--primary); color: var(--primary); }

/* ── Pagination ── */
.pagination,
.nav-links {
  display: flex;
  gap: 6px;
  margin-top: 40px;
  font-family: Georgia, serif;
  font-size: 13px;
  flex-wrap: wrap;
}
.pagination a, .pagination span,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  color: #666;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.pagination a:hover,
.nav-links a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Post Navigation ── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 32px 0;
  font-family: Georgia, serif;
  font-size: 13px;
}
.post-navigation a { color: #555; text-decoration: none; }
.post-navigation a:hover { color: var(--primary); }
.post-navigation .nav-prev { max-width: 45%; }
.post-navigation .nav-next { max-width: 45%; text-align: right; }
.post-navigation .nav-label { font-size: 11px; color: #ccc; display: block; }

/* ── 404 ── */
.error-404 {
  text-align: center;
  padding: 80px 0;
}
.error-404 h1 {
  font-size: 80px;
  font-weight: normal;
  color: #e0e0d8;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.error-404 p { color: var(--text-muted); margin-bottom: 8px; font-size: 13px; }
.error-404 .btn { margin-top: 16px; }

/* ── Search ── */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 24px 0;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--text);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--primary); }
.search-form input[type="submit"] {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 13px;
  transition: background 0.2s;
}
.search-form input[type="submit"]:hover { background: var(--primary-dark); }

/* ── Archive Title ── */
.page-header { margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.archive-description {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-family: Georgia, serif;
}

/* ── Archive List ── */
.archive-year { margin-bottom: 40px; }
.archive-year-title {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: normal;
}
.archive-list { list-style: none; }
.archive-list li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list .archive-title { color: var(--text); text-decoration: none; flex: 1; }
.archive-list .archive-title:hover { color: var(--primary); }
.archive-list .archive-date { font-size: 12px; color: var(--text-muted); font-family: Georgia, serif; white-space: nowrap; min-width: 50px; }

/* ── Page Template ── */
.page-content .entry-title { font-size: 28px; margin-bottom: 24px; }

/* ── Single Post ── */
.content-area--single { padding-top: 60px; }
.entry--single .entry-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}
.entry--single .entry-meta {
    margin-bottom: 32px;
    font-size: 13px;
}
.entry--single .post-categories {
    margin-bottom: 12px;
}
.post-featured-image {
    margin-bottom: 32px;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}
.entry-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.entry-footer .tag-link {
    display: inline-block;
    padding: 2px 10px;
    margin: 4px 4px 4px 0;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}
.entry-footer .tag-link:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list .archive-title { color: var(--text); text-decoration: none; flex: 1; }
.archive-list .archive-title:hover { color: var(--primary); }
.archive-list .archive-date { font-size: 12px; color: var(--text-muted); font-family: Georgia, serif; white-space: nowrap; min-width: 50px; }

/* ── Page Template ── */
.page-content .entry-title { font-size: 28px; margin-bottom: 24px; }
.page-wrap--full { max-width: 800px; grid-template-columns: 1fr; }

/* ── Entry Content ── */
.entry-content { font-size: 15px; line-height: 2; color: #333; }
.entry-content p { margin-bottom: 18px; }
.entry-content h2 { font-family: 'Noto Serif SC', serif; font-size: 20px; font-weight: 600; margin: 28px 0 14px; color: var(--text); }
.entry-content h3 { font-family: 'Noto Serif SC', serif; font-size: 17px; font-weight: 600; margin: 24px 0 12px; color: var(--text); }
.entry-content blockquote { border-left: 3px solid #ccc; margin: 20px 0; padding: 4px 0 4px 20px; color: #666; font-style: italic; }
.entry-content ul, .entry-content ol { margin: 16px 0 16px 24px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border: 1px solid var(--border); padding: 4px; background: #fff; margin: 16px 0; }
.entry-content pre, .entry-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 13px; font-family: monospace; }

/* ── Comments ── */
#comments { margin-top: 40px; }
.comments-title { font-family: 'Noto Serif SC', serif; font-size: 18px; font-weight: 600; margin-bottom: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.comment-list { list-style: none; }
.comment { padding: 16px 0; border-bottom: 1px solid #eee; }
.comment-meta { font-size: 12px; color: #aaa; font-family: Georgia, serif; margin-bottom: 6px; }
.comment-meta a { color: #aaa; }
.comment-body { font-size: 13px; line-height: 1.8; color: #444; }
.comment-body p { margin-bottom: 8px; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 11px; color: #aaa; text-decoration: none; font-family: Georgia, serif; }
.comment.depth-2 { padding-left: 24px; border-left: 2px solid #eee; margin-top: 12px; }

/* Comment Form */
#respond { margin-top: 32px; }
#reply-title { font-size: 16px; color: var(--text); margin-bottom: 16px; font-family: 'Noto Serif SC', serif; }
.comment-form label { display: block; font-size: 12px; color: #666; margin-bottom: 4px; font-family: Georgia, serif; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; max-width: 400px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: Georgia, serif; font-size: 13px;
  background: #fff; color: var(--text); box-sizing: border-box;
}
.comment-form textarea { max-width: 100%; min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); }
.form-submit input[type="submit"] {
  background: var(--primary); color: #fff; border: none;
  padding: 8px 20px; font-size: 13px; cursor: pointer;
  font-family: Georgia, serif; border-radius: var(--radius);
  transition: background 0.2s;
}
.form-submit input[type="submit"]:hover { background: var(--primary-dark); }

/* ── Footer ── */
#colophon {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: #bbb;
  font-family: Georgia, serif;
}
#colophon a { color: #bbb; }
#colophon a:hover { color: var(--primary); text-decoration: none; }

/* ── Utility ── */
.screen-reader-text { position: absolute; left: -9999px; }
.container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }
.content-area { padding: 40px 0 80px; }
.content-area--page { padding-top: 60px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-wrap { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px 60px; }
  #secondary { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__thumb { width: 100%; height: 200px; }
  .header-inner { padding: 0 16px; }
  .main-navigation ul { display: none; }
  .site-banner { height: 40vh; }
}
