﻿/* ===== 全局 Reset & 变量 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1e3932;
  --primary-dark: #006241;
  --accent: #d4e9e2;
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f2f0eb;
  --text: #2d2926;
  --text-muted: #6c6a66;
  --border: #e5e1d8;
  --radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.08);
  --transition: .25s ease;
  --max-w: 1100px;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Georgia', 'Noto Serif SC', 'Songti SC', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== 导航栏 ===== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700; font-family: var(--font-serif);
  font-family: var(--font-serif); color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: #ede9fe;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: var(--text);
}

.nav-menu-btn svg { display: block; }

/* ===== Hero ===== */
.hero {
  background: var(--primary);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  --bg: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; font-family: var(--font-serif);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 32px;
}

.hero-search {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.hero-search input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,.95);
  color: var(--text);
  outline: none;
}

.hero-search input::placeholder { color: var(--text-muted); }

.hero-search button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: white;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ===== 主容器 ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  flex: 1;
}

/* ===== 两栏布局 ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ===== 分区标题 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700; font-family: var(--font-serif);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: var(--primary);
  border-radius: 4px;
}

.view-all {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background var(--transition);
}

.view-all:hover { background: #ede9fe; }

/* ===== 精选文章(大卡片) ===== */
.featured-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-img {
  height: 280px;
  background: var(--primary); border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-category {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.cat-tech    { background: #e9e5df; color: #4a4238; border: 1px solid #dcd7ce; }
.cat-life    { background: #e3ebd8; color: #2d4a22; border: 1px solid #d2ddc5; }
.cat-design  { background: #f0e6e6; color: #5a3e3e; border: 1px solid #e2d3d3; }
.cat-travel  { background: #eee5d4; color: #5c4d32; border: 1px solid #e0d4be; }
.cat-food    { background: #f2ecd9; color: #6b5c32; border: 1px solid #e5dcc2; }

.featured-body h2 {
  font-size: 1.5rem;
  font-weight: 700; font-family: var(--font-serif);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -.3px;
}

.featured-body p { color: var(--text-muted); font-size: .95rem; margin-bottom: 20px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--text-muted);
}

.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 20px;
  transition: gap var(--transition);
}

.read-more:hover { gap: 10px; }

/* ===== 文章卡片网格 ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  color: var(--text-muted);
  font-size: .85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}

.reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.widget-title {
  font-size: 1rem;
  font-weight: 700; font-family: var(--font-serif);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* 搜索组件 */
.sidebar-search {
  display: flex;
  gap: 8px;
}

.sidebar-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.sidebar-search input:focus { border-color: var(--primary); }

.sidebar-search button {
  padding: 10px 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}

.sidebar-search button:hover { background: var(--primary-dark); }

/* 标签云 */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 最新文章 */
.recent-posts { display: flex; flex-direction: column; gap: 14px; }

.recent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  transition: background var(--transition);
  cursor: pointer;
}

.recent-item:hover { background: var(--surface-2); }

.recent-num {
  min-width: 26px; height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700; font-family: var(--font-serif);
  flex-shrink: 0;
}

.recent-info h4 {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-info span { font-size: .75rem; color: var(--text-muted); }

/* 订阅组件 */
.subscribe-widget {
  background: var(--primary);
  color: white;
  text-align: center;
}

.subscribe-widget .widget-title { border-color: rgba(255,255,255,.3); color: white; }
.subscribe-widget p { font-size: .88rem; opacity: .9; margin-bottom: 14px; }

.subscribe-form { display: flex; flex-direction: column; gap: 8px; }

.subscribe-form input {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: .9rem;
  background: rgba(255,255,255,.9);
  color: var(--text);
  outline: none;
}

.subscribe-form button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: white;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: transform var(--transition);
}

.subscribe-form button:hover { transform: scale(1.02); }

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  min-width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== 文章详情页 ===== */
.post-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.post-article {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.post-hero {
  height: 320px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}

.post-content {
  padding: 40px;
}

.post-content .post-category { margin-bottom: 12px; }

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; font-family: var(--font-serif);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.post-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-lg {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700; font-family: var(--font-serif);
  font-size: .95rem;
}

.author-name { font-weight: 700; font-size: .9rem; }
.author-date { font-size: .8rem; color: var(--text-muted); }

.post-stats {
  display: flex;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-muted);
  margin-left: auto;
}

.post-stats span { display: flex; align-items: center; gap: 4px; }

/* 文章正文样式 */
.article-body { font-size: 1.05rem; line-height: 1.9; color: #334155; }

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700; font-family: var(--font-serif);
  margin: 36px 0 16px;
  color: var(--text);
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text);
}

.article-body p { margin-bottom: 18px; }

.article-body blockquote {
  background: var(--surface-2);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-body code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9rem;
  color: var(--primary);
  font-family: 'Consolas', monospace;
}

.article-body pre {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: .9rem;
  line-height: 1.6;
}

.article-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }

.article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* 标签行 */
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }

/* 文章操作 */
.post-actions {
  display: flex;
  gap: 12px;
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.liked { background: #fef2f2; border-color: #ef4444; color: #ef4444; }

/* 评论区 */
.comments-section { padding: 40px; border-top: 1px solid var(--border); }

.comments-section h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-serif); margin-bottom: 24px; }

.comment-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 100px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
  margin-bottom: 12px;
}

