/* ============================================================
   kikkua · 汉字小书房
   视觉完全复用站点设计 token；私有类统一 hz- 前缀，
   仅作用于本页，不泄漏到其他视图。
   ============================================================ */

.hz-page {
  --hz-sidebar-w: 260px;
  background: var(--bg-primary);
}

.hz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 20px calc(36px + env(safe-area-inset-bottom));
}

/* ── 导航页 Hero ── */
.hz-hero {
  text-align: center;
  margin: 8px 0 20px;
}

.hz-hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.01em;
}

.hz-hero-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── 字库导航页 ── */
.hz-lib-grid {
  display: grid;
  gap: 14px;
}

.hz-lib-card {
  display: block;
  padding: 20px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.hz-lib-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.hz-lib-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hz-lib-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.hz-lib-count {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-glow);
  border-radius: 999px;
}

.hz-lib-subtitle {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-dark);
}

.hz-lib-desc {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hz-lib-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hz-lib-loading {
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ── 抄写本入口（导航页） ── */
.hz-copybook-entry {
  margin-bottom: 14px;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), var(--bg-primary));
}

.hz-copybook-entry:hover {
  border-color: var(--amber);
}

/* ── 加密字库标识 ── */
.hz-lib-locked {
  border-color: rgba(245, 158, 11, 0.3);
}

.hz-lib-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  vertical-align: middle;
}

.hz-lib-lock-badge.hz-lib-unlocked {
  color: var(--success);
  background: var(--success-glow);
  border-color: rgba(5, 150, 105, 0.3);
}

/* ── 抄写本 ── */
.hz-cb-text {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  min-height: 84px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hz-cb-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hz-cb-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hz-cb-sheet-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.hz-cb-sheet-count {
  font-size: 13px;
  color: var(--text-muted);
}

.hz-cb-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #92400e;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
}

.hz-cb-original {
  margin-bottom: 12px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.hz-cb-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.hz-cb-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: rgba(140, 120, 95, 0.72);
  cursor: pointer;
  border: 1.5px solid #d8cdbb;
  border-radius: 8px;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.14) calc(50% - 0.5px), rgba(180, 140, 100, 0.14) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.14) calc(50% - 0.5px), rgba(180, 140, 100, 0.14) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #fffdf9;
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.hz-cb-cell:hover {
  border-color: var(--accent-light);
}

.hz-cb-cell.done {
  color: var(--accent-dark);
  font-size: 26px;
  background: var(--success-glow);
  border-color: var(--success-light);
}

.hz-cb-cell.current {
  border-color: var(--accent);
  border-width: 2px;
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: hzCbPulse 1.4s ease-in-out infinite;
}

.hz-cb-cell.blocked {
  opacity: 0.4;
}

/* ── 解锁弹窗 ── */
.hz-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hz-lock-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.hz-lock-dialog {
  width: 100%;
  max-width: 360px;
  padding: 30px 26px;
  text-align: center;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hz-lock-icon {
  display: flex;
  justify-content: center;
  color: var(--amber);
  margin-bottom: 12px;
}

.hz-lock-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.hz-lock-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.hz-lock-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hz-lock-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hz-lock-error {
  margin-top: 8px;
  font-size: 13px;
  color: #c2410c;
}

.hz-lock-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hz-lock-wechat {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hz-wechat-copy {
  display: inline;
  padding: 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--accent-light);
  cursor: pointer;
}

.hz-header-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.hz-header-lock:hover {
  color: var(--amber-dark);
  border-color: rgba(245, 158, 11, 0.4);
}

.hz-header-lock svg {
  flex-shrink: 0;
}

@keyframes hzCbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hz-cb-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.hz-cb-char {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.hz-cb-pinyin {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-dark);
}

/* ── 卡片 ── */
.hz-study-layout {
  display: flex;
  align-items: flex-start;
}

/* ── 学习页侧边栏（桌面 sticky，移动端抽屉） ── */
.hz-sidebar {
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  width: var(--hz-sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-light);
}

/* 学习页头部：与侧边栏等宽的偏移列，保证与卡片对齐 */
.hz-study-header .header-row {
  display: grid;
  grid-template-columns: var(--hz-sidebar-w) 1fr;
}

.hz-study-header .header-row .header-inner {
  grid-column: 2;
  width: 100%;
  justify-self: center;
}

.hz-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.hz-sidebar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hz-sidebar-count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.hz-sidebar-close {
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.hz-sidebar-close:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.hz-sidebar-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.hz-sidebar-search .hz-search input {
  height: 40px;
  padding-left: 38px;
  font-size: 14px;
}

.hz-sidebar-search .hz-results {
  max-height: 240px;
}

.hz-sidebar-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0;
  -webkit-overflow-scrolling: touch;
}

.hz-char-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.hz-char-item:hover {
  background: var(--bg-hover);
}

.hz-char-num {
  width: 26px;
  flex-shrink: 0;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hz-char-item.active {
  background: var(--accent-glow);
}

.hz-char-item-c {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.hz-char-item.active .hz-char-item-c {
  color: var(--accent-dark);
}

.hz-char-item-p {
  font-size: 12px;
  color: var(--text-muted);
}

.hz-char-item.active .hz-char-item-p {
  color: var(--accent-dark);
}

.hz-main {
  flex: 1;
  min-width: 0;
}

.hz-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--ink-light, #6b5e52);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.hz-menu-btn:active {
  background: var(--bg-hover);
}

.hz-sidebar-overlay {
  display: none;
}

@media (max-width: 767px) {
  .hz-study-header .header-row {
    grid-template-columns: 0 1fr;
  }

  .hz-menu-btn {
    display: flex;
  }

  .hz-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 84vw);
    height: 100%;
    z-index: 300;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform 0.3s var(--ease-out);
    box-shadow: var(--shadow-lg);
  }

  .hz-sidebar.open {
    transform: none;
    pointer-events: auto;
  }

  .hz-sidebar-close {
    display: flex;
  }

  .hz-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 290;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .hz-sidebar-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }
}

