/* =========================================================
   归智 AiPub · 导出引用信息（桌面）
   依赖全局：tpl-b12.css（变量 / card / blk-* / crumb / page-head / btn）
   前缀：ex-*，页面容器 .export_page
   ========================================================= */

.export_page { padding-bottom: 1.5rem; }

/* ---------- 卡片头右侧提示 ---------- */
.export_page .ex-head-hint { margin-left: auto; font-size: .76rem; color: #7e8299; }
.export_page .ex-card { margin-bottom: 1.25rem; }

/* ---------- 引用格式：卡片式单选 ---------- */
.export_page .ex-fmts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.export_page .ex-fmt {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}
/* 原生 radio 隐藏（保留可访问性） */
.export_page .ex-fmt > input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.export_page .ex-fmt-bd {
  display: block;
  padding: .85rem 2.4rem .85rem 1rem;
  border: 1px solid #e4e6ef;
  border-radius: .42rem;
  background: #fff;
  transition: border-color .16s, background-color .16s, box-shadow .16s;
}
.export_page .ex-fmt-name { display: block; font-size: .92rem; font-weight: 700; color: #181c32; line-height: 1.4; }
.export_page .ex-fmt-desc { display: block; margin-top: .3rem; font-size: .76rem; font-style: normal; line-height: 1.65; color: #7e8299; }
/* 未选中的圆点占位 → 选中变实心勾 */
.export_page .ex-fmt-bd::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1.05rem;
  width: 16px;
  height: 16px;
  border: 1px solid #e4e6ef;
  border-radius: 50%;
  background: #fff;
  transition: border-color .16s, background-color .16s;
}
.export_page .ex-fmt:hover .ex-fmt-bd { border-color: #3445e5; }
.export_page .ex-fmt > input:checked + .ex-fmt-bd {
  border-color: #3445e5;
  background: #f1f3ff;
  box-shadow: 0 0 0 1px #3445e5 inset;
}
.export_page .ex-fmt > input:checked + .ex-fmt-bd::after {
  border-color: #3445e5;
  background: #3445e5;
  box-shadow: 0 0 0 3px #fff inset;
}
.export_page .ex-fmt > input:focus-visible + .ex-fmt-bd { box-shadow: 0 0 0 3px rgba(52, 69, 229, .18); }

/* ---------- 导出内容：胶囊单选 ---------- */
.export_page .ex-incs { display: flex; flex-wrap: wrap; gap: .75rem; }
.export_page .ex-inc { position: relative; margin: 0; cursor: pointer; }
.export_page .ex-inc > input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.export_page .ex-inc-bd {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border: 1px solid #e4e6ef;
  border-radius: 2rem;
  font-size: .86rem;
  color: #3f4254;
  background: #fff;
  transition: border-color .16s, background-color .16s, color .16s;
}
.export_page .ex-inc-bd::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid #e4e6ef;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}
.export_page .ex-inc:hover .ex-inc-bd { border-color: #3445e5; }
.export_page .ex-inc > input:checked + .ex-inc-bd {
  border-color: #3445e5;
  background: #f1f3ff;
  color: #3445e5;
  font-weight: 600;
}
.export_page .ex-inc > input:checked + .ex-inc-bd::before {
  border-color: #3445e5;
  background: #3445e5;
  box-shadow: 0 0 0 3px #fff inset;
}

/* ---------- 操作区 ---------- */
.export_page .ex-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: .2rem 0 1.5rem; }
.export_page .ex-actions .ex-go { display: inline-flex; align-items: center; gap: .5rem; }
.export_page .ex-actions .ico { width: 1.05em; height: 1.05em; }

/* ---------- 引用预览 ---------- */
.export_page .ex-copy {
  border: 0;
  background: transparent;
  font-size: .78rem;
  color: #3445e5;
  cursor: pointer;
  padding: 0;
}
.export_page .ex-copy:hover { color: #1b2ccf; }
.export_page .ex-preview {
  margin: 0;
  max-height: 300px;
  overflow: auto;
  padding: .85rem .95rem;
  background: #f3f6f9;
  border: 1px solid #ebedf3;
  border-radius: .42rem;
  font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
  font-size: .78rem;
  line-height: 1.75;
  color: #3f4254;
  white-space: pre-wrap;
  word-break: break-word;
}
.export_page .ex-note { margin: .8rem 0 0; font-size: .78rem; line-height: 1.75; color: #7e8299; }

/* ---------- 使用提示 ---------- */
.export_page .ex-tips { margin: .7rem 0 0; padding-left: 1.1rem; font-size: .8rem; line-height: 1.9; color: #3f4254; }
.export_page .ex-tips li::marker { color: #3445e5; }
.export_page .ex-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .9rem;
  padding: .6rem .8rem;
  background: #f1f3ff;
  border-radius: .42rem;
  font-size: .8rem;
  color: #7e8299;
}
.export_page .ex-selected b { font-size: .92rem; color: #3445e5; }

/* ---------- 窄屏兜底 ---------- */
@media (max-width: 991px) {
  .export_page .ex-fmts { grid-template-columns: 1fr; }
  .export_page .sticky-side { position: static; }
}
