:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --cuisine-accent: #f0883e;
  --border: #30363d;
  --code-bg: #1c2128;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 40px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.95em;
}

.nav-links a:hover { color: var(--accent); }

/* RSS links in nav — visually separated from page links */
.rss-links { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--border); }
.rss-label { color: var(--text-muted); font-size: 0.75em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 4px; }
.rss-links a { font-size: 0.8em !important; margin-left: 6px !important; opacity: 0.6; }
.rss-links a:hover { opacity: 1; }

.hero { text-align: center; padding: 40px 0; }
.hero h1 { font-size: 2.5em; margin-bottom: 10px; }
.subtitle { color: var(--text-muted); font-size: 1.1em; }

/* Subscribe block */
.subscribe-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 0 0 10px;
  text-align: center;
}
.subscribe-block h3 {
  font-size: 1.15em;
  color: var(--text);
  margin-bottom: 16px;
}
.subscribe-feeds {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.subscribe-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.subscribe-feed:hover {
  border-color: var(--accent);
  background: #1c2533;
}
.subscribe-feed:last-child:hover { border-color: var(--cuisine-accent); }
.feed-icon { font-size: 1.3em; flex-shrink: 0; }
.subscribe-feed div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.4;
}
.subscribe-feed div strong { font-size: 0.95em; color: var(--text); }
.subscribe-feed div span {
  font-size: 0.8em;
  color: var(--text-muted);
}
.feed-rss {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85em;
  flex-shrink: 0;
  opacity: 0.7;
}
.subscribe-feed:hover .feed-rss { opacity: 1; }
.subscribe-help {
  color: var(--text-muted);
  font-size: 0.8em;
  margin-top: 4px;
}

/* Section headers */
.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 40px 0 20px;
}
.section-header:first-of-type { margin-top: 10px; }
.section-header h2 { font-size: 1.5em; color: var(--accent); }
.cuisine-header h2 { color: var(--cuisine-accent); }
.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 0.9em;
  margin-top: 4px;
}
.rss-badge {
  background: var(--code-bg);
  color: var(--cuisine-accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75em;
  text-decoration: none;
  font-weight: 600;
}
.rss-badge:hover { background: var(--border); }

/* Post list */
.post-list { margin-top: 30px; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  overflow: hidden;
}
.post-card h2 { font-size: 1.4em; margin-bottom: 8px; }
.post-card h2 a { color: var(--accent); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.meta { color: var(--text-muted); font-size: 0.85em; margin-bottom: 10px; }
.tag {
  background: var(--code-bg);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 5px;
  font-size: 0.85em;
}
.summary {
  color: var(--text-muted);
  margin-bottom: 12px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}
.read-more { color: var(--accent); text-decoration: none; font-size: 0.9em; }
.read-more:hover { text-decoration: underline; }

/* Cuisine grid */
.cuisine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.cuisine-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.cuisine-card:hover { border-color: var(--cuisine-accent); }
.cuisine-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.cuisine-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  transition: transform 0.3s;
}
.cuisine-card:hover .cuisine-thumb img { transform: scale(1.05); }
.cuisine-info { padding: 18px; }
.cuisine-info h3 { font-size: 1.15em; margin-bottom: 6px; }
.cuisine-info h3 a { color: var(--cuisine-accent); text-decoration: none; }
.cuisine-info h3 a:hover { text-decoration: underline; }

/* "See all" button */
.section-more {
  text-align: center;
  margin: 20px 0 10px;
}
.btn-more {
  display: inline-block;
  padding: 8px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95em;
  transition: all 0.2s;
}
.btn-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Single post */
.single-post { margin-bottom: 40px; }
.single-post header { border-bottom: 1px solid var(--border); }
.single-post h1 { font-size: 2em; }
.content { margin-top: 30px; }
.content h2 { margin: 25px 0 10px; color: var(--accent); }
.content h3 { margin: 20px 0 8px; }
.content p { margin-bottom: 16px; }
.content ul, .content ol { margin: 10px 0 20px 25px; }
.content li { margin-bottom: 6px; }
.content code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.content pre {
  background: var(--code-bg);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}
.content pre code { background: none; padding: 0; }
.content a { color: var(--accent); }
.content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-muted);
  margin: 16px 0;
}
.content img { max-width: 100%; border-radius: 8px; }

.post-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 40px;
}
.post-nav a { color: var(--accent); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 0.85em;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8em; }
  .post-card { padding: 18px; }
  .cuisine-grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; }
}
