/* ===== bossdiary.cn 温暖叙事风 统一样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  background: #faf6f0;
  color: #2d2a26;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
header {
  background: #faf6f0;
  border-bottom: 1px solid #e8dfd2;
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; color: #7a4a2b; text-decoration: none; }
.nav-links a { color: #6b5d4e; text-decoration: none; margin-left: 24px; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: #7a4a2b; }
.nav-links a.active { color: #7a4a2b; font-weight: 600; }

/* ===== Hero ===== */
.hero { padding: 72px 0 48px; text-align: center; }
.hero .date-line { font-size: 14px; color: #a08d76; letter-spacing: 3px; margin-bottom: 16px; }
.hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 18px; line-height: 1.4; }
.hero p { font-size: 16px; color: #7a6a58; max-width: 560px; margin: 0 auto; }
.hero .divider { width: 60px; height: 2px; background: #c9a878; margin: 28px auto 0; }

/* ===== 最新文章（置顶）===== */
.featured {
  background: #fffdf9;
  border: 1px solid #ece2d3;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(122, 74, 43, 0.06);
}
.featured .tag { display: inline-block; font-size: 12px; background: #f0e4d3; color: #8a5a2b; padding: 3px 12px; border-radius: 20px; margin-bottom: 14px; letter-spacing: 1px; }
.featured h2 { font-size: 24px; margin-bottom: 12px; color: #3a2e20; }
.featured .excerpt { font-size: 15px; color: #7a6a58; margin-bottom: 14px; }
.featured .meta { font-size: 13px; color: #a08d76; }
.featured a { color: #7a4a2b; text-decoration: none; }
.featured a:hover { text-decoration: underline; }

/* ===== 文章列表 ===== */
.post-list { margin-bottom: 60px; }
.post-list h3 { font-size: 16px; color: #a08d76; letter-spacing: 2px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #e8dfd2; }
.post-item {
  display: flex; gap: 24px; padding: 22px 0;
  border-bottom: 1px solid #efe7da;
  text-decoration: none;
  transition: background 0.2s;
}
.post-item:hover { background: #fdf9f2; }
.post-item .date { font-size: 13px; color: #a08d76; min-width: 90px; padding-top: 5px; }
.post-item .content h4 { font-size: 18px; color: #3a2e20; margin-bottom: 6px; font-weight: 600; }
.post-item .content p { font-size: 14px; color: #8a7a66; line-height: 1.7; }

/* ===== 侧边栏 ===== */
.sidebar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 60px; }
.sidebar-card { background: #fffdf9; border: 1px solid #ece2d3; border-radius: 12px; padding: 24px; }
.sidebar-card h4 { font-size: 14px; color: #a08d76; letter-spacing: 2px; margin-bottom: 14px; }
.sidebar-card p { font-size: 14px; color: #6b5d4e; line-height: 1.8; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { font-size: 13px; background: #f5ede1; color: #7a4a2b; padding: 4px 12px; border-radius: 20px; }

/* ===== 文章正文页 ===== */
.post-header { padding: 56px 0 32px; text-align: center; }
.post-header .post-date { font-size: 14px; color: #a08d76; letter-spacing: 2px; margin-bottom: 14px; }
.post-header h1 { font-size: 32px; font-weight: 700; color: #3a2e20; line-height: 1.5; margin-bottom: 16px; }
.post-header .post-meta { font-size: 13px; color: #a08d76; }
.post-header .post-tags { margin-top: 16px; }
.post-header .post-tags span { font-size: 12px; background: #f0e4d3; color: #8a5a2b; padding: 3px 12px; border-radius: 20px; margin: 0 4px; }

.post-body {
  background: #fffdf9;
  border: 1px solid #ece2d3;
  border-radius: 12px;
  padding: 40px 48px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(122, 74, 43, 0.05);
}
.post-body p { font-size: 16px; color: #3a2e20; margin-bottom: 20px; line-height: 2; }
.post-body h2 { font-size: 22px; color: #3a2e20; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #efe7da; }
.post-body h3 { font-size: 18px; color: #4a3a28; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; color: #3a2e20; }
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid #c9a878;
  background: #faf3e8;
  padding: 16px 20px;
  margin: 24px 0;
  color: #6b5d4e;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.post-body .safety-note {
  background: #fdf3f0;
  border: 1px solid #e8d5cc;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #8a5a4a;
}
.post-body .faq { margin-top: 36px; }
.post-body .faq h2 { border-bottom: 1px solid #efe7da; }
.post-body .faq-item { margin-bottom: 20px; }
.post-body .faq-item h3 { font-size: 16px; color: #4a3a28; margin-bottom: 8px; }
.post-body .faq-item p { font-size: 15px; color: #6b5d4e; margin-bottom: 0; }

/* 文章导航（上一篇/下一篇）*/
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.post-nav a {
  flex: 1; background: #fffdf9; border: 1px solid #ece2d3; border-radius: 12px;
  padding: 16px 20px; text-decoration: none; color: #7a4a2b; font-size: 14px;
  transition: background 0.2s;
}
.post-nav a:hover { background: #fdf9f2; }
.post-nav .nav-label { display: block; font-size: 12px; color: #a08d76; margin-bottom: 4px; }

/* ===== 归档日历 ===== */
.archive-calendar { background: #fffdf9; border: 1px solid #ece2d3; border-radius: 12px; padding: 24px; margin-bottom: 40px; }
.archive-calendar h2 { font-size: 18px; color: #7a4a2b; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; color: #a08d76; padding: 6px 0; font-weight: 600; }
.cal-day { text-align: center; font-size: 13px; color: #6b5d4e; padding: 8px 0; border-radius: 6px; }
.cal-day.has-post { background: #f0e4d3; color: #7a4a2b; font-weight: 700; }
.cal-day.has-post a { color: #7a4a2b; text-decoration: none; display: block; }
.cal-day.has-post a:hover { text-decoration: underline; }
.cal-empty { padding: 8px 0; }
.cal-note { font-size: 12px; color: #a08d76; margin-top: 12px; }

/* ===== 归档页 ===== */
.archive { padding: 56px 0 60px; }
.archive h1 { font-size: 32px; color: #3a2e20; text-align: center; margin-bottom: 8px; }
.archive .archive-sub { text-align: center; color: #a08d76; font-size: 14px; margin-bottom: 40px; }
.archive-year { margin-bottom: 40px; }
.archive-year h2 { font-size: 20px; color: #7a4a2b; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #e8dfd2; }
.archive-item { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid #efe7da; text-decoration: none; }
.archive-item:hover { background: #fdf9f2; }
.archive-item .date { font-size: 13px; color: #a08d76; min-width: 80px; padding-top: 4px; }
.archive-item .title { font-size: 16px; color: #3a2e20; }

/* ===== 关于页 ===== */
.about { padding: 56px 0 60px; }
.about h1 { font-size: 32px; color: #3a2e20; text-align: center; margin-bottom: 8px; }
.about .about-sub { text-align: center; color: #a08d76; font-size: 14px; margin-bottom: 40px; }
.about-card { background: #fffdf9; border: 1px solid #ece2d3; border-radius: 12px; padding: 40px 48px; margin-bottom: 24px; }
.about-card h2 { font-size: 20px; color: #7a4a2b; margin-bottom: 16px; }
.about-card p { font-size: 15px; color: #4a3a28; line-height: 2; margin-bottom: 16px; }
.about-card ul { margin: 0 0 16px 24px; color: #4a3a28; }
.about-card li { margin-bottom: 8px; }

/* ===== 联系/交流 ===== */
.contact-card { border-left: 3px solid #c9a878; }
.contact-note { font-size: 13px; color: #a08d76; font-style: italic; }
.email-obfuscate { unicode-bidi: bidi-override; direction: rtl; }
.e-hide { display: none; }

/* ===== 页脚 ===== */
footer { background: #f3ece1; padding: 32px 0; text-align: center; font-size: 13px; color: #a08d76; border-top: 1px solid #e8dfd2; }
footer p { margin: 4px 0; }

/* ===== 移动端适配 ===== */
@media (max-width: 720px) {
  .hero h1 { font-size: 28px; }
  .hero { padding: 48px 0 32px; }
  .post-item { flex-direction: column; gap: 6px; }
  .sidebar-grid { grid-template-columns: 1fr; }
  .nav-links a { margin-left: 14px; font-size: 13px; }
  .post-body { padding: 24px 20px; }
  .post-header h1 { font-size: 24px; }
  .post-nav { flex-direction: column; }
  .about-card { padding: 24px 20px; }
}
