/* ==========================================
   河南新唯思教育官网 - 新闻详情页样式
   ========================================== */

/* ========== 阅读进度条 ========== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ========== 文章页面容器 ========== */
.article-page {
  padding: 120px 0 80px;
  background-color: var(--bg-color);
}

.article-page .breadcrumb {
  margin-bottom: 40px;
}

/* ========== 文章头部 ========== */
.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.article-category {
  margin-bottom: 20px;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.article-meta-left {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.article-meta-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-left i {
  color: var(--primary-color);
}

/* 分享按钮 */
.article-share {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: var(--white);
  color: var(--text-light);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.share-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* ========== 文章布局 ========== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin-bottom: 60px;
}

/* ========== 文章正文 ========== */
.article-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* 清除富文本可能带来的默认样式 */
.article-content * {
  max-width: 100%;
  box-sizing: border-box;
}

/* 
 * 注意：以下 .article-cover 和 .article-lead 样式是为富文本【外部】的元素准备的
 * 如果您的文章封面图和导语是在 .article-content 外部单独设置的，则保留这些样式
 * 如果完全使用富文本生成所有内容，这些样式可以删除
 */

/* 封面图（富文本外部使用） */
.article-cover {
  margin: 0 0 30px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: auto;
}

.article-cover figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px;
  background: var(--bg-color);
}

/* 导语（富文本外部使用） */
.article-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,107,53,0.05);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
}

/* ========== UEditor Plus 富文本样式 ========== */

/* 
 * 设计理念：尊重富文本编辑器的内联样式
 * 
 * 本样式系统遵循富文本"所见即所得"的核心理念：
 * 1. 只提供默认样式，不强制覆盖内联样式
 * 2. 仅在必要时使用 !important（如防止溢出、响应式布局）
 * 3. 完全尊重编辑者在富文本编辑器中设置的样式
 * 
 * 保留 !important 的场景：
 * - 图片/视频的 max-width: 100% - 防止内容溢出容器
 * - 移动端取消浮动 - 响应式布局必需
 * 
 * 其他所有样式均为默认值，可被内联样式覆盖
 */

/* 标题样式 - 提供默认样式，但尊重内联样式 */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  clear: both;
}

.article-content h1 {
  font-size: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
}

.article-content h2 {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.article-content h3 {
  font-size: 24px;
  padding-left: 12px;
  border-left: 4px solid var(--primary-color);
}

.article-content h4 {
  font-size: 20px;
}

.article-content h5 {
  font-size: 18px;
}

.article-content h6 {
  font-size: 16px;
}

/* 首个标题无上边距 */
.article-content > h1:first-child,
.article-content > h2:first-child,
.article-content > h3:first-child,
.article-content > h4:first-child {
  margin-top: 0;
}

/* 段落样式 - 提供默认样式，完全尊重内联样式 */
.article-content p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.9;
  margin: 1em 0;
  /* text-align: justify; - 移除默认对齐，完全由内联样式控制 */
}

.article-content p:empty {
  margin: 0.5em 0;
  min-height: 1em;
}

/* 强调文本 */
.article-content strong,
.article-content b {
  font-weight: 600;
  color: var(--text-dark);
}

.article-content em,
.article-content i {
  font-style: italic;
}

.article-content u {
  text-decoration: underline;
}

.article-content s,
.article-content strike,
.article-content del {
  text-decoration: line-through;
}

/* 上标和下标 */
.article-content sup {
  vertical-align: super;
  font-size: 0.75em;
}

.article-content sub {
  vertical-align: sub;
  font-size: 0.75em;
}

/* 列表样式 - 提供默认样式，尊重内联样式 */
.article-content ul,
.article-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
  line-height: 1.8;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0.5em 0;
}

.article-content ul ul,
.article-content ol ul {
  list-style-type: circle;
  margin: 0.5em 0;
}

.article-content ul ul ul,
.article-content ol ul ul,
.article-content ol ol ul {
  list-style-type: square;
}

.article-content ol ol {
  list-style-type: lower-alpha;
}

.article-content ol ol ol {
  list-style-type: lower-roman;
}

/* 链接样式 */
.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: all var(--transition-fast);
}

.article-content a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.article-content a:visited {
  color: #9B59B6;
}

/* 引用块 - 富文本会生成 <blockquote> 标签 */
.article-content blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: var(--bg-color);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
}

.article-content blockquote p {
  font-size: 17px;
  font-style: italic;
  color: var(--text-dark);
  margin: 0.5em 0;
}

.article-content blockquote cite {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 12px;
}

.article-content blockquote:before {
  content: '"';
  font-size: 48px;
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 8px;
}

/* 图片样式 - 富文本会直接生成 <img> 标签 */
.article-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 1.5em auto;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 富文本可能生成 <figure> 包裹图片 */
.article-content figure {
  margin: 2em 0;
  text-align: center;
}

.article-content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-content figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}

/* 浮动图片 */
.article-content img[align="left"],
.article-content img[style*="float: left"],
.article-content img[style*="float:left"] {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}

.article-content img[align="right"],
.article-content img[style*="float: right"],
.article-content img[style*="float:right"] {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}

