/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #3d3d3d;
  background-color: #faf8f5;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: #8b5e3c;
}

a:hover {
  color: #6b4226;
}

/* ===== 顶部导航 ===== */
.header {
  background: #fff;
  border-bottom: 1px solid #e8e0d8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #5a3e28;
  padding: 16px 0;
  letter-spacing: 2px;
}

.logo span {
  color: #b8926a;
  font-weight: 400;
  font-size: 14px;
  margin-left: 8px;
}

.nav {
  display: flex;
  list-style: none;
}

.nav li a {
  display: block;
  color: #6b5b4e;
  padding: 18px 16px;
  font-size: 15px;
  transition: color 0.2s, border-color 0.2s;
  border-bottom: 3px solid transparent;
}

.nav li a:hover,
.nav li a.active {
  color: #8b5e3c;
  border-bottom-color: #8b5e3c;
}

/* ===== 横幅 ===== */
.banner {
  background: linear-gradient(135deg, #f5ebe0 0%, #e8d5c4 100%);
  text-align: center;
  padding: 70px 24px;
  border-bottom: 1px solid #e0d5c8;
}

.banner h1 {
  font-size: 34px;
  color: #5a3e28;
  margin-bottom: 12px;
  font-weight: 700;
}

.banner p {
  font-size: 16px;
  color: #8b7355;
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
}

/* ===== 主内容区 ===== */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-title {
  font-size: 22px;
  color: #5a3e28;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid #b8926a;
}

/* ===== 文章列表 ===== */
.article-list {
  list-style: none;
}

.article-item {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0e8e0;
  transition: box-shadow 0.2s;
}

.article-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-item h3 {
  font-size: 18px;
  color: #5a3e28;
  margin-bottom: 8px;
}

.article-item h3 a {
  color: #5a3e28;
}

.article-item h3 a:hover {
  color: #8b5e3c;
}

.article-meta {
  color: #a89880;
  font-size: 13px;
  margin-bottom: 10px;
}

.article-meta span {
  margin-right: 16px;
}

.article-item p {
  color: #6b5b4e;
  font-size: 14px;
  line-height: 1.9;
}

.article-item .read-more {
  display: inline-block;
  margin-top: 10px;
  color: #8b5e3c;
  font-size: 13px;
}

.article-item .read-more:hover {
  color: #6b4226;
}

/* ===== 文章详情 ===== */
.article-detail {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0e8e0;
  margin-bottom: 24px;
}

.article-detail h2 {
  font-size: 24px;
  color: #5a3e28;
  margin-bottom: 8px;
}

.article-detail .meta {
  color: #a89880;
  font-size: 13px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e8e0d8;
}

.article-detail p {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-detail blockquote {
  background: #faf5ef;
  border-left: 4px solid #b8926a;
  padding: 16px 20px;
  margin: 20px 0;
  color: #6b5b4e;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

/* ===== 关于页面 ===== */
.about-content {
  background: #fff;
  border-radius: 8px;
  padding: 36px 32px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0e8e0;
}

.about-content h2 {
  color: #5a3e28;
  font-size: 20px;
  margin-bottom: 14px;
  margin-top: 28px;
}

.about-content h2:first-child {
  margin-top: 0;
}

.about-content p {
  color: #5a4a3e;
  font-size: 15px;
  line-height: 2;
  margin-bottom: 12px;
}

.about-content ul {
  list-style: none;
  padding: 0;
}

.about-content ul li {
  padding: 10px 0;
  border-bottom: 1px dashed #e8e0d8;
  color: #5a4a3e;
  font-size: 15px;
}

.about-content ul li:last-child {
  border-bottom: none;
}

/* ===== 侧边栏卡片 ===== */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.sidebar .widget {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #f0e8e0;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.sidebar .widget h4 {
  font-size: 15px;
  color: #5a3e28;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e8e0;
}

.sidebar .widget ul {
  list-style: none;
}

.sidebar .widget ul li {
  padding: 6px 0;
  font-size: 14px;
  color: #6b5b4e;
  border-bottom: 1px dashed #f5ede5;
}

.sidebar .widget ul li:last-child {
  border-bottom: none;
}

.sidebar .widget ul li a {
  color: #6b5b4e;
}

.sidebar .widget ul li a:hover {
  color: #8b5e3c;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  background: #faf5ef;
  color: #8b7355;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  border: 1px solid #e8ddd0;
}

.tag-cloud a:hover {
  background: #8b5e3c;
  color: #fff;
  border-color: #8b5e3c;
}

/* ===== 页脚 ===== */
.footer {
  background: #3d2e1f;
  color: #b8a898;
  text-align: center;
  padding: 28px 24px;
  margin-top: 40px;
  font-size: 13px;
  line-height: 2;
}

.footer a {
  color: #d4b896;
}

.footer a:hover {
  color: #fff;
}

.footer .divider {
  margin: 0 8px;
  color: #6b5b4e;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    padding: 10px 20px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav li a {
    padding: 10px 12px;
  }

  .banner {
    padding: 40px 20px;
  }

  .banner h1 {
    font-size: 26px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}
