/**
 * PbootCMS 模板样式 - orswy.com
 * 随机种子编号: N-D-6-线/面/细-N1-LQ-TA-16px-0.3s-8px-2px-45°-18px-24px-0.5-R4,R5,R11
 *
 * 【随机参数记录】
 * 核心风格: N (自然有机) - 曲线+大地色+手绘感+温暖
 * 布局骨架: D (Z字交错) - 图片与文字交错排列
 * 色彩策略: 6 (大地色系) - 棕+米+绿
 * 标题字号: M (3rem)
 * 正文字号: 16px
 * 行高: 1.8
 * 段落间距: 1.8em
 * 容器宽度: 1200px
 * 圆角: 6px
 * 卡片内边距: 24px
 * 图标风格: 线性
 * 按钮风格: 面性
 * 分割线: 细实线
 * 图片处理: 细线边框
 * 导航布局: N1 (LOGO左+导航右)
 * 列表排版: LQ (左图右文网格)
 * 标题样式: TA (居中带下划线)
 * 阴影大小: 中(16px)
 * 动画时长: 快(0.3s)
 * 悬停位移: 中(8px)
 * 边框宽度: 中(2px)
 * 渐变角度: 45°
 * 图标大小: 中(18px)
 * 卡片间距: 标准(24px)
 * 背景深度: 中(0.5)
 * 侧边栏模块: R4(推荐文章) + R5(标签云) + R11(图文列表)
 */

/* ========== CSS Variables ========== */
:root {
  --color-primary: #8b7355;
  --color-secondary: #6b8e23;
  --color-accent: #c4a574;
  --color-light: #faf8f5;
  --color-dark: #2c3e2c;
  --color-gray: #6b6b6b;
  --color-gray-light: #999999;
  --color-border: #e8e4de;
  --color-white: #ffffff;

  --shadow-small: 16px;
  --radius: 6px;
  --radius-lg: 12px;

  --animation-speed: 0.3s;
  --transition: all var(--animation-speed) ease;

  --container-width: 1200px;
  --sidebar-width: 300px;

  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray);
  background: var(--color-light);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== Breadcrumb ========== */
.pb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--color-white);
  margin-bottom: 0;
  font-size: 14px;
  color: var(--color-gray-light);
  border-bottom: 1px solid var(--color-border);
}

.pb-breadcrumb a {
  color: var(--color-primary);
}

.pb-breadcrumb a:hover {
  color: var(--color-secondary);
}

.pb-breadcrumb span {
  color: var(--color-gray-light);
}

.pb-breadcrumb .current {
  color: var(--color-dark);
  font-weight: 500;
}

/* ========== Section Layout ========== */
.pb-section {
  padding: 30px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.pb-section-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.pb-main-content {
  flex: 1;
  min-width: 0;
}

.pb-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ========== Section Title (TA: 居中带下划线) ========== */
.pb-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.pb-section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
  display: inline-block;
  padding-bottom: 14px;
  position: relative;
}

.pb-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

/* ========== List Styles (matching 999.html) ========== */
.pb-news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pb-news-item {
  background: #ffffff;
  border: 1px solid rgba(221, 221, 221, 0.28);
  border-radius: 8px;
  box-shadow: 0 0 10px -2px rgba(158, 158, 158, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pb-news-item:hover {
  box-shadow: 0 0 20px -2px rgba(158, 158, 158, 0.3);
}

.entry-container {
  display: block;
  position: relative;
  padding: 20px 20px 20px 200px;
  min-height: 160px;
}

.block-image {
  width: 160px;
  height: 140px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 8px;
  overflow: hidden;
}

.block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pb-news-item:hover .block-image img {
  transform: scale(1.1);
}

.item-img-cate {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #FA3131;
  color: #fff;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 10px;
  z-index: 1;
}

.entry-header {
  position: relative;
}

.entry-header h3 {
  font-size: 16px;
  line-height: 24px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  margin: 0;
}

.entry-header h3 a {
  color: #333;
}

.entry-header h3 a:hover {
  color: #FA3131;
}

.entry-summary {
  margin: 0.5em 0;
}

.entry-summary p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.entry-meta-items {
  display: flex;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
}

.entry-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #666;
  letter-spacing: 0;
  line-height: 1;
}

.entry-meta time,
.entry-meta span.meta-viewnums {
  position: relative;
}

.entry-meta-author {
  margin-left: auto;
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #666;
}

.entry-meta-author a {
  color: #666;
}

.separator {
  color: #e1e1e1;
  padding: 0 8px;
  font-size: 0;
  position: relative;
  display: inline-block;
}

.separator:after {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 10px;
  background-color: #42a1ff;
  transform: rotate(135deg) translate(1px, 2px);
}

.l-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 20px;
  width: 4px;
  height: 50px;
  border-radius: 2px;
  background: #FA3131;
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.35s;
}

.pb-news-item:hover .l-line {
  transform: translateY(-50%) scaleY(1);
}