/* 视频容器 */
.article-content video,
.article-content iframe,
.article-content embed,
.article-content object {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 2em auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* 响应式视频包装 */
.article-content .video-wrapper,
.article-content .embed-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
  margin: 2em 0;
  border-radius: var(--radius-md);
}

.article-content .video-wrapper iframe,
.article-content .video-wrapper video,
.article-content .video-wrapper embed,
.article-content .embed-responsive iframe,
.article-content .embed-responsive video,
.article-content .embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  border-radius: var(--radius-md);
}

/* 表格样式 */
.article-content table {
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
  border-spacing: 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.article-content table thead {
  background: var(--bg-color);
}

.article-content table th {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  border-bottom: 2px solid var(--primary-color);
  white-space: nowrap;
}

.article-content table td {
  padding: 12px 16px;
  color: var(--text-dark);
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.6;
}

.article-content table tr:last-child td {
  border-bottom: none;
}

.article-content table tr:hover {
  background: rgba(255,107,53,0.02);
}

/* 表格对齐 */
.article-content table th[align="center"],
.article-content table td[align="center"] {
  text-align: center;
}

.article-content table th[align="right"],
.article-content table td[align="right"] {
  text-align: right;
}

/* 代码样式 */
.article-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
  color: #e83e8c;
  border: 1px solid rgba(0,0,0,0.1);
}

.article-content pre {
  margin: 2em 0;
  padding: 20px;
  background: #2d2d2d;
  border-radius: var(--radius-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.6;
}

.article-content pre code {
  display: block;
  padding: 0;
  background: none;
  border: none;
  color: #f8f8f2;
  font-size: 14px;
  white-space: pre;
  overflow-x: auto;
}

/* 水平分割线 */
.article-content hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2em 0;
}

/* 文本对齐 - 完全尊重内联样式，只提供默认值 */
.article-content [align="left"] {
  text-align: left;
}

.article-content [align="center"] {
  text-align: center;
}

.article-content [align="right"] {
  text-align: right;
}

.article-content [align="justify"] {
  text-align: justify;
}

/* 背景色处理 - 为有背景色的元素添加适当内边距 */
.article-content [style*="background-color"],
.article-content [style*="background"] {
  padding: 2px 4px;
  border-radius: 3px;
}

/* 
 * 特殊容器 - 仅当富文本中手动添加这些类名时使用
 * 注意：UEditor Plus 不会自动生成这些样式类，需要手动在HTML源码中添加
 * 如果不需要这些特殊样式，可以删除以下代码
 */

/* 提示框 - 需要手动在富文本中添加 class="article-tips" */
.article-content .article-tips {
  margin: 2em 0;
  padding: 20px;
  background: rgba(0,212,170,0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,212,170,0.3);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.article-content .article-tips .tips-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}

.article-content .article-tips .tips-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-color);
  margin: 0 0 8px 0;
}

.article-content .article-tips .tips-content p {
  font-size: 15px;
  color: var(--text-dark);
  margin: 0;
}

/* 结论框 - 需要手动在富文本中添加 class="article-conclusion" */
.article-content .article-conclusion {
  margin: 40px 0 30px;
  padding: 30px;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary-color);
}

.article-content .article-conclusion p {
  font-size: 16px;
  line-height: 1.9;
}

/* 清除浮动 */
.article-content::after,
.article-content p::after {
  content: "";
  display: table;
  clear: both;
}

/* 公式支持（如果使用了数学公式） */
.article-content .edui-faked-formula {
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
}

/* 附件/文件样式 */
.article-content .edui-faked-attachment,
.article-content .file-attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  margin: 0.5em 0;
  transition: all var(--transition-fast);
}

.article-content .edui-faked-attachment:hover,
.article-content .file-attachment:hover {
  background: rgba(255,107,53,0.05);
  border-color: var(--primary-color);
}

/* 音频播放器 */
.article-content audio {
  width: 100%;
  max-width: 500px;
  margin: 2em auto;
  display: block;
}

/* 
 * 注意：以下样式用于富文本【外部】的特殊元素
 * 如果您需要在文章中使用提示框、结论框，可以保留
 * 如果完全依赖富文本自动生成，这些样式可以删除
 */

/* 文章标签（富文本外部） */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

/* ========== 侧边栏 ========== */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 作者卡片 */
.author-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-color);
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.author-title {
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* 侧边栏小部件 */
.sidebar-widget {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
}

/* 热门文章列表 */
.hot-articles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hot-articles li {
  list-style: none;
}

.hot-articles a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition-fast);
}

.hot-articles a:hover .hot-title {
  color: var(--primary-color);
}

.hot-rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.hot-articles li:nth-child(1) .hot-rank {
  background: #FF6B35;
}

.hot-articles li:nth-child(2) .hot-rank {
  background: #FFA62B;
}

.hot-articles li:nth-child(3) .hot-rank {
  background: #00D4AA;
}

