/* 日语词书（museum-page-jabook.js）特有的样式。其余沿用 museum-dx.css 的单词页、词书页类名与 token。
   去模板感：不用彩色左竖线框、圆角大数字卡片、胶囊标签；靠字号、字重、留白和细线分层。 */

/* 词表页头 */
html body .dx-jabook .jb-head { padding: 28px 0 8px; }
html body .dx-jabook .crumb { font-size: 13px; color: var(--dx-ink-3); margin: 0 0 14px; }
html body .dx-jabook .crumb a { color: var(--dx-ink-2); text-decoration: none; border-bottom: 1px solid var(--dx-rule); }
html body .dx-jabook .jb-head h1 { font: 400 34px/1.15 var(--dx-han); color: var(--dx-ink); margin: 0 0 14px; }
html body .dx-jabook .jb-beta { font: 400 13px/1 var(--dx-sans); color: var(--dx-ink-3); margin-left: 8px; vertical-align: .55em; letter-spacing: .02em; }
html body .dx-jabook .jb-count { margin: 0 0 12px; color: var(--dx-ink-2); font-size: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--dx-rule); }
html body .dx-jabook .jb-big { font: 400 30px/1 var(--dx-lat); color: var(--dx-ink); margin-right: 4px; font-variant-numeric: tabular-nums; }
html body .dx-jabook .jb-unit { margin-right: 6px; }
html body .dx-jabook .jb-lead { font-size: 15px; line-height: 1.75; color: var(--dx-ink-2); margin: 0 0 18px; max-width: 40em; }
html body .dx-jabook .jb-find { margin: 0 0 8px; }

