/* 权属证明：样张（白底文书，底图 + 叠印文字）、签发面板、样张页、验证页。样张内部单位是设计稿像素（2480 × 3508），整体用 zoom 缩放。 */
.cert-sheet { position: relative; flex: none; width: 2480px; height: 3508px; zoom: var(--z, .32); background: #fbfaf4; color: #202a26; overflow: hidden; font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; text-align: left; -webkit-font-smoothing: antialiased; }
.cert-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert-in { position: absolute; left: 330px; right: 330px; top: 462px; bottom: 430px; display: flex; flex-direction: column; }
.cert-title { font: 700 99px/1.3 "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; text-align: center; letter-spacing: .02em; }
.cert-title::after { content: ""; display: block; width: 152px; height: 4px; background: #32574b; margin: 24px auto 0; }
.cert-info { display: grid; grid-template-columns: 493px minmax(0, 1fr); row-gap: 22px; margin-top: 72px; padding-bottom: 46px; border-bottom: 2px solid #aebbb0; }
.cert-info dt { font-weight: 500; font-size: 39px; line-height: 65px; color: #32574b; }
.cert-info dd { font-size: 46px; line-height: 65px; overflow-wrap: anywhere; }
.cert-body { margin-top: 62px; font-size: 46px; line-height: 76px; }
.cert-h { font-weight: 600; font-size: 46px; line-height: 1.3; color: #32574b; }
.cert-body + .cert-h { margin-top: 96px; }
.cert-notes { margin-top: 24px; font-size: 39px; line-height: 64px; color: #202a26; }
.cert-notes li { display: grid; grid-template-columns: 70px minmax(0, 1fr); margin-top: 20px; }
.cert-notes li span:first-child { font-weight: 500; color: #32574b; }
.cert-ev { position: relative; margin-top: auto; padding-top: 58px; border-top: 2px solid #aebbb0; }
.cert-k { margin-top: 26px; font-weight: 500; font-size: 33px; line-height: 1.4; color: #494e48; white-space: pre; }
.cert-v { font: 31px/1.5 Menlo, "CDEF Mono", Consolas, monospace; }
.cert-kv { display: grid; grid-template-columns: 210px minmax(0, 1fr); row-gap: 14px; margin-top: 34px; }
.cert-kv dt { font-weight: 500; font-size: 32px; line-height: 49px; color: #494e48; }
.cert-kv dd { font-size: 35px; line-height: 49px; }
.cert-qr { position: absolute; right: 0; top: 140px; width: 333px; height: 333px; padding: 36px; background: #fff; }
.cert-qr svg { display: block; width: 100%; height: 100%; }
.cert-qr.is-blank { display: grid; place-items: center; font-size: 30px; color: #8a938d; border: 2px dashed #aebbb0; background: none; }
.cert-sign { margin-top: 112px; text-align: right; }
.cert-brand { font: 700 54px/1.3 "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif; letter-spacing: .04em; }
.cert-entity { font-size: 34px; line-height: 1.5; color: #494e48; margin-top: 6px; }
.cert-date { font-size: 38px; line-height: 1.5; color: #494e48; margin-top: 14px; }
.cert-mark { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-24deg); font: 700 420px/1 "Songti SC", "Noto Serif CJK SC", serif; letter-spacing: .2em; color: rgba(50, 87, 75, .13); pointer-events: none; white-space: nowrap; }

/* 签发面板 */
.cp { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 0; overflow: hidden; }
.cp-form { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; overflow: auto; font-size: 14px; border-right: 1px solid var(--line); }
.cp-form h3 { font-size: 18px; font-weight: 700; }
.cp-form .sub { color: var(--mute); font-size: 13px; }
.cp-fields { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.cp-fields .tx { align-self: flex-start; }
.cp-roles { display: flex; flex-direction: column; gap: 10px; }
.cp-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 13px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cp-dl dt { color: var(--mute); }
.cp-dl dd { overflow-wrap: anywhere; }
.cp-act { display: flex; flex-direction: column; gap: 10px; }
.cp-view { padding: 20px; background: var(--bg-deep); overflow: auto; display: flex; flex-direction: column; align-items: center; max-height: min(86dvh, 720px); }
.cp-view .cert-sheet, .cert-stage .cert-sheet { box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

/* 样张页 */
.cert-page { padding: 24px var(--gut) 48px; min-height: calc(100dvh - var(--top) - var(--pb) - 53px); background: var(--bg-deep); }
.cert-bar { max-width: 992px; margin: 0 auto 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.cert-bar h1 { font-size: 20px; font-weight: 700; }
.cert-bar .num { color: var(--mute); }
.cert-bar-r { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-bar-n { flex-basis: 100%; }
.cert-stage { max-width: 992px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* 验证页 */
.vf { max-width: 720px; margin: 0 auto; padding: 56px var(--gut) 72px; min-height: calc(100dvh - var(--top) - var(--pb) - 53px); display: flex; flex-direction: column; gap: 16px; }
.vf-k { color: var(--acc); letter-spacing: .06em; }
.vf h1 { font-size: 26px; font-weight: 700; }
.vf-form { display: flex; gap: 10px; }
.vf-form .in { font-size: 14px; }
.vf-out { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.vf .sub { color: var(--mute); font-size: 14px; }
.vf-state { padding: 16px 18px; border-left: 3px solid; font-size: 14px; color: var(--mute); background: var(--panel); }
.vf-state b { display: block; font-size: 20px; margin-bottom: 4px; }
.vf-state.ok { border-color: var(--ok); } .vf-state.ok b { color: var(--ok); }
.vf-state.bad { border-color: var(--err); } .vf-state.bad b { color: var(--err); }
.vf-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); font-size: 14px; }
.vf-dl dt, .vf-dl dd { padding: 11px 0; border-top: 1px solid var(--line); }
.vf-dl dt { color: var(--mute); font-size: 13px; }
.vf-dl dd { overflow-wrap: anywhere; }
.vf-dl dd.num { font-size: 13px; }

@media (max-width: 760px) {
  .cp { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .cp > * { min-width: 0; }
  .cp-form { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .cp-view { max-height: none; overflow: visible; padding: 16px; }
  .cert-page { padding-top: 16px; }
  .cert-bar-r .btn { flex: 1; }
  .vf { padding-top: 32px; }
  .vf-dl { grid-template-columns: 1fr; }
  .vf-dl dd { border-top: 0; padding-top: 0; }
}
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; padding: 0 !important; }
  .top, .foot, #player, .cert-bar, .toasts, .netbar, .skip { display: none !important; }
  .cert-page { padding: 0; min-height: 0; background: none; }
  .cert-stage { max-width: none; display: block; }
  .cert-stage .cert-sheet { --z: .32 !important; zoom: .32; box-shadow: none; }
}
