/* 注音符號表與中文轉注音 */
.zy-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.zy-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 1rem; }
.zy-h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.zy-h3 { font-size: 1.05rem; margin: 1rem 0 .25rem; color: var(--brand-dark); }
.zy-grid { list-style: none; margin: 8px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.zy-grid li { margin: 0; min-width: 0; }
.zy-sym { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; min-height: 104px; padding: 8px 4px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--fg); font: inherit; cursor: pointer; text-align: center; }
.zy-sym:hover { border-color: var(--brand); }
.zy-sym:focus-visible { outline: 3px solid #93b4ff; }
.zy-sym-ch { font-size: 2rem; line-height: 1.2; font-weight: 700; color: var(--brand-dark); }
.zy-tone-ch { font-size: 1.6rem; }
.zy-sym-py { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.zy-sym-ex { font-size: .85rem; line-height: 1.35; margin-top: 2px; overflow-wrap: anywhere; }
.zy-field { display: block; font-size: 1rem; margin-bottom: 4px; }
#zy-input { display: block; width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1.2rem; background: #fff; color: var(--fg); resize: vertical; }
.zy-out { margin: 6px 0; padding: 10px; border-radius: 10px; background: var(--soft); font-size: 1.1rem; }
.zy-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 2px; margin: 0 0 8px; min-height: 2em; }
.zy-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 1.6em; padding: 2px 3px; border-radius: 8px; }
.zy-raw { min-width: 0; padding: 2px 0; }
.zy-ch { font-size: 1.6rem; line-height: 1.3; font-weight: 600; white-space: pre-wrap; }
.zy-zh { font-size: 1rem; line-height: 1.3; color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.zy-poly { background: #fff7e6; }
.zy-alts { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.zy-alt { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--fg); font: inherit; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.zy-alt[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.zy-kb { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.zy-kb-row { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px 0; }
.content table.zy-kb-row, .zy-kb-row { font-size: 1rem; }
.zy-kb-row th, .zy-kb-row td { border: 1px solid var(--line); padding: 0; text-align: center; vertical-align: middle; }
.zy-kb-row th { background: var(--soft); font-size: .8rem; font-weight: 600; color: var(--muted); height: 22px; border-radius: 6px 6px 0 0; }
.zy-kb-row td { font-size: 1.25rem; font-weight: 700; color: var(--brand-dark); height: 38px; border-top: 0; border-radius: 0 0 6px 6px; }
.zy-kb-r2 { width: calc(100% * 10 / 11); margin-left: calc(100% * .5 / 11); }
.zy-kb-r3 { width: calc(100% * 10 / 11); margin-left: calc(100% * .75 / 11); }
.zy-kb-r4 { width: calc(100% * 10 / 11); margin-left: calc(100% * 1.25 / 11); }
.content code { background: var(--soft); padding: 1px 6px; border-radius: 4px; font-size: .95em; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .zy-grid { grid-template-columns: repeat(3, 1fr); }
  .zy-kb-row th { font-size: .7rem; }
  .zy-kb-row td { font-size: 1.05rem; }
}
