/* ============================================================
   neulx.top - Garden Journal Theme
   Exact clone from blog-starter demo.tsx GardenHome
   Colors: #e8f0df / #f7faef / #b7c8a9 / #6b8a53 / #172416
   ============================================================ */

/* Reset */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:"Georgia","Noto Serif SC","PingFang SC","Microsoft YaHei",serif;line-height:1.6;-webkit-font-smoothing:antialiased;background:#e8f0df;color:#172416}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}

/* Page wrapper: full green background with padded inner container */
.page-wrapper {
  min-height: 100vh;
  background: #e8f0df;
  padding: 16px;
}
.page-inner {
  min-height: calc(100vh - 32px);
  border-radius: 12px;
  border: 1px solid #b7c8a9;
  background: #f7faef;
  padding: 20px;
}

/* ===== Header ===== */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d5e6c8;
}
.site-title {
  font-size: 18px;
  font-weight: 600;
  color: #172416;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #62785a;
}
.nav-links a {
  color: #62785a;
  transition: color .15s;
}
.nav-links a:hover {
  color: #172416;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}
.hero-image-wrap {
  width: 100%;
}
.hero-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 10px;
}
.hero-avatar {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 10px;
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 10px;
  background: linear-gradient(135deg, #d5e6c8 0%, #b7c8a9 40%, #8aa868 70%, #6b8a53 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b8a53;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 0.95;
  font-weight: 600;
  color: #172416;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: 18px;
  line-height: 32px;
  color: #51634b;
  max-width: 560px;
}
.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  background: #172416;
  color: #f7faef;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: background .2s;
  width: fit-content;
}
.hero-cta:hover {
  background: #2d3d29;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid #e8f0df;
  border-bottom: 1px solid #e8f0df;
}
.stat-item {
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #172416;
  font-family: "Georgia", serif;
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: 11px;
  color: #8ba67a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Posts Grid ===== */
.posts-grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
.post-card {
  border-radius: 10px;
  border: 1px solid #b7c8a9;
  background: #fffdf5;
  padding: 20px;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23,36,22,0.08);
}
.post-card-num {
  position: absolute;
  top: -8px;
  right: 8px;
  font-size: 64px;
  font-weight: 700;
  color: #d5e6c8;
  line-height: 1;
  pointer-events: none;
  font-family: "Georgia", serif;
  z-index: 0;
}
.post-card-tag {
  font-size: 12px;
  font-weight: 600;
  color: #6b8a53;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.post-card-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: #172416;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.post-card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #51634b;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.post-card-meta {
  margin-top: 12px;
  font-size: 12px;
  color: #62785a;
  position: relative;
  z-index: 1;
}

/* ===== Post Page ===== */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}
.post-header {
  margin-bottom: 36px;
}
.post-cover {
  margin-bottom: 36px;
  border-radius: 4px;
  overflow: hidden;
}
.post-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.post-meta-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6b8a53;
  margin-bottom: 16px;
}
.post-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 600;
  color: #172416;
  margin-bottom: 12px;
}
.post-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  background: #e8f0df;
  color: #6b8a53;
}
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: #2d3d29;
}
.post-content h2 {
  font-size: 28px;
  font-weight: 600;
  margin: 48px 0 16px;
  color: #172416;
}
.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #172416;
}
.post-content p {
  margin-bottom: 20px;
  text-indent: 2em;
}
.post-content ul, .post-content ol {
  margin: 8px 0 20px 24px;
}
.post-content li {
  margin-bottom: 6px;
}
.post-content blockquote {
  border-left: 3px solid #b7c8a9;
  margin: 24px 0;
  padding: 12px 24px;
  color: #51634b;
  font-style: italic;
  background: #f7faef;
  border-radius: 0 8px 8px 0;
}
.post-content code {
  background: #f0f4e8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #6b8a53;
  font-family: "SF Mono","Cascadia Code","Consolas",monospace;
}
.post-content pre {
  background: #172416;
  color: #d5e6c8;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}
.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ===== Tables (Feishu style) ===== */
.post-content .table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #b7c8a9;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.6;
}
.post-content thead {
  background: #6b8a53;
}
.post-content th {
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: #f7faef;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.post-content td {
  padding: 10px 16px;
  border-bottom: 1px solid #e8f0df;
  color: #2d3d29;
}
.post-content tbody tr:last-child td {
  border-bottom: none;
}
.post-content tbody tr:nth-child(even) {
  background: #f7faef;
}
.post-content tbody tr:hover {
  background: #f0f4e8;
}
.post-content td code {
  font-size: 0.85em;
}