.hz-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
}

.hz-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.hz-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ── 搜索 ── */
.hz-search {
  position: relative;
  display: flex;
  align-items: center;
}

.hz-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex;
  pointer-events: none;
}

#hzSearch {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#hzSearch::placeholder {
  color: var(--text-muted);
}

#hzSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.hz-results {
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hz-results-head {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 2px 8px;
}

.hz-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  margin-bottom: 6px;
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.hz-result:hover {
  border-color: var(--accent-light);
  background: var(--bg-hover);
}

.hz-result-char {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-glow);
  border-radius: var(--radius-md);
}

.hz-result-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hz-result-pinyin {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hz-result-words {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hz-results-empty {
  padding: 16px 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

/* ── 学习卡头部：拼音 + 字格 居中 ── */
.hz-char-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0 0;
}

.hz-char-cell {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  font-weight: 600;
  color: var(--text-primary);
  border: 2px solid #d8cdbb;
  border-radius: 12px;
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #fffdf9;
}

.hz-pinyin {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
}

.hz-current-words {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* ── 学习卡按钮区 ── */
.hz-start-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.hz-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hz-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.hz-mini-btn:hover {
  color: var(--accent-dark);
  border-color: var(--accent-light);
  background: var(--bg-hover);
}

.hz-mini-btn:active {
  transform: scale(0.96);
}

/* 笔顺 */
.hz-writer-center {
  display: flex;
  justify-content: center;
}

.hz-writer-box {
  position: relative;
  display: inline-block;
  border: 2px solid #d8cdbb;
  border-radius: var(--radius-md);
  background:
    linear-gradient(to right, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% - 0.5px), rgba(180, 140, 100, 0.18) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    #fffdf9;
}

.hz-writer-box svg {
  display: block;
  touch-action: none;
}

/* ── 按钮行（居中） ── */
.hz-pane-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.hz-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(255, 253, 249, 0.9);
  border-radius: var(--radius-md);
}

.hz-loading[hidden] {
  display: none;
}

.hz-demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hz-demo-controls .btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
}

.hz-demo-controls .btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* 临写 */
.hz-write-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 用户笔迹与已写笔画要盖在演示动画之上，动画不遮字 */
#hzPracticeWriter,
#hzWordWriter,
#cbWriter {
  position: relative;
  z-index: 1;
}

/* ── 右上角反馈 ── */
.hz-feedback {
  position: fixed;
  top: calc(52px + 10px);
  right: 12px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

.hz-float {
  padding: 5px 14px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: hzFloatIn 1.7s ease forwards;
}

.hz-float.ok {
  color: var(--success);
  background: var(--success-glow);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.hz-float.err {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(234, 88, 12, 0.25);
}

@keyframes hzFloatIn {
  0% { opacity: 0; transform: translateX(14px); }
  15% { opacity: 1; transform: translateX(0); }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

/* ── 庆祝纸屑 ── */
.hz-confetti {
  position: fixed;
  z-index: 1300;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* ── Toast ── */
.hz-toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: 86vw;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(26, 26, 30, 0.88);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hz-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── 页脚 ── */
.hz-foot {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 0 4px;
}

/* ── 响应式 ── */
@media (max-width: 560px) {
  .hz-wrap {
    padding: 12px 12px calc(28px + env(safe-area-inset-bottom));
  }

  .hz-card {
    padding: 16px;
  }

  .hz-char-cell {
    width: 78px;
    height: 78px;
    font-size: 48px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hz-page *,
  .hz-page *::before,
  .hz-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
