/* ===== Blog 列表 ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding: 48px 0 80px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.35);
}
.blog-card-thumb {
  height: 180px;
  background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0284c7;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  width: fit-content;
}
.blog-card h2 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-card-more {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-top: 12px;
}
.page-hero--blog { padding-bottom: 28px; }

/* ===== 文章双栏布局 ===== */
.blog-article-section { padding: 32px 0 64px; }
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-article { max-width: none; margin: 0; padding: 0; }
.blog-article-header { margin-bottom: 28px; }
.blog-article-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.35;
  margin: 16px 0 12px;
  color: var(--text-primary);
}
.blog-article-header .lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}
.blog-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
}
.blog-content h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-light);
}
.blog-content p { margin-bottom: 16px; }
.blog-content ul {
  margin: 0 0 20px 1.25rem;
  padding: 0;
}
.blog-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.blog-content li::marker { color: var(--accent-light); }
.blog-callout {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 14px 18px;
  margin: 20px 0 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: #9a3412;
  line-height: 1.7;
}
.blog-script {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 14px 18px;
  margin: 20px 0 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: normal;
  color: #166534;
  line-height: 1.75;
}
.blog-script-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #15803d;
  margin-bottom: 8px;
}
.blog-tip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
}
.blog-tip strong { color: #0369a1; }
.blog-cta-inline {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
}
.blog-cta-inline h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.blog-cta-inline p { opacity: 0.95; margin-bottom: 16px; font-size: 0.95rem; }
.blog-cta-inline .btn { background: #fff; color: #0284c7; }

/* ===== 分享栏 ===== */
.blog-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.blog-share-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.blog-share-btn:hover {
  border-color: #07c160;
  color: #07c160;
  background: #f0fdf4;
}
.blog-share-icon { font-size: 1rem; }

.blog-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.blog-share-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.blog-share-close {
  position: absolute;
  top: 12px; right: 16px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.blog-share-modal h3 { margin-bottom: 16px; font-size: 1.1rem; }
.blog-share-step {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}
.blog-share-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 6px;
}
.blog-share-url {
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: 16px;
}
.blog-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  max-width: 90vw;
  text-align: center;
}
.blog-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== 右侧边栏 ===== */
.blog-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.blog-sidebar-block--contact {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  border-color: #bae6fd;
}
.blog-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.blog-sidebar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -8px 0 12px;
  line-height: 1.5;
}
.blog-sidebar-posts { display: flex; flex-direction: column; gap: 4px; }
.blog-sidebar-post {
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.blog-sidebar-post:hover { background: #f0f9ff; }
.blog-sidebar-post-tag {
  display: block;
  font-size: 0.7rem;
  color: #0284c7;
  font-weight: 600;
  margin-bottom: 4px;
}
.blog-sidebar-post-title {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.blog-sidebar-contact { text-align: center; }
.blog-sidebar-contact .wecom-qr { margin: 0 auto 14px; }
.blog-sidebar-hotline {
  text-align: center;
  margin-bottom: 10px;
}
.blog-sidebar-hotline a {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
}
.blog-sidebar-hotline span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-sidebar-email {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.blog-sidebar-email:hover { color: var(--accent-light); }
.blog-sidebar-cta {
  font-size: 0.875rem !important;
  padding: 12px !important;
}

/* ===== 上一篇 / 下一篇 ===== */
.blog-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.blog-pager-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  min-height: 72px;
  justify-content: center;
}
.blog-pager-link:hover {
  border-color: rgba(14, 165, 233, 0.45);
  background: #f0f9ff;
}
.blog-pager-prev { text-align: left; }
.blog-pager-next { text-align: right; }
.blog-pager-empty { visibility: hidden; border: none; background: none; }
.blog-pager-dir {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.blog-pager-title {
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-pager-all {
  align-self: center;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 12px;
}
.blog-pager-all:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .blog-sidebar {
    position: static;
    order: 2;
  }
  .blog-main { order: 1; }
  .blog-sidebar-block--contact { order: -1; }
}

.blog-pager-all:hover { text-decoration: underline; }

/* ===== 分类筛选 ===== */
.blog-list-section { padding-top: 0; }

/* ===== 搜索 ===== */
.blog-search-wrap {
  margin-bottom: 24px;
}
.blog-search-bar {
  max-width: 560px;
}
.blog-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-search-field:focus-within {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 4px 24px rgba(14, 165, 233, 0.12);
}
.blog-search-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  display: flex;
}
.blog-search-icon svg {
  width: 20px;
  height: 20px;
}
.blog-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}
.blog-search-input::-webkit-search-cancel-button {
  display: none;
}
.blog-search-input::placeholder {
  color: var(--text-muted);
}
.blog-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.blog-search-clear:hover {
  background: #e2e8f0;
}
.blog-search-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 10px 0 0 4px;
}
.blog-search-panel {
  padding-top: 4px;
}
.blog-search-status {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #f0f9ff;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 233, 0.15);
}
.blog-search-mark {
  background: #fef08a;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}
.blog-search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}
.blog-search-empty p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.blog-filter-wrap {
  margin-bottom: 28px;
}
.blog-filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.blog-filter-bar--grid {
  flex-wrap: wrap;
  overflow: visible;
}
.blog-filter-bar::-webkit-scrollbar { display: none; }
.blog-filter-emoji {
  display: block;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 2px;
}
.blog-filter-tag {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 36px;
}
.blog-filter-bar--grid .blog-filter-tag {
  border-radius: 12px;
}
.blog-filter-tag:hover {
  border-color: rgba(14, 165, 233, 0.45);
  color: var(--accent-light);
  background: #f0f9ff;
}
.blog-filter-tag.is-active {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}

/* ===== 列表分页 ===== */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  padding: 8px 0 64px;
}
.blog-page-btn {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  transition: all 0.2s;
}
.blog-page-btn:hover:not(.is-disabled) {
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.45);
}
.blog-page-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}
.blog-page-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 100%;
}
.blog-page-num {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.blog-page-num:hover {
  background: #f0f9ff;
  color: var(--accent-light);
}
.blog-page-num.is-active {
  background: var(--accent-light);
  color: #fff;
  border-color: var(--accent-light);
}
.blog-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  user-select: none;
}