.comment-form textarea:focus { border-color: var(--primary); }

.comment-form button {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.comment-form button:hover { background: var(--primary-dark); transform: translateY(-1px); }

.comments-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }

.comment {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface-2);
  border-radius: 10px;
}

.comment-content h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.comment-content span { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.comment-content p { font-size: .9rem; color: var(--text-muted); }

/* ===== 关于页 ===== */
.about-hero {
  background: var(--primary);
  color: white;
  padding: 80px 24px;
  text-align: center;
}

.about-avatar-wrap { margin: 0 auto 24px; }

.about-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  --bg: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  border: 3px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto;
}

.about-hero h1 { font-size: 2rem; font-weight: 700; font-family: var(--font-serif); margin-bottom: 8px; }
.about-hero p { opacity: .85; font-size: 1.05rem; margin-bottom: 24px; }

.social-links { display: flex; justify-content: center; gap: 12px; }

.social-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  color: white;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.social-btn:hover { background: rgba(255,255,255,.25); }

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.about-section { margin-bottom: 48px; }

.about-section h2 {
  font-size: 1.4rem;
  font-weight: 700; font-family: var(--font-serif);
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}

.about-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }

.about-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-section ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .97rem;
}

.about-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .85rem;
  top: 3px;
}

.about-section ul li strong {
  color: var(--text);
  font-weight: 700;
}

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-top: 16px; }

.skill-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.skill-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.skill-icon { font-size: 2rem; margin-bottom: 8px; }
.skill-item span { font-size: .85rem; font-weight: 600; }

.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.timeline-body h4 { font-weight: 700; margin-bottom: 4px; }
.timeline-body span { font-size: .8rem; color: var(--primary); font-weight: 600; margin-bottom: 6px; display: block; }
.timeline-body p { font-size: .88rem; color: var(--text-muted); }

.stats-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }

.stat-card {
  flex: 1;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700; font-family: var(--font-serif);
  font-family: var(--font-serif); color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

/* ===== 页脚 ===== */
footer {
  background: #19201e;
  color: #94a3b8;
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { }
.footer-logo {
  font-size: 1.4rem;
  font-weight: 700; font-family: var(--font-serif);
  font-family: var(--font-serif); color: white;
  margin-bottom: 12px;
}

.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 240px; }

.footer-col h4 { color: white; font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; transition: color var(--transition); }
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== 通知弹窗 ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .35s cubic-bezier(.175,.885,.32,1.275);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ===== 暗黑模式 ===== */
body.dark { --bg: #1e2022; --surface: #2d2f33; --surface-2: #3a3d42; --text: #e8e6e1; --text-muted: #a3a098; --border: #42464c; }

/* ===== 移动端响应式 ===== */
@media (max-width: 900px) {
  .layout, .post-detail-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { height: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 12px; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }
  .nav-menu-btn { display: flex; align-items: center; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-search { flex-direction: column; }
  .post-actions { flex-wrap: wrap; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-stats { margin-left: 0; width: 100%; }
}

/* ===== 加载动画 ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card, .featured-card, .widget {
  animation: fadeInUp .4s ease both;
}

.posts-grid .post-card:nth-child(1) { animation-delay: .05s; }
.posts-grid .post-card:nth-child(2) { animation-delay: .1s; }
.posts-grid .post-card:nth-child(3) { animation-delay: .15s; }
.posts-grid .post-card:nth-child(4) { animation-delay: .2s; }
.posts-grid .post-card:nth-child(5) { animation-delay: .25s; }
.posts-grid .post-card:nth-child(6) { animation-delay: .3s; }