.post-nav {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid #b7c8a9;
}
.post-nav a {
  font-size: 14px;
  color: #6b8a53;
  transition: color .15s;
}
.post-nav a:hover {
  color: #172416;
}

/* ===== Comments ===== */
.comments-section {
  max-width: 720px;
  margin: 0 auto 60px;
}
.comments-title {
  font-size: 20px;
  font-weight: 600;
  color: #172416;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #b7c8a9;
}
.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid #e8f0df;
}
.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: #6b8a53;
}
.comment-time {
  font-size: 12px;
  color: #8ba67a;
  margin-left: 8px;
}
.comment-body {
  font-size: 15px;
  margin-top: 6px;
  color: #51634b;
  line-height: 1.7;
}
.comment-form {
  margin-top: 32px;
  padding: 24px;
  background: #fffdf5;
  border-radius: 10px;
  border: 1px solid #b7c8a9;
}
.comment-form-title {
  font-size: 15px;
  font-weight: 600;
  color: #172416;
  margin-bottom: 16px;
}
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group {
  flex: 1;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #b7c8a9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #f7faef;
  color: #172416;
  transition: border .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #6b8a53;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #8ba67a;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-submit-btn {
  padding: 10px 28px;
  background: #172416;
  color: #f7faef;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.form-submit-btn:hover {
  background: #2d3d29;
}
.captcha-question {
  font-size: 14px;
  color: #6b8a53;
}
.form-message {
  margin-top: 8px;
  font-size: 13px;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #b7c8a9;
  text-align: center;
}
.footer-text {
  font-size: 13px;
  color: #8ba67a;
}

/* ===== About Page ===== */
.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}
.about-page h1 {
  font-size: 36px;
  font-weight: 600;
  color: #172416;
  margin-bottom: 24px;
}
.about-page p {
  font-size: 16px;
  line-height: 1.85;
  color: #2d3d29;
  margin-bottom: 16px;
}

/* ===== Responsive ===== */

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .page-inner { padding: 40px; }
  .hero {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 40px;
  }
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .post-article, .comments-section { padding-left: 0; padding-right: 0; }
}

/* Tablet: 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-inner { padding: 28px; }
  .hero { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero-title { font-size: clamp(28px, 6vw, 40px); }
  .hero-label { font-size: 11px; }
  .hero-subtitle { font-size: 16px; line-height: 28px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .post-card { padding: 16px; }
  .post-card-title { font-size: 20px; }
  .post-article { padding: 24px 0; }
}

/* Mobile: below 768px */
@media (max-width: 767px) {
  .page-wrapper { padding: 8px; }
  .page-inner { padding: 16px; border-radius: 8px; min-height: auto; }

  /* Header */
  .site-header { gap: 8px; }
  .header-avatar { width: 32px; height: 32px; }
  .site-title { font-size: 16px; }
  .nav-links { gap: 12px; font-size: 13px; }

  /* Hero - hide image, stack text */
  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
    gap: 0;
  }
  .hero-image-wrap { display: none; }
  .hero-label { font-size: 10px; letter-spacing: 0.15em; margin-bottom: 12px; }
  .hero-title { font-size: clamp(24px, 10vw, 36px); margin-bottom: 12px; }
  .hero-subtitle { font-size: 15px; line-height: 26px; }

  /* Posts grid - single column */
  .posts-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .post-card { padding: 16px; }
  .post-card-title { font-size: 20px; }
  .post-card-summary { font-size: 13px; -webkit-line-clamp: 2; }

  /* Post page */
  .post-article { padding: 24px 0; }
  .post-title { font-size: clamp(24px, 8vw, 32px); }
  .post-content { font-size: 15px; line-height: 1.75; }
  .post-content h2 { font-size: 22px; margin: 36px 0 12px; }
  .post-content h3 { font-size: 18px; }

  /* Comments */
  .comments-section { margin-bottom: 40px; }
  .comment-form { padding: 16px; }
  .form-row { flex-direction: column; gap: 8px; }
  .form-group input, .form-group textarea { font-size: 16px; }

  /* About */
  .about-page { padding: 24px 0; }
  .about-page h1 { font-size: 28px; }

  /* Stats */
  .stats-bar { 
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px; 
    padding: 16px 0;
    text-align: center;
  }
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
  }
  .stat-number { 
    font-size: 24px; 
    font-weight: 700;
    color: #172416;
    font-family: "Georgia", serif;
    line-height: 1.2;
  }
  .stat-label {
    font-size: 10px;
    color: #8ba67a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* Footer */
  .site-footer { margin-top: 40px; padding-top: 24px; }
  .footer-text { font-size: 12px; }
}