/* 级别：文字标签，下划线表示当前；数字小一号 */
html body .dx-jabook .jb-levels { display: flex; gap: 20px; margin: 4px 0 14px; border-bottom: 1px solid var(--dx-rule); overflow-x: auto; }
html body .dx-jabook .jb-levels button { background: none; border: 0; padding: 8px 0 9px; font: 500 17px/1 var(--dx-lat); color: var(--dx-ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
html body .dx-jabook .jb-levels button small { font: 400 12px/1 var(--dx-sans); margin-left: 5px; color: var(--dx-ink-3); font-variant-numeric: tabular-nums; }
html body .dx-jabook .jb-levels button[aria-selected="true"] { color: var(--dx-ink); border-bottom-color: var(--dx-jade); }
html body .dx-jabook .jb-table td.hw a { font-family: var(--dx-han); font-size: 17px; }
html body .dx-jabook .jb-lv { font-size: 12px; color: var(--dx-ink-3); margin-left: 8px; }
html body .dx-jabook .jb-pager { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
html body .dx-jabook .jb-pages { font-size: 13px; color: var(--dx-ink-3); font-variant-numeric: tabular-nums; }

/* 单词卡 */
html body .dx-jabook .jb-whead { padding-top: 22px; }
html body .dx-jabook .jb-whead h1 { font: 400 56px/1.1 var(--dx-han); letter-spacing: 0; }
html body .dx-jabook .jb-reading { font-size: 17px; color: var(--dx-ink-2); }
html body .dx-jabook .jb-alt { margin-top: 6px; }
html body .dx-jabook .jb-lg { display: inline-block; min-width: 1.9em; font: 500 11px/1 var(--dx-sans); color: var(--dx-ink-3); letter-spacing: .04em; }
html body .dx-jabook .jb-full { color: var(--dx-ink-3); }
html body .dx-jabook .jb-slot { font-size: 12px; color: var(--dx-ink-3); margin: 0 0 4px; letter-spacing: .02em; }
html body .dx-jabook .jb-ex .e { font-family: var(--dx-han); }
html body .dx-jabook .jb-target { font-weight: 600; text-decoration: underline; text-decoration-color: var(--dx-cn); text-decoration-thickness: 2px; text-underline-offset: 5px; }
html body .dx-jabook .jb-rd { font: 400 12px/1 var(--dx-sans); color: var(--dx-ink-3); margin-left: 8px; }

/* 活用表：细线分行；例句里用到的形整行淡底 */
html body .dx-jabook .jb-conj { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
html body .dx-jabook .jb-conj th, html body .dx-jabook .jb-conj td { padding: 9px 6px; border-bottom: 1px solid var(--dx-rule); text-align: left; vertical-align: baseline; }
html body .dx-jabook .jb-conj th { font: 400 13px/1.4 var(--dx-sans); color: var(--dx-ink-3); width: 42%; }
html body .dx-jabook .jb-conj td { text-align: right; }
html body .dx-jabook .jb-sf { font: 500 17px/1.3 var(--dx-han); color: var(--dx-ink); }
html body .dx-jabook .jb-conj tr.on th, html body .dx-jabook .jb-conj tr.on td { background: var(--dx-paper-2); }

/* 选意思：无框文字行，选后对的用 jade、错的用 cn 色 */

@media (min-width: 900px) {
  html body .dx-jabook .jb-head h1 { font-size: 44px; }
  html body .dx-jabook .jb-whead h1 { font-size: 80px; }
}

/* 词表只有四列，不需要词书页那张宽表的最小宽度 */
html body .dx-jabook .jb-table { min-width: 0; width: 100%; table-layout: auto; }
html body .dx-jabook .jb-table th, html body .dx-jabook .jb-table td { white-space: normal; }
html body .dx-jabook .jb-table td.n { width: 3.2em; }
html body .dx-jabook .jb-table td.muted { font-size: 13px; }
html body .dx-jabook .jb-table td.hw { white-space: nowrap; width: 1%; padding-right: 18px; }
html body .dx-jabook .jb-rd2 { display: block; font: 400 12px/1.4 var(--dx-sans); color: var(--dx-ink-3); margin-top: 2px; }
html body .dx-jabook .jb-table td.wrap { font-size: 14px; color: var(--dx-ink-2); }
html body .dx-jabook .jb-levels { gap: 14px; }
html body .dx-jabook .jb-levels button { font-size: 16px; }
html body .dx-jabook .jb-levels button small { margin-left: 3px; font-size: 11px; }
/* 搭配：手机上一行一条，读音另起一行 */
html body .dx-jabook .jb-col { grid-template-columns: 1fr; }
html body .dx-jabook .jb-col .e .jb-rd { display: block; margin: 3px 0 0; }
@media (min-width: 900px) { html body .dx-jabook .jb-col { grid-template-columns: 1fr 1fr; } }

/* 右侧竖排词签（实验，电脑宽度才出）：縦書き右起，像书脊/题签 */
html body .dx-jabook .jb-tate { display: none; }
@media (min-width: 1100px) {
  html body .dx-jabook .jb-cardwrap { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 48px; align-items: start; }
  html body .dx-jabook .jb-tate { display: flex; flex-direction: column; align-items: center; gap: 18px; position: sticky; top: 84px;
    writing-mode: vertical-rl; text-orientation: upright; border-left: 1px solid var(--dx-rule); padding: 8px 0 8px 28px; min-height: 60vh; }
  html body .dx-jabook .jb-tate-f { font: 400 54px/1.1 var(--dx-han); color: var(--dx-ink); letter-spacing: .08em; }
  html body .dx-jabook .jb-tate-r { font: 400 15px/1.4 var(--dx-han); color: var(--dx-ink-3); letter-spacing: .2em; }
  html body .dx-jabook .jb-tate-l { font: 500 13px/1 var(--dx-sans); color: var(--dx-cn); text-orientation: mixed; letter-spacing: .1em; }
  html body .dx-jabook .jb-whead h1 { font-size: 56px; }
}

/* ===== 日语板块外框：电脑宽度用左侧栏（主人 10-07「日语用左侧版本 英语用顶栏版本…日语的左侧稍微体积能缩一下。手机就正常都顶栏」）===== */
html body .dx-jabook .jb-tate { display: none !important; }
@media (min-width: 1100px) {
  html body .dx-jabook .jb-cardwrap { display: block; }
  body[data-page="jabook"] header.m-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 176px; height: auto; z-index: 20;
    background: color-mix(in srgb, var(--dx-jade) 9%, var(--dx-paper)); border-right: 1px solid var(--dx-rule); border-bottom: 0; }
  body[data-page="jabook"] header.m-nav .m-nav__in { display: flex; flex-direction: column; align-items: flex-start; height: 100%; max-width: none; padding: 22px 22px 26px; gap: 0; }
  body[data-page="jabook"] header.m-nav .m-brand { margin-bottom: 30px; }
  body[data-page="jabook"] header.m-nav .m-brand img { width: 62px; height: auto; }
  body[data-page="jabook"] header.m-nav .dx-nav { display: flex; flex-direction: column; gap: 20px; margin: 0; }
  body[data-page="jabook"] header.m-nav .dx-nav a { font-size: 15px; }
  body[data-page="jabook"] header.m-nav .dx-lang { margin-top: auto; font-size: 14px; }
  body[data-page="jabook"] header.m-nav .dx-mnav { display: none; }
  html body[data-page="jabook"] { padding-left: 176px; box-sizing: border-box; }
  html body[data-page="jabook"] main, html body[data-page="jabook"] footer.m-foot { max-width: 100%; }
}