.hot-title {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

/* 侧边栏CTA */
.sidebar-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 30px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sidebar-cta i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.sidebar-cta h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.sidebar-cta .btn {
  background: var(--white);
  color: var(--primary-color);
}

.sidebar-cta .btn:hover {
  background: var(--bg-color);
}

/* ========== 相关推荐 ========== */
.related-articles {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid #e2e8f0;
}

.related-articles .section-title-main {
  text-align: left;
  font-size: 28px;
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.related-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.related-card:hover .related-image img {
  transform: scale(1.1);
}

.related-content {
  padding: 20px;
}

.related-content .tag {
  margin-bottom: 12px;
}

.related-title {
  margin-bottom: 12px;
}

.related-title a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.related-title a:hover {
  color: var(--primary-color);
}

.related-date {
  font-size: 13px;
  color: var(--text-muted);
}

.related-date i {
  margin-right: 4px;
}

/* ========== 评论区 ========== */
.comments-section {
  margin-top: 60px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.comments-section .section-title-main {
  text-align: left;
  font-size: 24px;
  margin-bottom: 30px;
}

.comments-placeholder {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.comments-placeholder i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.comments-placeholder p {
  font-size: 16px;
}

/* ========== 响应式设计 ========== */

/* 平板 */
@media (max-width: 1023px) {
  .article-page {
    padding: 100px 0 60px;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 移动端 */
@media (max-width: 767px) {
  .article-page {
    padding: 80px 0 40px;
  }
  
  .article-title {
    font-size: 24px;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 16px;
  }
  
  .article-meta-left {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  /* 移动端富文本容器优化 */
  .article-content {
    padding: 20px 16px;
    font-size: 15px;
  }
  
  /* 移动端标题优化 - 提供更小的默认字号 */
  .article-content h1 {
    font-size: 24px;
  }
  
  .article-content h2 {
    font-size: 22px;
  }
  
  .article-content h3 {
    font-size: 20px;
  }
  
  .article-content h4 {
    font-size: 18px;
  }
  
  .article-content h5 {
    font-size: 16px;
  }
  
  .article-content h6 {
    font-size: 15px;
  }
  
  /* 移动端段落优化 - 提供更小的默认字号 */
  .article-content p {
    font-size: 15px;
    line-height: 1.8;
    margin: 0.8em 0;
  }
  
  /* 移动端列表优化 */
  .article-content ul,
  .article-content ol {
    padding-left: 1.5em;
    margin: 1em 0;
  }
  
  .article-content li {
    font-size: 15px;
    margin: 0.4em 0;
  }
  
  /* 移动端图片优化 */
  .article-content img {
    margin: 1em auto;
    border-radius: 8px;
  }
  
  /* 移动端浮动图片取消浮动 */
  .article-content img[align="left"],
  .article-content img[align="right"],
  .article-content img[style*="float"] {
    float: none !important;
    display: block;
    margin: 1em auto !important;
    max-width: 100%;
  }
  
  /* 移动端视频优化 */
  .article-content video,
  .article-content iframe {
    margin: 1.5em auto;
  }
  
  /* 移动端表格优化 */
  .article-content table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em -16px; /* 负边距让表格可以全屏滚动 */
    width: calc(100% + 32px);
    border-radius: 0;
  }
  
  .article-content table th,
  .article-content table td {
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  /* 移动端代码块优化 */
  .article-content pre {
    margin: 1.5em -16px;
    padding: 16px;
    border-radius: 0;
    font-size: 13px;
  }
  
  .article-content pre code {
    font-size: 13px;
  }
  
  /* 移动端引用块优化 */
  .article-content blockquote {
    padding: 16px 20px;
    margin: 1.5em 0;
  }
  
  .article-content blockquote p {
    font-size: 15px;
  }
  
  .article-content blockquote:before {
    font-size: 36px;
  }
  
  /* 移动端提示框优化 */
  .article-content .article-tips {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }
  
  .article-content .article-tips .tips-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  /* 移动端结论优化 */
  .article-content .article-conclusion {
    padding: 20px;
    margin: 30px 0 20px;
  }
  
  .article-content .article-conclusion p {
    font-size: 15px;
  }
  
  /* 移动端导语优化 */
  .article-lead {
    font-size: 16px;
    padding: 16px;
    margin-bottom: 20px;
  }
  
  /* 移动端文章标签优化 */
  .article-tags {
    margin-top: 20px;
    padding-top: 20px;
  }
  
  .article-sidebar {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  /* 移动端音频播放器 */
  .article-content audio {
    max-width: 100%;
    margin: 1.5em 0;
  }
  
  /* 移动端附件样式 */
  .article-content .edui-faked-attachment,
  .article-content .file-attachment {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* 小屏手机优化 - 提供更适合小屏的默认字号 */
@media (max-width: 375px) {
  .article-content {
    padding: 16px 12px;
  }
  
  .article-content h1 {
    font-size: 22px;
  }
  
  .article-content h2 {
    font-size: 20px;
  }
  
  .article-content h3 {
    font-size: 18px;
  }
  
  .article-content p,
  .article-content li {
    font-size: 14px;
  }
  
  .article-content table {
    margin: 1.5em -12px;
    width: calc(100% + 24px);
  }
  
  .article-content pre {
    margin: 1.5em -12px;
  }
}

