/* ============================================================
   前台 H5 样式（配合 Tailwind 使用）
   ============================================================ */

:root {
  /* 主色（按钮、标题、箭头） */
  --ft-blue: #2563eb;
  --ft-blue-200: #bfdbfe;
  --ft-blue-100: #dbeafe;
  --ft-blue-50: #eff6ff;
  /* 错误 / 警告文案 */
  --ft-error: #ef4444;
  /* 页面背景：白 → 淡蓝（斜向） */
  --ft-bg: linear-gradient(160deg, #ffffff, #e8f1ff 45%, #cfe2ff);
  /* 圆形图标底：白图标需要更深的蓝才看得清 */
  --ft-icon-grad: linear-gradient(160deg, #60a5fa, #2563eb);
  --ft-shadow: 0 20px 45px -20px rgba(37, 99, 235, 0.45);
  --ft-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--ft-font);
  color: #1f2330;
  background: #f5f6fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- 渐变底 ---------- */
.ft-page {
  min-height: 100vh;
  background-image: var(--ft-bg);
}

.ft-grad {
  background-image: var(--ft-icon-grad);
}

.ft-shadow {
  box-shadow: var(--ft-shadow);
}

.ft-shadow-sm {
  box-shadow: 0 2px 10px -6px rgba(0, 0, 0, 0.25);
}

.ft-press {
  transition: transform 0.15s ease;
}

.ft-press:active {
  transform: scale(0.98);
}

/* ---------- 加载态 ---------- */
.ft-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6fb;
  color: #b9b9c6;
  font-size: 14px;
  z-index: 10;
}

/* ---------- 轻提示（Toast） ---------- */
.ft-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 70vw;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  z-index: 80;
  word-break: break-all;
}

.ft-fade-enter-active,
.ft-fade-leave-active {
  transition: opacity 0.2s ease;
}

.ft-fade-enter-from,
.ft-fade-leave-to {
  opacity: 0;
}

/* ---------- 条目正文 ---------- */
.content-html {
  font-size: 16px;
  line-height: 32px;
  color: #374151;
  word-break: break-word;
}

.content-html img {
  display: block;
  max-width: 100%;
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.content-html a {
  color: #2563eb;
}

.content-html p {
  margin: 0 0 8px;
}

.content-html video {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

/* ---------- 二维码放大预览 ---------- */
.ft-preview {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
}

.ft-preview img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

/* ---------- 跳转小程序取密码的等待遮罩 ---------- */
.ft-mask {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
}

.ft-mask__box {
  width: 100%;
  max-width: 320px;
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.ft-mask__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2330;
}

.ft-mask__desc {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 18px;
  color: #8a90a2;
}

.ft-mask__qr {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 7px;
  border-radius: 12px;
  border: 1px solid #eef0f6;
  object-fit: contain;
}

.ft-mask__tip {
  margin: 0 0 14px;
  font-size: 12px;
  color: #8a90a2;
}

.ft-mask__warn {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--ft-error);
}

.ft-mask__close {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 11px 0;
  margin-top: 16px;
  border: 1px solid #dc2626;
  border-radius: 12px;
  background-color: #ef4444;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -10px rgba(239, 68, 68, 0.9);
}

.ft-mask__close:active {
  transform: scale(0.98);
  background-color: #dc2626;
  border-color: #b91c1c;
  box-shadow: 0 4px 12px -8px rgba(239, 68, 68, 0.9);
}