@media (max-width: 768px) {
  body[data-page="blog"] .page-hero {
    padding: 28px 0 20px;
  }
  body[data-page="blog"] .page-hero h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
  body[data-page="blog"] .page-hero p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  body[data-page="blog"] .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 8px;
  }
  .blog-list-section {
    padding-top: 0;
  }
  .blog-list-section > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .blog-filter-wrap {
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    margin: 0 -16px 16px;
    padding: 12px 16px 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  }
  .blog-search-wrap {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 89;
    margin: 0 -16px 16px;
    padding: 0 16px 12px;
    background: rgba(255, 255, 255, 0.96);
  }
  .blog-search-bar { max-width: none; }
  .blog-search-field { border-radius: 12px; padding: 0 14px; }
  .blog-search-input { padding: 12px 0; font-size: 16px; }
  .blog-filter-label {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }
  .blog-filter-bar--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }
  .blog-filter-bar--grid .blog-filter-tag {
    white-space: normal;
    padding: 10px 6px;
    font-size: 0.72rem;
    line-height: 1.3;
    min-height: 0;
    border-radius: 10px;
  }
  .blog-filter-bar--grid .blog-filter-emoji {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; padding: 8px 0 48px; }
  .blog-card h2 { font-size: 1.02rem; line-height: 1.45; }
  .blog-card-thumb { height: 120px; font-size: 2.2rem; }
  .blog-card-body { padding: 16px; }
  .blog-card p { font-size: 0.85rem; margin-bottom: 12px; }
  .blog-meta { font-size: 0.75rem; gap: 12px; }
  .blog-page-nums { gap: 4px; max-width: 100%; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .blog-page-num { min-width: 32px; height: 32px; font-size: 0.8rem; flex-shrink: 0; }
  .blog-pagination {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 48px;
  }
  .blog-page-btn {
    flex: 1;
    min-width: 120px;
    max-width: none;
    text-align: center;
    padding: 12px 14px;
  }
  .blog-article-header h1 { font-size: 1.35rem; }
  .blog-content h2 { font-size: 1.05rem; margin: 28px 0 12px; }
  .blog-callout, .blog-script { padding: 12px 14px; font-size: 0.9rem; }
  .blog-pager {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .blog-pager-all { order: -1; text-align: center; }
  .blog-pager-next { text-align: left; }
  .blog-share-bar { flex-direction: column; align-items: stretch; }
  .blog-share-btn { justify-content: center; }
}

@media (min-width: 769px) {
  .blog-filter-bar--grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .blog-filter-bar--grid .blog-filter-tag {
    flex-direction: row;
    gap: 6px;
    border-radius: 100px;
    padding: 8px 14px;
  }
  .blog-filter-bar--grid .blog-filter-emoji {
    display: inline;
    margin-bottom: 0;
    font-size: 0.95rem;
  }
}