/* Alternate layout - odd/even (left/right image) */
.pb-news-item:nth-child(even) .entry-container {
  padding: 20px 200px 20px 20px;
}

.pb-news-item:nth-child(even) .block-image {
  left: auto;
  right: 20px;
  transform: translateY(-50%);
}

.pb-news-item:nth-child(even) .l-line {
  left: auto;
  right: 20px;
}

/* ========== Sidebar Widgets ========== */
.pb-sidebar-widget {
  background: var(--color-white);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.pb-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
}

.pb-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
}

.pb-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pb-sidebar-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.pb-sidebar-list li:last-child {
  border-bottom: none;
}

.pb-sidebar-list a {
  display: block;
  font-size: 13px;
  color: var(--color-gray);
  transition: var(--transition);
}

.pb-sidebar-list a:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

/* Image List Widget */
.pb-image-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pb-image-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pb-image-item-thumb {
  flex: 0 0 70px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.pb-image-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-image-item-title {
  flex: 1;
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.4;
}

.pb-image-item-title a:hover {
  color: var(--color-primary);
}

/* Tags Cloud */
.pb-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pb-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--color-gray);
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: var(--transition);
}

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

/* ========== Pagination ========== */
.pb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.pb-pagination .page-status {
  padding: 0 16px;
  font-size: 13px;
  color: var(--color-gray);
}

.pb-pagination .page-index,
.pb-pagination .page-pre,
.pb-pagination .page-next,
.pb-pagination .page-last {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius);
}

.pb-pagination .page-index a,
.pb-pagination .page-pre a,
.pb-pagination .page-next a,
.pb-pagination .page-last a,
.pb-pagination .page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--color-white);
  color: var(--color-gray);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.pb-pagination .page-index a:hover,
.pb-pagination .page-pre a:hover,
.pb-pagination .page-next a:hover,
.pb-pagination .page-last a:hover,
.pb-pagination .page-num:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pb-pagination .page-current,
.pb-pagination .page-num-current {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid var(--color-primary);
}

/* ========== Article ========== */
.pb-article {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pb-article-header {
  padding: 40px;
  background: linear-gradient(135deg, var(--color-dark) 0%, #3d4d3d 100%);
}

.pb-article-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--color-white);
}

.pb-article-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.pb-article-body {
  padding: 40px;
}

.pb-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-gray);
}

.pb-article-content p {
  margin-bottom: 1.5em;
}

.pb-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 24px 0;
  border: 1px solid var(--color-border);
}

.pb-article-content h2,
.pb-article-content h3,
.pb-article-content h4 {
  color: var(--color-dark);
  margin: 2em 0 1em;
  font-weight: 700;
}

.pb-article-content h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
}

.pb-article-content h3 { font-size: 1.2rem; }

.pb-article-content h4 { font-size: 1rem; }

.pb-article-content ul,
.pb-article-content ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
}

.pb-article-content ul { list-style: disc; }

.pb-article-content ol { list-style: decimal; }

.pb-article-content li {
  margin-bottom: 0.6em;
}

.pb-article-tags {
  padding: 24px 40px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--color-light);
}

.pb-article-tags h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
}

/* ========== Footer ========== */
.pb-footer {
  background: linear-gradient(180deg, var(--color-dark) 0%, #1a2f1a 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 20px;
  margin-top: 80px;
}

.pb-footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  text-align: center;
}

.pb-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
  font-size: 13px;
}

.pb-footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.pb-footer-nav a:hover {
  color: var(--color-secondary);
}

.pb-footer-copyright {
  font-size: 12px;
  line-height: 1.8;
}

.pb-footer-copyright a {
  color: rgba(255, 255, 255, 0.5);
}

.pb-footer-copyright a:hover {
  color: var(--color-secondary);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .pb-section-inner {
    flex-direction: column;
  }

  .pb-sidebar {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .pb-breadcrumb {
    padding: 12px 20px;
  }

  .pb-section {
    padding: 40px 20px;
  }

  .pb-news-list {
    gap: 0;
  }

  .entry-container {
    padding: 16px 16px 16px 16px;
  }

  .block-image {
    position: relative;
    width: 100%;
    height: 180px;
    left: 0;
    right: 0;
    top: 0;
    margin-bottom: 12px;
  }

  .pb-news-item:nth-child(even) .entry-container {
    padding: 16px 16px 16px 16px;
  }

  .pb-news-item:nth-child(even) .block-image {
    left: 0;
    right: 0;
  }

  .entry-header h3 {
    font-size: 1rem;
  }

  .entry-meta-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pb-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
  }

  .pb-nav.active {
    display: flex;
  }

  .pb-menu-toggle {
    display: flex;
  }

  .pb-article-header {
    padding: 28px;
  }

  .pb-article-title {
    font-size: 1.4rem;
  }

  .pb-article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .pb-article-body {
    padding: 28px;
  }

  .pb-article-tags {
    padding: 20px 28px;
  }

}

