/* ============================================
   家家月嫂 - 全站共用样式
   https://news.ijiazhen.com/asset_html/style.css
   ============================================ */

/* === 基础重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: #f5f0fa;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

/* === 页面容器 === */
.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #f5f0fa;
  min-height: 100vh;
  position: relative;
}

/* === SEO 元素（隐藏，保留给搜索引擎） === */
.seo-breadcrumb, .seo-nav { display: none; }

/* === 顶部导航栏 === */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #9556bf;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
}
.top-bar .title {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}
.top-bar .back-link {
  position: absolute;
  left: 13px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}
.top-bar .phone-link {
  position: absolute;
  right: 13px;
  text-decoration: none;
  color: #fff;
}
.top-bar .phone-link svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.top-bar .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

/* === 主内容区 === */
.main-content {
  padding-bottom: 16px;
}

/* === Banner 轮播 === */
.banner-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}
.banner-track {
  display: flex;
  transition: transform 0.4s ease;
}
.banner-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.banner-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.banner-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.banner-dots .dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* === 导航图标网格 === */
.nav-section {
  background: #fff;
  padding: 16px 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-item:active {
  background: #f5f0fa;
}
.nav-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.nav-item span {
  font-size: 11px;
  color: #3d2d4d;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* === 面包屑导航 === */
.breadcrumb {
  background: #fff;
  padding: 10px 12px;
  font-size: 12px;
  color: #999;
  border-bottom: 1px solid #f0e6f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb a {
  color: #9556bf;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .sep {
  margin: 0 6px;
  color: #ccc;
}
.breadcrumb .current {
  color: #666;
}

/* === 文章正文 === */
.article-body {
  background: #fff;
  padding: 16px 14px;
}
.article-body h1 {
  font-size: 20px;
  font-weight: 700;
  color: #2d1f3d;
  line-height: 1.5;
  margin-bottom: 16px;
}
.article-body p {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 12px;
}
.article-body img {
  width: 100%;
  border-radius: 8px;
  margin: 12px 0;
  display: block;
}

/* === 搜索框 === */
.search-section, .search-bar {
  background: #fff;
  padding: 12px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #f5f0fa;
  border-radius: 20px;
  padding: 0 14px;
  height: 38px;
}
.search-box svg {
  width: 16px;
  height: 16px;
  color: #b794d4;
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  color: #4a4a4a;
  outline: none;
}
.search-box input::placeholder { color: #bbb; }
.search-input {
  width: 100%;
  height: 36px;
  border: 1px solid #e0d0e8;
  border-radius: 18px;
  padding: 0 16px;
  font-size: 14px;
  color: #4a4a4a;
  background: #faf8fc;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: #9556bf; }
.search-input::placeholder { color: #bbb; }

/* === 通用区块标题 === */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d1f3d;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid #9556bf;
}

/* === 统计信息 === */
.stats-bar {
  display: flex;
  justify-content: space-around;
  padding: 14px 12px;
  background: #fff;
  margin: 0 0 10px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 20px; font-weight: 700; color: #9556bf; }
.stat-label { font-size: 11px; color: #999; margin-top: 2px; }

/* === 热门话题 === */
.tag-cloud-section {
  background: #fff;
  margin: 0 0 10px;
  padding: 16px 12px;
}
.tag-cloud {
  text-align: center;
  padding: 10px 0;
  line-height: 2.4;
}
.tag-item {
  display: inline-block;
  padding: 2px 8px;
  margin: 3px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.tag-item:hover {
  background: rgba(149, 86, 191, 0.1);
  transform: scale(1.05);
}
.tag-level-S { background: #ffe0e0; color: #d32f2f; font-weight: bold; }
.tag-level-A { background: #fff3e0; color: #e65100; }
.tag-level-B { background: #e8f5e9; color: #2e7d32; }
.tag-level-C { background: #e3f2fd; color: #1565c0; }
.tag-level-D { background: #f3e5f5; color: #7b1fa2; }
.tag-count { font-size: 11px; color: #999; margin-left: 2px; }

/* === 标签详情 === */
.tag-detail-section {
  background: #fff;
  padding: 16px 12px;
}
.tag-section { margin-bottom: 20px; }
.tag-section:last-child { margin-bottom: 0; }
.tag-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #3d2d4d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, #9556bf, #b794d4);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 11px;
}
.tag-article-list { list-style: none; padding: 0; }
.tag-article-list li { border-bottom: 1px solid #f5f0fa; }
.tag-article-list li:last-child { border-bottom: none; }
.tag-article-link {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 14px;
  transition: background 0.2s;
}
.tag-article-link:hover { background: #faf8fc; }
.tag-article-link::before {
  content: '\203A';
  color: #b794d4;
  font-size: 18px;
  margin-right: 8px;
  font-weight: 700;
}
.tag-more {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 8px 0 4px;
}

/* === 分类导航 === */
.category-section {
  background: #fff;
  margin: 10px 0;
  padding: 14px 12px;
}
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px;
  text-decoration: none;
  border-bottom: 1px solid #f5f0fa;
  transition: background 0.2s;
}
.category-item:last-child { border-bottom: none; }
.category-item:hover { background: #faf8fc; }
.category-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-name {
  font-size: 14px;
  color: #3d2d4d;
  font-weight: 500;
}
.category-count {
  font-size: 11px;
  color: #999;
  background: #f5f0fa;
  padding: 2px 8px;
  border-radius: 10px;
}
.category-arrow {
  color: #b794d4;
  font-size: 18px;
  font-weight: 700;
}

/* === 热门标签 === */
.hot-tags-section {
  background: #fff;
  margin: 10px 0;
  padding: 14px 12px;
}
.hot-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hot-tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, #faf8fc, #f5f0fa);
  color: #9556bf;
  font-size: 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #e8daf0;
  transition: all 0.2s;
}
.hot-tag:hover {
  background: linear-gradient(135deg, #9556bf, #b794d4);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* === 文章列表 === */
.articles-section {
  background: #fff;
  margin: 10px 0;
  padding: 14px 12px;
}
.article-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid #f5f0fa;
  transition: background 0.2s;
}
.article-card:last-child { border-bottom: none; }
.article-card:hover { background: #faf8fc; }
.article-card:active { background: #f0e6f5; }
.article-card-inner { flex: 1; min-width: 0; }
.article-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d1f3d;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-card-desc {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}
.article-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.article-tag {
  font-size: 10px;
  color: #9556bf;
  background: #f5f0fa;
  padding: 1px 6px;
  border-radius: 3px;
}
.article-card-arrow {
  color: #b794d4;
  font-size: 22px;
  font-weight: 700;
  margin-left: 10px;
  flex-shrink: 0;
}

/* === 分页 === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 12px;
  background: #fff;
  margin: 10px 0;
}
.page-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #9556bf, #b794d4);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.2s;
}
.page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(149,86,191,0.3);
}
.page-info { font-size: 13px; color: #999; }

/* === 相关推荐（文章页底部） === */
.related-section {
  background: #fff;
  margin: 16px 0 10px;
  padding: 16px 12px;
}
.related-list { list-style: none; padding: 0; }
.related-list li { border-bottom: 1px solid #f5f0fa; }
.related-list li:last-child { border-bottom: none; }
.related-link {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  text-decoration: none;
  color: #4a4a4a;
  font-size: 14px;
  transition: background 0.2s;
}
.related-link:hover { background: #faf8fc; }
.related-link::before {
  content: '\203A';
  color: #b794d4;
  font-size: 18px;
  margin-right: 8px;
  font-weight: 700;
}
.related-link .related-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.related-link .related-cat {
  font-size: 10px;
  color: #9556bf;
  background: #f5f0fa;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* === 相关推荐（自动生成区块 - 卡片式） === */
.related-recommendation {
  padding: 16px 12px;
  margin: 0;
  background: #fff;
}
.recommend-title {
  font-size: 17px;
  font-weight: 700;
  color: #2d1f3d;
  margin: 0 0 14px 0;
  padding-left: 10px;
  border-left: 4px solid #9556bf;
  line-height: 1;
}
.recommend-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.recommend-item {
  padding: 0;
  border-bottom: none;
  margin-bottom: 12px;
}
.recommend-item:last-child {
  margin-bottom: 0;
}
.recommend-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 10px;
  background: #faf8fc;
  border: 1px solid #f0e6f5;
  transition: all 0.25s ease;
}
.recommend-card:active {
  transform: scale(0.98);
  background: #f5f0fa;
}
.recommend-card-img {
  width: 100px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8daf0, #f5f0fa);
  display: block;
}
.recommend-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.recommend-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d1f3d;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.recommend-card-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* === 推广横幅 === */
.promo-banner {
  display: block;
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
}
.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* === 底部栏目总导航 === */
.site-nav-footer {
  background: #fff;
  padding: 16px 12px;
  margin: 10px 0;
}
.site-nav-footer .section-title {
  margin-bottom: 12px;
}
.site-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-nav-link {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #faf8fc, #f5f0fa);
  color: #9556bf;
  font-size: 13px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid #e8daf0;
  transition: all 0.2s;
}
.site-nav-link:hover {
  background: linear-gradient(135deg, #9556bf, #b794d4);
  color: #fff;
  border-color: transparent;
}
.site-nav-link .nav-count {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
}

/* === 底部三栏 Tab 栏 === */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(122,22,189,0.1);
  z-index: 9999;
}
.tab-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  padding-bottom: 6px;
}
.tab-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  color: #999;
  font-size: 10px;
  font-weight: 600;
  transition: transform 0.2s;
}
.tab-btn:active { transform: scale(0.92); }
.tab-btn.active { color: #7A16BD; }
.tab-btn .tab-icon { width: 22px; height: 22px; }
.tab-btn .tab-label { font-size: 10px; }

/* === 中间电话按钮 === */
.tab-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.tab-center-inner {
  position: relative;
  width: 48px;
  height: 48px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9556bf, #7A16BD);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(122,22,189,0.4);
  z-index: 1;
  position: relative;
}
.phone-btn svg { width: 24px; height: 24px; }
.ripple-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(149,86,191,0.3);
  animation: ripple 2s ease-out infinite;
}
.ripple-ring:nth-child(2) { animation-delay: 1s; }
@keyframes ripple {
  0% { width: 48px; height: 48px; opacity: 1; }
  100% { width: 72px; height: 72px; opacity: 0; }
}
.phone-label {
  font-size: 10px;
  color: #7A16BD;
  font-weight: 600;
}

/* === 右侧悬浮客服按钮 === */
.float-service {
  position: fixed;
  right: 8px;
  bottom: 80px;
  width: 44px;
  height: 44px;
  z-index: 9998;
  cursor: pointer;
}
.float-service-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9556bf, #7A16BD);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(122,22,189,0.4);
  position: relative;
  z-index: 1;
}
.float-service-inner svg {
  width: 22px;
  height: 22px;
}
.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(149,86,191,0.3);
  animation: pulse-float 2s ease-out infinite;
}
.pulse-ring:nth-child(2) { animation-delay: 1s; }
@keyframes pulse-float {
  0% { width: 44px; height: 44px; opacity: 1; }
  100% { width: 66px; height: 66px; opacity: 0; }
}

/* === 客服按钮图标 === */
.service-btn-icon {
  width: 22px;
  height: 22px;
  position: relative;
}
.service-btn-icon svg {
  width: 22px;
  height: 22px;
}
.service-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
}

/* === Tab 圆点指示器 === */
.tab-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7A16BD;
  margin-bottom: 2px;
}

/* === 底部留白 === */
.bottom-spacer { height: 72px; }






    /* 客服弹窗样式已抽离至 kf.js（自包含 CSS + HTML + 交互） */
    



/* ===================================================================
   文章正文公共修复样式 (article-fix.css)
   参照 https://news.ijiazhen.com/news/zixun/ 详情页设计语言
   紫色主题 #7c3aed，卡片化、清晰排版层级
   覆盖 .article-body 下所有 Markdown 转换出的 HTML 元素
   =================================================================== */

/* ===== 基础容器 ===== */
.article-body {
  background: #fff;
  padding: 20px 16px;
  font-size: 15px;
  color: #3a3a3a;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* ===== 标题层级 h1-h6 ===== */
.article-body h1 {
  font-size: 22px;
  font-weight: 700;
  color: #2d1f3d;
  line-height: 1.4;
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e6f5;
}

.article-body h2 {
  font-size: 19px;
  font-weight: 700;
  color: #2d1f3d;
  line-height: 1.4;
  margin: 24px 0 14px;
  padding-left: 12px;
  border-left: 4px solid #7c3aed;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: #4c1d95;
  line-height: 1.5;
  margin: 20px 0 12px;
}

.article-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #5b21b6;
  line-height: 1.5;
  margin: 18px 0 10px;
}

.article-body h5 {
  font-size: 15px;
  font-weight: 600;
  color: #6d28d9;
  margin: 16px 0 8px;
}

.article-body h6 {
  font-size: 14px;
  font-weight: 600;
  color: #7c3aed;
  margin: 14px 0 8px;
}

/* ===== 段落 ===== */
.article-body p {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.85;
  margin-bottom: 14px;
}

/* ===== 行内格式 ===== */
.article-body strong {
  font-weight: 700;
  color: #2d1f3d;
}

.article-body em {
  font-style: italic;
  color: #5b21b6;
}

.article-body del {
  color: #aaa;
  text-decoration: line-through;
}

/* ===== 链接 ===== */
.article-body a {
  color: #7c3aed;
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.article-body a:hover {
  color: #6d28d9;
  border-bottom-color: #6d28d9;
}

/* ===== 图片 ===== */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 14px 0;
  display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ===== figure / figcaption ===== */
.article-body figure {
  margin: 18px 0;
  text-align: center;
}

.article-body figure img {
  margin: 0 auto;
}

.article-body figcaption {
  font-size: 13px;
  color: #9b8bb5;
  margin-top: 8px;
  padding: 0 12px;
  line-height: 1.5;
}

/* ===== 无序列表 ===== */
.article-body ul {
  list-style: none;
  padding-left: 4px;
  margin: 14px 0;
}

.article-body ul > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #4a4a4a;
  line-height: 1.75;
}

.article-body ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
}

/* ===== 有序列表 ===== */
.article-body ol {
  list-style: none;
  counter-reset: ol-counter;
  padding-left: 4px;
  margin: 14px 0;
}

.article-body ol > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 8px;
  color: #4a4a4a;
  line-height: 1.75;
  counter-increment: ol-counter;
}

.article-body ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 嵌套列表 ===== */
.article-body ul ul,
.article-body ol ol,
.article-body ul ol,
.article-body ol ul {
  margin: 6px 0 0;
}

.article-body li > ul,
.article-body li > ol {
  margin-top: 6px;
  margin-bottom: 0;
}

/* ===== 表格 ===== */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(124, 58, 237, 0.08);
}

.article-body thead {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.article-body th {
  padding: 10px 14px;
  text-align: left;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
}

.article-body td {
  padding: 10px 14px;
  color: #4a4a4a;
  border-bottom: 1px solid #f0e6f5;
}

.article-body tbody tr:nth-child(even) {
  background: #faf8fc;
}

.article-body tbody tr:hover {
  background: #f5f0fa;
}

.article-body tbody tr:last-child td {
  border-bottom: none;
}

/* ===== 引用块 ===== */
.article-body blockquote {
  margin: 16px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #faf8fc 0%, #f5f0fa 100%);
  border-left: 4px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  color: #5b4a73;
}

.article-body blockquote p {
  margin-bottom: 6px;
  color: #5b4a73;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ===== 行内代码 ===== */
.article-body code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ===== 代码块 ===== */
.article-body pre {
  margin: 16px 0;
  padding: 16px;
  background: #1e1b2e;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.article-body pre code {
  background: none;
  color: #e0d8f0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  word-break: normal;
}

/* ===== 分割线 ===== */
.article-body hr {
  border: none;
  height: 2px;
  margin: 24px 0;
  background: linear-gradient(90deg, transparent, #d0c0e8, transparent);
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
  .article-body {
    padding: 16px 12px;
    font-size: 14px;
  }
  .article-body h1 { font-size: 20px; }
  .article-body h2 { font-size: 17px; }
  .article-body h3 { font-size: 16px; }
  .article-body p { font-size: 14px; }
  .article-body th, .article-body td { padding: 8px 10px; font-size: 13px; }
}