/* ============================================================
   THEME: MAKER MONOCHROME
   Black & white. Bold grid. Clean sans-serif.
   ============================================================ */
[data-theme="monochrome"] body {
  font-family: "Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif;
  background: #ffffff;
  color: #111111;
}
[data-theme="monochrome"] .page-wrapper {
  background: #ffffff;
  padding: 0;
}
[data-theme="monochrome"] .page-inner {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 40px;
  min-height: auto;
}
[data-theme="monochrome"] .header-avatar {
  border-color: #000000;
  width: 36px; height: 36px;
}
[data-theme="monochrome"] .site-title {
  font-weight: 700;
  font-size: 20px;
  color: #000;
  letter-spacing: -0.5px;
}
[data-theme="monochrome"] .nav-links a {
  color: #777;
  font-size: 14px;
  text-transform: lowercase;
}
[data-theme="monochrome"] .nav-links a:hover { color: #000; }
[data-theme="monochrome"] .hero-label {
  color: #999;
  font-size: 11px;
}
[data-theme="monochrome"] .hero-title {
  font-family: "Helvetica Neue","PingFang SC",sans-serif;
  font-weight: 800;
  color: #000;
}
[data-theme="monochrome"] .hero-subtitle {
  color: #555;
}
[data-theme="monochrome"] .hero-avatar {
  border-radius: 4px;
  border: 2px solid #000;
}
[data-theme="monochrome"] .stats-bar {
  border-color: #e5e5e5;
  margin-top: 40px;
}
[data-theme="monochrome"] .stat-number {
  font-family: "Helvetica Neue",sans-serif;
  color: #000;
}
[data-theme="monochrome"] .stat-label {
  color: #999;
  font-weight: 500;
}
[data-theme="monochrome"] .post-card {
  background: #ffffff;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #000;
}
[data-theme="monochrome"] .post-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #000;
}
[data-theme="monochrome"] .post-card-num {
  color: #f0f0f0;
  font-family: "Helvetica Neue",sans-serif;
}
[data-theme="monochrome"] .post-card-tag {
  color: #000;
  font-family: "SF Mono","Consolas",monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[data-theme="monochrome"] .post-card-title {
  font-family: "Helvetica Neue","PingFang SC",sans-serif;
  font-weight: 700;
  color: #000;
}
[data-theme="monochrome"] .post-card-summary {
  color: #555;
}
[data-theme="monochrome"] .post-card-meta {
  font-family: "SF Mono","Consolas",monospace;
  color: #999;
}
[data-theme="monochrome"] .post-meta-date {
  color: #999;
  font-family: "SF Mono","Consolas",monospace;
}
[data-theme="monochrome"] .post-title {
  color: #000;
  font-weight: 800;
  font-family: "Helvetica Neue","PingFang SC",sans-serif;
}
[data-theme="monochrome"] .post-content {
  color: #333;
}
[data-theme="monochrome"] .post-content h2 { color: #000; }
[data-theme="monochrome"] .post-content h3 { color: #111; }
[data-theme="monochrome"] .tag {
  background: #000;
  color: #fff;
  border-radius: 0;
}
[data-theme="monochrome"] .post-content blockquote {
  border-left-color: #000;
  background: #fafafa;
  color: #555;
}
[data-theme="monochrome"] .post-content code {
  background: #f5f5f5;
  color: #000;
}
[data-theme="monochrome"] .post-content pre {
  background: #111;
  color: #eee;
}
[data-theme="monochrome"] .post-content table {
  border: 2px solid #000;
  border-radius: 0;
}
[data-theme="monochrome"] .post-content thead {
  background: #000;
}
[data-theme="monochrome"] .post-content th {
  color: #fff;
  font-family: "Helvetica Neue","PingFang SC",sans-serif;
}
[data-theme="monochrome"] .post-content td {
  border-bottom: 1px solid #e5e5e5;
  color: #333;
}
[data-theme="monochrome"] .post-content tbody tr:nth-child(even) {
  background: #fafafa;
}
[data-theme="monochrome"] .post-content tbody tr:hover {
  background: #f0f0f0;
}
[data-theme="monochrome"] .comments-title { color: #000; border-color:#e5e5e5; }
[data-theme="monochrome"] .comment-author { color: #000; }
[data-theme="monochrome"] .comment-body { color: #555; }
[data-theme="monochrome"] .comment-form {
  background: #fafafa; border-color: #e5e5e5; border-radius: 0;
}
[data-theme="monochrome"] .form-group input,
[data-theme="monochrome"] .form-group textarea {
  background: #fff; border-color: #d0d0d0; border-radius: 0;
}
[data-theme="monochrome"] .form-group input:focus,
[data-theme="monochrome"] .form-group textarea:focus { border-color: #000; }
[data-theme="monochrome"] .form-submit-btn {
  background: #000; color: #fff; border-radius: 0;
}
[data-theme="monochrome"] .form-submit-btn:hover { background: #333; }
[data-theme="monochrome"] .site-footer { border-color: #e5e5e5; }
[data-theme="monochrome"] .footer-text { color: #999; font-family: "SF Mono",monospace; }
[data-theme="monochrome"] .about-page h1 { color: #000; }
[data-theme="monochrome"] .about-page p { color: #555; }
[data-theme="monochrome"] .post-nav { border-color: #e5e5e5; }
[data-theme="monochrome"] .post-nav a { color: #999; }
[data-theme="monochrome"] .post-nav a:hover { color: #000; }

/* ============================================================
   THEME: TERMINAL DEVLOG
   Dark. Monospace. Command-line aesthetic.
   ============================================================ */
[data-theme="terminal"] * {
  font-family: "SF Mono","Cascadia Code","Consolas","Courier New",monospace !important;
}
[data-theme="terminal"] body {
  font-family: "SF Mono","Cascadia Code","Consolas",monospace;
  background: #0d1117;
  color: #c9d1d9;
}
[data-theme="terminal"] .page-wrapper {
  background: #0d1117;
  padding: 16px;
}
[data-theme="terminal"] .page-inner {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
}
[data-theme="terminal"] .site-header { padding-bottom: 16px; }
[data-theme="terminal"] .header-avatar {
  border-color: #30363d;
  width: 32px; height: 32px;
}
[data-theme="terminal"] .site-title {
  font-size: 14px;
  font-weight: normal;
  color: #58a6ff;
}
[data-theme="terminal"] .site-title::before {
  content: '$ ';
  color: #3fb950;
}
[data-theme="terminal"] .nav-links a {
  color: #8b949e;
  font-size: 13px;
}
[data-theme="terminal"] .nav-links a::before {
  content: './';
  color: #484f58;
}
[data-theme="terminal"] .nav-links a:hover { color: #58a6ff; }

[data-theme="terminal"] .hero {
  margin-top: 32px;
  gap: 24px;
}
[data-theme="terminal"] .hero-label {
  font-size: 12px;
  color: #6e7681;
  letter-spacing: 0;
}
[data-theme="terminal"] .hero-label::before {
  content: '$ ';
  color: #3fb950;
}
[data-theme="terminal"] .hero-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: normal;
  color: #f0f6fc;
  line-height: 1.4;
}
[data-theme="terminal"] .hero-title::before {
  content: '# ';
  color: #3fb950;
}
[data-theme="terminal"] .hero-subtitle {
  font-size: 14px;
  color: #8b949e;
  line-height: 1.7;
}
[data-theme="terminal"] .hero-subtitle::before {
  content: '// ';
  color: #6e7681;
}
[data-theme="terminal"] .hero-avatar {
  border-radius: 4px;
  border: 2px solid #30363d;
}
[data-theme="terminal"] .stats-bar {
  border-color: #21262d;
}
[data-theme="terminal"] .stat-number {
  color: #f0f6fc;
}
[data-theme="terminal"] .stat-label {
  color: #6e7681;
}
[data-theme="terminal"] .posts-grid {
  display: block;
  margin-top: 32px;
}
[data-theme="terminal"] .post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #21262d;
  border-radius: 0;
  padding: 16px 0;
  box-shadow: none;
}
[data-theme="terminal"] .post-card:hover {
  transform: none;
  box-shadow: none;
  background: #161b22;
  margin: 0 -12px;
  padding: 16px 12px;
}
[data-theme="terminal"] .post-card-num {
  position: static;
  font-size: 13px;
  color: #6e7681;
  font-weight: normal;
}
[data-theme="terminal"] .post-card-num::before {
  content: 'r';
  color: #484f58;
}
[data-theme="terminal"] .post-card-num::after {
  content: ' ';
}
[data-theme="terminal"] .post-card-body,
[data-theme="terminal"] .post-card-title,
[data-theme="terminal"] .post-card-summary,
[data-theme="terminal"] .post-card-meta,
[data-theme="terminal"] .post-card-tag {
  position: static !important;
  z-index: auto !important;
}
[data-theme="terminal"] .post-card-tag {
  color: #8b949e;
  font-size: 12px;
}
[data-theme="terminal"] .post-card-title {
  font-size: 15px;
  font-weight: normal;
  color: #58a6ff;
  display: inline;
}
[data-theme="terminal"] .post-card-title::before {
  content: '> ';
  color: #3fb950;
}
[data-theme="terminal"] .post-card:hover .post-card-title {
  color: #79c0ff;
  text-decoration: underline;
}
[data-theme="terminal"] .post-card-summary {
  font-size: 13px;
  color: #8b949e;
  margin-top: 4px;
}
[data-theme="terminal"] .post-card-meta {
  font-size: 12px;
  color: #484f58;
}
[data-theme="terminal"] .post-card-meta::before { content: '['; color: #484f58; }
[data-theme="terminal"] .post-card-meta::after { content: ']'; color: #484f58; }
[data-theme="terminal"] .post-meta-date {
  font-size: 12px;
  color: #6e7681;
  letter-spacing: 0;
}
[data-theme="terminal"] .post-meta-date::before { content: 'commit '; color: #484f58; }
[data-theme="terminal"] .post-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: normal;
  color: #f0f6fc;
}
[data-theme="terminal"] .post-title::before { content: '## '; color: #3fb950; }
[data-theme="terminal"] .post-content {
  font-size: 14px;
  line-height: 1.8;
  color: #c9d1d9;
}
[data-theme="terminal"] .post-content h2 {
  font-size: 18px;
  font-weight: normal;
  color: #58a6ff;
  border-bottom: 1px solid #21262d;
  padding-bottom: 8px;
}
[data-theme="terminal"] .post-content h2::before { content: '## '; color: #3fb950; }
[data-theme="terminal"] .post-content h3 {
  font-size: 16px;
  color: #f0f6fc;
}
[data-theme="terminal"] .post-content blockquote {
  border-left-color: #58a6ff;
  background: #161b22;
  color: #8b949e;
  border-radius: 0;
}
[data-theme="terminal"] .post-content code {
  background: #161b22;
  color: #d2a8ff;
  border: 1px solid #30363d;
  border-radius: 2px;
}
[data-theme="terminal"] .post-content pre {
  background: #161b22;
  color: #c9d1d9;
  border: 1px solid #30363d;
}
[data-theme="terminal"] .post-content table {
  border: 1px solid #30363d;
  border-radius: 0;
  font-size: 13px;
}
[data-theme="terminal"] .post-content thead {
  background: #161b22;
}
[data-theme="terminal"] .post-content th {
  color: #58a6ff;
  font-weight: normal;
  border-bottom: 1px solid #30363d;
}
[data-theme="terminal"] .post-content td {
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
}
[data-theme="terminal"] .post-content tbody tr:nth-child(even) {
  background: #161b22;
}
[data-theme="terminal"] .post-content tbody tr:hover {
  background: #1c2128;
}
[data-theme="terminal"] .tag {
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 2px;
}
[data-theme="terminal"] .tag::before { content: '#'; color: #484f58; margin-right: 2px; }
[data-theme="terminal"] .post-nav { border-color: #21262d; }
[data-theme="terminal"] .post-nav a { color: #484f58; }
[data-theme="terminal"] .post-nav a:hover { color: #58a6ff; }
[data-theme="terminal"] .post-nav a::before { content: 'cd '; color: #3fb950; }
[data-theme="terminal"] .comments-title { color: #f0f6fc; border-color: #21262d; }
[data-theme="terminal"] .comments-title::before { content: '-- '; color: #3fb950; }
[data-theme="terminal"] .comment-item { border-color: #161b22; }
[data-theme="terminal"] .comment-author { color: #58a6ff; }
[data-theme="terminal"] .comment-time { color: #484f58; }
[data-theme="terminal"] .comment-body { color: #8b949e; }
[data-theme="terminal"] .comment-form {
  background: #161b22; border-color: #30363d; border-radius: 4px;
}
[data-theme="terminal"] .comment-form-title { color: #58a6ff; }
[data-theme="terminal"] .form-group input,
[data-theme="terminal"] .form-group textarea {
  background: #0d1117; border-color: #30363d; color: #c9d1d9; border-radius: 2px;
}
[data-theme="terminal"] .form-group input::placeholder,
[data-theme="terminal"] .form-group textarea::placeholder { color: #484f58; }
[data-theme="terminal"] .form-group input:focus,
[data-theme="terminal"] .form-group textarea:focus { border-color: #58a6ff; }
[data-theme="terminal"] .form-submit-btn {
  background: #238636; color: #fff; border: 1px solid #2ea043; border-radius: 2px;
}
[data-theme="terminal"] .form-submit-btn:hover { background: #2ea043; }
[data-theme="terminal"] .site-footer { border-color: #30363d; }
[data-theme="terminal"] .footer-text { color: #484f58; font-size: 12px; }
[data-theme="terminal"] .footer-text::before { content: '> '; color: #3fb950; }
[data-theme="terminal"] .about-page { color: #c9d1d9; }
[data-theme="terminal"] .about-page h1 { color: #58a6ff; }
[data-theme="terminal"] .about-page h1::before { content: '## '; color: #3fb950; }
[data-theme="terminal"] .about-page p { color: #8b949e; }
[data-theme="terminal"] .captcha-question { color: #6e7681; }
[data-theme="terminal"] .form-message { color: #8b949e; }

/* Terminal mobile */
@media (max-width: 767px) {
  [data-theme="terminal"] .page-inner { padding: 16px; }
  [data-theme="terminal"] .post-card:hover { margin: 0 -8px; padding: 16px 8px; }
}

/* ============================================================
   THEME TOGGLE (inline footer)
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  color: #8ba67a;
  transition: background .15s, color .15s;
  user-select: none;
}
.theme-toggle:hover {
  background: rgba(107,138,83,0.08);
  color: #6b8a53;
}
.theme-icon {
  font-size: 14px;
  line-height: 1;
}
.theme-name {
  font-size: 11px;
  letter-spacing: 0.05em;
}
[data-theme="monochrome"] .theme-toggle { color: #999; }
[data-theme="monochrome"] .theme-toggle:hover { color: #000; background: rgba(0,0,0,0.04); }
[data-theme="terminal"] .theme-toggle { color: #6e7681; }
[data-theme="terminal"] .theme-toggle:hover { color: #58a6ff; background: rgba(88,166,255,0.06); }

/* ============================================================
   CATEGORY SYSTEM (3 categories × 3 themes)
   ============================================================ */

/* ---- Category Sections (Homepage) ---- */
.category-section {
  margin-top: 48px;
}
.category-section-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #b7c8a9;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}
.category-section-title {
  font-size: 22px;
  font-weight: 600;
  color: #172416;
  margin: 0;
}
.category-section-desc {
  font-size: 13px;
  color: #62785a;
  flex: 1;
  min-width: 200px;
}
.category-section-link {
  font-size: 13px;
  color: #6b8a53;
  transition: color .15s;
  white-space: nowrap;
}
.category-section-link:hover {
  color: #172416;
}

/* Category accent border on section header */
.category-section--journey .category-section-header {
  border-bottom-color: #2d5a27;
}
.category-section--field-notes .category-section-header {
  border-bottom-color: #4a6fa5;
}
.category-section--portfolio .category-section-header {
  border-bottom-color: #b8860b;
}

/* ---- Category Hero (Category Pages) ---- */
.category-hero {
  margin-top: 40px;
  padding: 40px 0;
}
.category-hero-text {
  max-width: 640px;
}
.category-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.category-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  color: #172416;
  margin-bottom: 12px;
}
.category-hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #51634b;
  max-width: 520px;
}
.category-hero-count {
  font-size: 13px;
  color: #8ba67a;
  margin-top: 8px;
}

/* Category hero accent colors */
.category-hero--journey .category-hero-label { color: #2d5a27; }
.category-hero--field-notes .category-hero-label { color: #4a6fa5; }
.category-hero--portfolio .category-hero-label { color: #b8860b; }

/* ---- Post Card Tag per Category ---- */
.post-card-tag--journey { color: #2d5a27; }
.post-card-tag--field-notes { color: #4a6fa5; }
.post-card-tag--portfolio { color: #b8860b; }

/* ---- Navigation Category Links ---- */
.nav-cat { font-size: 13px; }
.nav-cat--journey { color: #2d5a27 !important; }
.nav-cat--field-notes { color: #4a6fa5 !important; }
.nav-cat--portfolio { color: #b8860b !important; }

/* ---- Breadcrumb ---- */
.post-breadcrumb {
  font-size: 12px;
  color: #8ba67a;
  margin-bottom: 8px;
}
.post-breadcrumb a {
  color: #8ba67a;
  transition: color .15s;
}
.post-breadcrumb a:hover {
  color: #172416;
}
.breadcrumb-sep {
  margin: 0 6px;
  color: #b7c8a9;
}
.breadcrumb-cat--journey { color: #2d5a27 !important; }
.breadcrumb-cat--field-notes { color: #4a6fa5 !important; }
.breadcrumb-cat--portfolio { color: #b8860b !important; }

/* ============================================================
   THEME: MONOCHROME — Category overrides
   ============================================================ */
[data-theme="monochrome"] .category-section-title {
  color: #000;
}
[data-theme="monochrome"] .category-section-desc {
  color: #777;
}
[data-theme="monochrome"] .category-section-link {
  color: #000;
  text-decoration: underline;
}
[data-theme="monochrome"] .category-section-link:hover {
  color: #555;
}
[data-theme="monochrome"] .category-section--journey .category-section-header {
  border-bottom-color: #000;
}
[data-theme="monochrome"] .category-section--field-notes .category-section-header {
  border-bottom-color: #555;
}
[data-theme="monochrome"] .category-section--portfolio .category-section-header {
  border-bottom-color: #999;
}
[data-theme="monochrome"] .category-hero-title {
  color: #000;
  font-family: "Helvetica Neue","PingFang SC",sans-serif;
  font-weight: 800;
}
[data-theme="monochrome"] .category-hero-desc {
  color: #555;
}
[data-theme="monochrome"] .category-hero-count {
  color: #999;
}
[data-theme="monochrome"] .category-hero--journey .category-hero-label,
[data-theme="monochrome"] .category-hero--field-notes .category-hero-label,
[data-theme="monochrome"] .category-hero--portfolio .category-hero-label {
  color: #000;
}
[data-theme="monochrome"] .post-card-tag--journey,
[data-theme="monochrome"] .post-card-tag--field-notes,
[data-theme="monochrome"] .post-card-tag--portfolio {
  color: #000;
  font-family: "SF Mono","Consolas",monospace;
  text-transform: uppercase;
}
[data-theme="monochrome"] .nav-cat--journey,
[data-theme="monochrome"] .nav-cat--field-notes,
[data-theme="monochrome"] .nav-cat--portfolio {
  color: #000 !important;
}
[data-theme="monochrome"] .post-breadcrumb {
  color: #999;
}
[data-theme="monochrome"] .post-breadcrumb a {
  color: #999;
}
[data-theme="monochrome"] .post-breadcrumb a:hover {
  color: #000;
}
[data-theme="monochrome"] .breadcrumb-sep {
  color: #ccc;
}
[data-theme="monochrome"] .breadcrumb-cat--journey,
[data-theme="monochrome"] .breadcrumb-cat--field-notes,
[data-theme="monochrome"] .breadcrumb-cat--portfolio {
  color: #000 !important;
  font-weight: 600;
}
[data-theme="monochrome"] .category-section .posts-grid {
  margin-top: 0;
}

/* ============================================================
   THEME: TERMINAL — Category overrides
   ============================================================ */
[data-theme="terminal"] .category-section-title {
  font-size: 18px;
  font-weight: normal;
  color: #f0f6fc;
}
[data-theme="terminal"] .category-section-title::before {
  content: '## ';
  color: #3fb950;
}
[data-theme="terminal"] .category-section-desc {
  color: #8b949e;
  font-size: 13px;
}
[data-theme="terminal"] .category-section-link {
  color: #58a6ff;
}
[data-theme="terminal"] .category-section-link:hover {
  color: #79c0ff;
  text-decoration: underline;
}
[data-theme="terminal"] .category-section--journey .category-section-header {
  border-bottom-color: #3fb950;
}
[data-theme="terminal"] .category-section--field-notes .category-section-header {
  border-bottom-color: #58a6ff;
}
[data-theme="terminal"] .category-section--portfolio .category-section-header {
  border-bottom-color: #d29922;
}
[data-theme="terminal"] .category-hero-label {
  font-size: 12px;
  color: #6e7681;
}
[data-theme="terminal"] .category-hero-label::before {
  content: '$ ';
  color: #3fb950;
}
[data-theme="terminal"] .category-hero-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: normal;
  color: #f0f6fc;
  line-height: 1.4;
}
[data-theme="terminal"] .category-hero-title::before {
  content: '# ';
  color: #3fb950;
}
[data-theme="terminal"] .category-hero-desc {
  font-size: 14px;
  color: #8b949e;
}
[data-theme="terminal"] .category-hero-desc::before {
  content: '// ';
  color: #6e7681;
}
[data-theme="terminal"] .category-hero-count {
  font-size: 12px;
  color: #484f58;
}
[data-theme="terminal"] .category-hero--journey .category-hero-label { color: #3fb950; }
[data-theme="terminal"] .category-hero--field-notes .category-hero-label { color: #58a6ff; }
[data-theme="terminal"] .category-hero--portfolio .category-hero-label { color: #d29922; }
[data-theme="terminal"] .post-card-tag--journey { color: #3fb950; }
[data-theme="terminal"] .post-card-tag--field-notes { color: #58a6ff; }
[data-theme="terminal"] .post-card-tag--portfolio { color: #d29922; }
[data-theme="terminal"] .nav-cat--journey { color: #3fb950 !important; }
[data-theme="terminal"] .nav-cat--field-notes { color: #58a6ff !important; }
[data-theme="terminal"] .nav-cat--portfolio { color: #d29922 !important; }
[data-theme="terminal"] .post-breadcrumb {
  color: #484f58;
  font-size: 12px;
}
[data-theme="terminal"] .post-breadcrumb a {
  color: #484f58;
}
[data-theme="terminal"] .post-breadcrumb a:hover {
  color: #58a6ff;
}
[data-theme="terminal"] .breadcrumb-sep {
  color: #30363d;
}
[data-theme="terminal"] .breadcrumb-cat--journey { color: #3fb950 !important; }
[data-theme="terminal"] .breadcrumb-cat--field-notes { color: #58a6ff !important; }
[data-theme="terminal"] .breadcrumb-cat--portfolio { color: #d29922 !important; }

[data-theme="terminal"] .category-section .posts-grid {
  margin-top: 0;
}

/* ============================================================
   Responsive — Category sections
   ============================================================ */
@media (max-width: 767px) {
  .category-section-header {
    flex-direction: column;
    gap: 4px;
  }
  .category-section-desc {
    min-width: auto;
    font-size: 12px;
  }
  .category-hero {
    padding: 24px 0;
    margin-top: 20px;
  }
  .category-hero-desc {
    font-size: 14px;
  }
}

/* ===== Lightbox ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.75);
  cursor: zoom-out;
  animation: lightbox-fade-in 0.2s ease;
}
.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: lightbox-zoom-in 0.25s ease;
}
.lightbox-download {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: rgba(255,255,255,0.9);
  color: #111;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  user-select: none;
  z-index: 10;
}
.lightbox-overlay:hover .lightbox-download {
  opacity: 1;
}
.lightbox-download:hover {
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 1;
  user-select: none;
}
.lightbox-close:hover { opacity: 1; }

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lightbox-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* 文章图片可点击提示 */
.post-content img {
  cursor: zoom-in;
}
