/* ============================================================
   Hanzi Studio — Pinyin Dictation Maker（研发版）
   复用 kit.css 骨架；此处只放本页专有的预览舞台样式
   （与 colour-coder 的 A4 预览同管线）
   ============================================================ */

/* 预览列与左栏等高（覆盖 kit.css 的 align-items:start） */
.dc-page .kit-studio__grid { align-items: stretch; }
.dc-page .kit-stage { position: relative; top: 0; display: flex; flex-direction: column; }   /* 保留 relative 供空状态定位，关闭吸附 */

/* Hero 特效位：本页专属图（教室听写场景）——覆盖 kit.css 的默认毛笔字照片
   默认 opacity:0 与页面背景同色，鼠标移入由 reveal.js 从落点荡开涟漪显现 */
.dc-page .reveal-img {
  background: url('../img/kit-dictation-classroom.jpg') center / cover no-repeat;
}

#dcDoc { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dc-doc-wrap { flex: 1; min-height: 0; display: flex; justify-content: center; }

/* 空状态 */
.dc-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; color: var(--ink-3);
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 30px;
}
.dc-empty[hidden] { display: none; }
.dc-empty p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.dc-empty__sub { font-size: 12px !important; color: var(--ink-3) !important; }
.dc-opt { font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }

/* A4 纸张：按剩余高度自适应，保持 210:297 */
.dc-doc-paper {
  height: 100%; width: auto;
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px -30px rgba(40, 32, 24, .45);
  padding: 10px;
  display: flex;
}
.dc-doc-paper canvas { width: 100%; height: 100%; display: block; border-radius: 4px; }

.kit-stage__hint { flex: none; }

/* 日期输入（kit.css 只覆盖 text/textarea） */
#dcDate {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 14px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
}
#dcDate:focus { outline: none; border-color: var(--seal-line); box-shadow: 0 0 0 3px var(--seal-soft); }

/* 左栏底部下载/状态 */
.dc-panel-foot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.dc-panel-foot .btn { width: 100%; justify-content: center; }
.dc-status { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.dc-note { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin: 8px 0 0; }
.dc-note a { color: var(--seal); }

/* 响应式：≤1080px 隐藏 hero 特效位（kit.css 已处理 .kit-slot），此处只调插槽回退 */
@media (max-width: 860px) {
  .dc-doc-paper { height: auto; width: 100%; }
}
