/**
 * PbootCMS 模板样式 - mwiwk.com
 * 随机种子编号: G-Q-10-16px-面/填/实/N3-LD-TE-24px-0.3s-4px-2px-135°-18px-24px-0.5-R2,R3,R5
 * 风格参考: 777.html 玻璃拟态风格
 *
 * 【随机参数记录】
 * 核心风格: G (玻璃拟态) - 毛玻璃+半透明+模糊背景+柔和光感
 * 布局骨架: Q (极简主义2.0) - 大量留白+精致线条+微妙渐变
 * 色彩策略: 10 (霓虹渐变) - 紫→蓝→粉渐变+发光效果
 * 标题字号: M (3rem)
 * 正文字号: 16px
 * 行高: 1.8
 * 段落间距: 1.8em
 * 容器宽度: 1200px
 * 圆角: 16px
 * 卡片内边距: 30px
 * 图标风格: 面性
 * 按钮风格: 填充背景
 * 分割线: 细实线
 * 图片处理: 圆角
 * 导航布局: N3 (LOGO居中+导航均分)
 * 列表排版: LD (卡片网格)
 * 标题样式: TE (渐变文字)
 * 阴影大小: 大(24px)
 * 动画时长: 快(0.3s)
 * 悬停位移: 微(4px)
 * 边框宽度: 中(2px)
 * 渐变角度: 135°
 * 图标大小: 中(18px)
 * 卡片间距: 标准(24px)
 * 背景深度: 中(0.5)
 * 侧边栏模块: R2(热门文章) + R3(最新文章) + R5(标签云)
 */

/* ========== CSS Variables ========== */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #f1f5f9;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gradient-start: #667eea;
  --gradient-end: #764ba2;

  --shadow-small: 8px;
  --shadow-medium: 24px;

  --radius: 16px;
  --radius-lg: 22px;

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

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

  --font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 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(--dark);
  background-color: #faf9f5;
  min-height: 100vh;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ========== Glass Morphism Card ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--animation-speed) ease;
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ========== Gradient Text ========== */
.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== Header (N3: LOGO居中+导航均分) ========== */
.pb-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.pb-logo {
  margin-bottom: 16px;
}

.pb-logo img {
  height: 50px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.pb-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  gap: 8px;
}

.pb-nav a {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.5);
}

.pb-nav a:hover {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.pb-nav a.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  font-weight: 600;
}

.pb-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin-top: 12px;
}

.pb-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

/* ========== Breadcrumb ========== */
.pb-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  font-size: 14px;
  color: #64748b;
  border-radius: var(--radius);
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

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

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

.pb-breadcrumb span {
  color: #94a3b8;
}

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

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

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

.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 (TE: 渐变文字) ========== */
.pb-section-title {
  text-align: center;
  margin-bottom: 40px;
}

.pb-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 12px;
  position: relative;
}

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

/* ========== LD: 卡片网格布局 ========== */
.pb-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pb-news-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all var(--animation-speed) ease;
}

.pb-news-item:hover {
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.2);
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.3);
}

.pb-news-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pb-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pb-news-item:hover .pb-news-thumb img {
  transform: scale(1.08);
}

.pb-news-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pb-news-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.pb-news-title a:hover {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pb-news-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.pb-news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pb-news-date::before {
  content: '📅 ';
}

.pb-news-views::before {
  content: '👁 ';
}

/* ========== Sidebar Widgets ========== */
.pb-sidebar-widget {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.pb-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  background: linear-gradient(var(--dark), var(--dark)) bottom no-repeat;
  background-size: 40px 2px;
  background-position: left bottom;
}

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

.pb-sidebar-list li {
  position: relative;
  padding-left: 16px;
}

.pb-sidebar-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 50%;
}

.pb-sidebar-list a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: #475569;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

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

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

.pb-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
  font-size: 12px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: var(--transition);
}

.pb-tag:hover {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========== Pagination ========== */
.pb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.pb-pagination .page-status {
  padding: 0 16px;
  font-size: 14px;
  color: #64748b;
  margin-right: 8px;
}

.pb-pagination .page-index,
.pb-pagination .page-pre,
.pb-pagination .page-next,
.pb-pagination .page-last {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.9);
  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: 44px;
  height: 44px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  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: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border-color: transparent;
}

.pb-pagination .page-current,
.pb-pagination .page-num-current {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  font-weight: 700;
  border: none;
}

.pb-pagination .page-numbar {
  border: none;
  background: transparent;
  padding: 0 4px;
}

/* ========== Article ========== */
.pb-article {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.pb-article-header {
  padding: 40px;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.pb-article-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
}

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

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

.pb-article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #475569;
}

.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 rgba(0, 0, 0, 0.05);
}

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

.pb-article-content h2 {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* ========== Footer ========== */
.pb-footer {
  background: linear-gradient(180deg, var(--dark) 0%, #0f172a 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;
  font-size: 14px;
}

.pb-footer-inner p {
  margin-bottom: 12px;
}

.pb-footer-inner a {
  color: var(--primary-light);
  font-weight: 500;
}

.pb-footer-inner a:hover {
  color: #fff;
}

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

  .pb-sidebar {
    width: 100%;
  }

  .pb-news-list {
    grid-template-columns: 1fr;
  }
}

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

  .pb-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }

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

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

  .pb-news-thumb {
    height: 180px;
  }

  .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;
  }
}
