/* ===== 基础字体 ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: '微软雅黑', 'Microsoft YaHei', system-ui, Arial, sans-serif;
  font-size: 14px;
}

a { text-decoration: none; }

/* ===== 字数统计警告色 ===== */
.char-counter.warn {
  color: #e07b39;
  font-weight: bold;
}

/* ===== 数字输入框：保留 spin 按钮 ===== */
.input-number { -moz-appearance: textfield; }
.input-number::-webkit-inner-spin-button,
.input-number::-webkit-outer-spin-button { opacity: 1; }

/* ===== 预览 iframe ===== */
.preview-frame {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .preview-frame { height: 480px; }
}

/* ===== PDF.js canvas 容器（不支持原生 PDF 渲染时的回退预览） ===== */
.pdf-canvas-container {
  width: 100%;
  background: #f8fafc;
  overflow-x: hidden;
}
