:root {
  --ink: #16343c;
  --teal: #166269;
  --teal-deep: #0f4f55;
  --teal-soft: #e8f3f4;
  --sand: #eef2f4;
  --paper: #f7fafb;
  --line: #d5e0e3;
  --gold: #c7a25a;
  --warn: #9a5b12;
  --ok: #1f7a4c;
  --danger: #a33b3b;
  --shadow: 0 16px 40px rgba(15, 79, 85, 0.1);
  --radius: 14px;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(22, 98, 105, 0.14), transparent 55%),
    linear-gradient(180deg, #f4f8f9 0%, #e8eef0 100%);
  min-height: 100vh;
}

/* ========== 门户首页（简洁单焦点） ========== */
.page-home {
  min-height: 100vh;
}
.home-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 0 28px;
}
/* 证书 / 报告查询：表单页收窄，避免输入框横向拉得过宽 */
.home-shell--query {
  width: min(480px, calc(100% - 32px));
}
.home-shell--query .home-top {
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.home-shell--query .home-brand strong {
  font-size: 0.98rem;
}
.home-shell--query .home-main {
  justify-content: flex-start;
  gap: 22px;
  padding-bottom: 16px;
}
.home-shell--query-result {
  width: min(960px, calc(100% - 32px));
}
.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.home-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}
.home-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.home-brand span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #5f757c;
}
.home-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.home-nav a {
  color: #456066;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
}
.home-nav a:hover,
.home-nav a.is-active {
  color: var(--teal-deep);
  background: rgba(22, 98, 105, 0.1);
  text-decoration: none;
}
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-bottom: 24px;
}
.home-intro {
  text-align: center;
}
.home-intro h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  font-weight: 700;
}
.home-intro p {
  margin: 10px 0 0;
  color: #5f757c;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.home-query {
  background: #fff;
  border: 1px solid rgba(22, 98, 105, 0.12);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 32px);
}
.home-query-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.home-query-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-serif);
  color: var(--teal-deep);
}
.home-query-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6a7f86;
}
.home-form {
  display: grid;
  gap: 14px;
}
.home-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #4a646b;
}
.home-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfcfd;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.home-field input:focus {
  outline: 2px solid rgba(22, 98, 105, 0.22);
  border-color: var(--teal);
  background: #fff;
}
.home-submit {
  appearance: none;
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a7f8a, var(--teal-deep));
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 79, 85, 0.22);
}
.home-submit:hover {
  filter: brightness(1.04);
  text-decoration: none;
  color: #fff;
}
.home-shell--entry {
  width: min(980px, calc(100% - 32px));
}
.home-main--entry {
  justify-content: center;
  gap: 36px;
}
.home-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.home-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 26px 22px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.home-entry:hover {
  transform: translateY(-3px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 20px 36px rgba(15, 79, 85, 0.18);
}
.home-entry--disabled {
  opacity: 0.72;
  cursor: not-allowed;
  filter: grayscale(0.15);
}
.home-entry--cert {
  background:
    linear-gradient(155deg, rgba(15, 79, 85, 0.95), rgba(22, 98, 105, 0.82)),
    linear-gradient(160deg, #0f4f55, #1a6d75);
}
.home-entry--report {
  background:
    linear-gradient(155deg, rgba(92, 64, 24, 0.94), rgba(140, 96, 36, 0.8)),
    linear-gradient(160deg, #6b4518, #8c6024);
}
.home-entry--exam {
  background:
    linear-gradient(155deg, rgba(28, 58, 92, 0.96), rgba(46, 90, 132, 0.84)),
    linear-gradient(160deg, #1c3a5c, #2e5a84);
}
.home-entry--train {
  background:
    linear-gradient(155deg, rgba(34, 90, 68, 0.96), rgba(52, 120, 92, 0.84)),
    linear-gradient(160deg, #225a44, #34785c);
}
.home-corp {
  margin-top: 8px;
  padding: 22px 20px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,251,251,.96)),
    #f4f8f8;
  border: 1px solid rgba(22, 98, 105, 0.12);
  box-shadow: 0 10px 28px rgba(15, 79, 85, 0.06);
}
.home-corp-head {
  text-align: center;
  margin-bottom: 18px;
}
.home-corp-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #6a868c;
}
.home-corp-head h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: var(--teal-deep);
  letter-spacing: 0.06em;
}
.home-corp-head p {
  margin: 10px auto 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.7;
  color: #5f757c;
}
.home-corp-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.home-entry--ent-admin {
  background:
    linear-gradient(155deg, rgba(15, 111, 106, 0.96), rgba(20, 90, 102, 0.86)),
    linear-gradient(160deg, #0f6f6a, #145a66);
}
.home-entry--ent-stu {
  background:
    linear-gradient(155deg, rgba(22, 51, 63, 0.96), rgba(15, 111, 106, 0.82)),
    linear-gradient(160deg, #16333f, #0f6f6a);
}
.home-entry-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.78;
}
.home-entry strong {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
}
.home-entry p {
  margin: 0;
  max-width: 26ch;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}
.home-entry em {
  font-style: normal;
  font-size: 13px;
  opacity: 0.9;
  letter-spacing: 0.04em;
}
.home-aside {
  display: flex;
  justify-content: center;
}
.home-report-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 98, 105, 0.14);
  color: var(--teal-deep);
  text-decoration: none;
  font-size: 14px;
}
.home-report-link:hover {
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 79, 85, 0.08);
}
.home-report-link em {
  font-style: normal;
  color: #7a9097;
}
.home-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  color: #7a9097;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.home-foot > div {
  white-space: nowrap;
}
.home-foot a { color: inherit; }

@media (max-width: 640px) {
  .home-top { flex-direction: column; align-items: flex-start; }
  .home-intro h1 { letter-spacing: 0.04em; }
  .home-entries,
  .home-corp-entries { grid-template-columns: 1fr; }
  .home-corp { padding: 18px 14px 16px; }
}

/* ========== 培训合格证书 / 验证报告查询（正规 + 自适应） ========== */
.page-cert {
  min-height: 100vh;
  background: linear-gradient(180deg, #edf3f4 0%, #e4ecee 100%);
}
.cert-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 24px) 0 clamp(18px, 2.5vw, 32px);
}
.cert-shell--wide {
  width: min(1180px, calc(100% - 32px));
}
.cert-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(12px, 2vw, 20px);
}
.cert-board {
  position: relative;
  flex: 1;
  padding: clamp(6px, 1vw, 10px);
  background: #fff;
  border: 1px solid rgba(15, 79, 85, 0.18);
  box-shadow: 0 10px 28px rgba(15, 79, 85, 0.08);
  animation: cert-rise 0.45s ease both;
}
@keyframes cert-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cert-board-frame {
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(15, 79, 85, 0.55);
  pointer-events: none;
}
.cert-board-frame::before,
.cert-board-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold);
  border-style: solid;
}
.cert-board-frame::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}
.cert-board-frame::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 2px 2px 0;
}
.cert-board-inner {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 3vw, 32px) clamp(14px, 3.2vw, 40px) clamp(18px, 2.5vw, 30px);
  background: linear-gradient(180deg, rgba(248, 251, 251, 0.95), #fff 28%);
}
.cert-masthead {
  text-align: center;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.cert-masthead-org {
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.12em;
  color: var(--teal-deep);
}
.cert-masthead h1 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  font-weight: 700;
}
.cert-masthead-en {
  margin-top: 8px;
  font-size: clamp(11px, 1vw, 12px);
  letter-spacing: 0.12em;
  color: #7a9097;
}
.cert-masthead-line {
  width: min(320px, 60%);
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), var(--teal), var(--gold), transparent);
}
.cert-masthead-desc {
  margin: 14px auto 0;
  max-width: 46em;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.7;
  color: #5a7078;
}
.cert-board-body {
  display: grid;
  gap: 16px;
}
.cert-notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(22, 98, 105, 0.16);
  background: var(--teal-soft);
}
.cert-notice h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-family: var(--font-serif);
  color: var(--teal-deep);
  letter-spacing: 0.08em;
}
.cert-notice ol {
  margin: 0;
  padding-left: 1.2em;
  color: #42585f;
  font-size: 13px;
  line-height: 1.8;
}
.cert-query {
  border: 1px solid rgba(15, 79, 85, 0.2);
  background: #fbfcfd;
  min-width: 0;
}
.cert-query-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: linear-gradient(180deg, #1a717a, var(--teal-deep));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.18em;
}
.cert-form {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
}
.cert-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(22, 98, 105, 0.16);
}
.cert-row:last-of-type { border-bottom: 0; }
.cert-label {
  text-align: right;
  font-size: 14px;
  color: var(--teal-deep);
  letter-spacing: 0.08em;
}
.cert-label::after { content: "："; }
.cert-row input {
  width: 100%;
  max-width: 100%;
  border: 1px solid #c9d6da;
  background: #fff;
  border-radius: 2px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.cert-row input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(22, 98, 105, 0.12);
}
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px 18px;
  border-top: 1px solid rgba(22, 98, 105, 0.12);
  background: #f4f8f9;
}
.cert-submit,
.cert-reset,
.cert-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 2px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
}
.cert-submit {
  border: 0;
  background: var(--teal-deep);
  color: #fff;
}
.cert-submit:hover {
  background: #0c4349;
  color: #fff;
  text-decoration: none;
}
.cert-reset {
  border: 1px solid rgba(22, 98, 105, 0.28);
  background: #fff;
  color: var(--teal-deep);
}
.cert-reset:hover {
  border-color: var(--teal);
  text-decoration: none;
}
.cert-link {
  border: 0;
  background: transparent;
  color: #6a7f86;
  min-width: auto;
  padding: 0 8px;
}
.cert-link:hover {
  color: var(--teal-deep);
  text-decoration: none;
}
.cert-foot {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  color: #7a9097;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.cert-foot > div {
  white-space: nowrap;
}
.cert-foot a { color: inherit; }

/* 宽屏：须知 + 表单左右分栏，更舒展 */
@media (min-width: 980px) {
  .cert-shell { width: min(1080px, calc(100% - 48px)); }
  .cert-shell--wide { width: min(1220px, calc(100% - 48px)); }
  .cert-board-body {
    grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
    gap: 20px;
    align-items: stretch;
  }
  .cert-notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 18px;
  }
  .cert-row {
    grid-template-columns: 118px minmax(0, 1fr);
    margin: 0 20px;
  }
  .cert-masthead h1 { letter-spacing: 0.18em; }
}
@media (min-width: 1100px) {
  .home-shell--entry { width: min(1080px, calc(100% - 48px)); }
  .home-entry { min-height: 230px; padding: 32px 28px 24px; }
  .home-entry strong { font-size: 1.75rem; }
}
@media (min-width: 1400px) {
  .cert-shell { width: min(1160px, calc(100% - 64px)); }
  .cert-shell--wide { width: min(1280px, calc(100% - 64px)); }
  .home-shell--entry { width: min(1160px, calc(100% - 64px)); }
}

/* 验证报告：结果区 */
.page-report .cert-query-title {
  background: linear-gradient(180deg, #6f5324, #5a4218);
}
.report-result {
  margin-top: 18px;
  border: 1px solid rgba(15, 79, 85, 0.2);
  background: #fbfcfd;
}
.report-result-title {
  padding: 11px 14px;
  background: linear-gradient(180deg, #1a717a, var(--teal-deep));
  color: #fff;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.18em;
}
.report-result-meta {
  margin: 0;
  padding: 12px 16px 0;
  font-size: 13px;
  color: #5a7078;
}
.report-result-msg {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  font-size: 14px;
  color: #5a7078;
}
.report-result-msg--error { color: var(--danger); }
.report-result-msg--ok {
  color: #0b5cab;
  background: #e8f3ff;
  font-weight: 600;
  border-bottom: 1px solid #c5e1ff;
}
.report-result {
  scroll-margin-top: 16px;
}
.report-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 16px;
}
.report-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.report-table th,
.report-table td {
  border: 1px solid #d5e0e3;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.report-table th {
  background: #eef5f6;
  color: var(--teal-deep);
  font-weight: 600;
  white-space: nowrap;
}
/* 查询命中记录：亮蓝底，醒目 */
.report-table tbody tr {
  background: linear-gradient(180deg, #e8f3ff 0%, #d6ebff 100%);
}
.report-table tbody td {
  color: #0b3a66;
  font-weight: 600;
  border-color: #9fc4ef;
}
.report-table tbody tr:nth-child(even) {
  background: linear-gradient(180deg, #dceeff 0%, #c5e1ff 100%);
}
.report-table tbody tr:hover td {
  background: #b3d4ff;
  color: #062a4d;
}
.report-table tbody td:first-child {
  color: #0b5cab;
  font-weight: 700;
}
.report-table a {
  color: #0b5cab;
  text-decoration: none;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(11, 92, 171, 0.12);
}
.report-table a:hover {
  text-decoration: none;
  background: #0b5cab;
  color: #fff;
}
.report-muted { color: #6b8499; font-weight: 500; }

/* 平板 / 手机 */
@media (max-width: 979px) {
  .cert-board-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cert-shell,
  .cert-shell--wide { width: calc(100% - 20px); }
  .cert-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-nav {
    width: 100%;
  }
  .home-nav a {
    flex: 1;
    text-align: center;
  }
  .cert-masthead h1 {
    letter-spacing: 0.06em;
    line-height: 1.35;
  }
  .cert-masthead-en {
    letter-spacing: 0.06em;
    word-break: break-word;
  }
  .cert-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 12px;
    padding: 12px 0;
  }
  .cert-label { text-align: left; }
  .cert-actions {
    padding: 14px 12px 16px;
    gap: 8px;
  }
  .cert-submit,
  .cert-reset {
    flex: 1 1 120px;
  }
  .report-table { font-size: 12px; }
  .report-table th,
  .report-table td { padding: 8px 10px; }
}
@media (max-width: 420px) {
  .cert-board { padding: 4px; }
  .cert-board-frame { inset: 4px; }
  .cert-query-title,
  .report-result-title { letter-spacing: 0.1em; font-size: 14px; }
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #12384a;
  color: #f4f8fa;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}
.demo-banner a { color: #9fd7e2; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.wrap-wide {
  width: min(1180px, calc(100% - 24px));
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1d8fa3, var(--teal-deep));
  border: 2px solid #d8b56a;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}
.brand p {
  margin: 4px 0 0;
  color: #4d6672;
  font-size: 13px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}
.nav a:hover,
.nav a.is-active {
  background: rgba(15, 106, 122, 0.12);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: min(68vh, 560px);
  margin: 18px 0 28px;
  padding: clamp(28px, 5vw, 56px);
  color: #f7fbfd;
  background:
    linear-gradient(115deg, rgba(8, 42, 54, 0.88) 0%, rgba(12, 74, 88, 0.72) 48%, rgba(18, 56, 74, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60h120M60 0v120' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #0a4d5c, #164b63 55%, #2a6170);
  box-shadow: var(--shadow);
  display: grid;
  align-content: end;
  gap: 18px;
  animation: rise 0.7s ease both;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 45%;
  height: 70%;
  background: radial-gradient(circle, rgba(216, 181, 106, 0.28), transparent 62%);
  pointer-events: none;
}
.hero-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8b56a;
}
.hero h2 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
}
.hero-lead {
  margin: 0;
  max-width: 42ch;
  color: #d7e7ec;
  font-size: 1.05rem;
  line-height: 1.7;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(180deg, #1a8b9c, var(--teal-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(10, 77, 92, 0.28);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid var(--line);
}
.btn-warn {
  background: #8a4e10;
  color: #fff;
}
.panel {
  background: rgba(251, 249, 244, 0.92);
  border: 1px solid rgba(212, 221, 226, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 22px;
  animation: rise 0.55s ease both;
}
.panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.panel .hint {
  margin: 0 0 18px;
  color: #5a707a;
  font-size: 14px;
  line-height: 1.6;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.entry-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 24px;
  min-height: 220px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.entry-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  box-shadow: 0 22px 40px rgba(12, 45, 63, 0.2);
}
.entry-card.cert {
  background:
    linear-gradient(145deg, rgba(10, 77, 92, 0.92), rgba(20, 90, 108, 0.78)),
    linear-gradient(160deg, #0f6a7a, #1f4f63);
}
.entry-card.report {
  background:
    linear-gradient(145deg, rgba(88, 54, 18, 0.88), rgba(122, 78, 28, 0.72)),
    linear-gradient(160deg, #8a5a22, #5e3a14);
}
.entry-card span {
  font-size: 12px;
  letter-spacing: 0.14em;
  opacity: 0.85;
}
.entry-card strong {
  font-family: var(--font-serif);
  font-size: 1.7rem;
}
.entry-card p {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #40606c;
}
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
}
.field input:focus {
  outline: 2px solid rgba(15, 106, 122, 0.28);
  border-color: var(--teal);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.msg {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.msg-error { background: #f8e8e8; color: var(--danger); }
.msg-empty { background: #f3efe6; color: #6a5a3a; }
.msg-ok { background: #e8f5ee; color: var(--ok); }

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
th { color: #4d6672; font-weight: 600; }
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}
.badge-ok { background: #e5f5ec; color: var(--ok); }
.badge-muted { background: #eef1f3; color: #667780; }

.cert-stage {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.cert-stage-landscape {
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

/* ========== 横版证书（样本：青绿+香槟金 A4 横版） ========== */
.zhengshu_box.zhengshu_box--landscape.cert-outer {
  --cert-teal: #166269;
  --cert-teal-light: #2B8A95;
  --cert-gold: #C7A25A;
  --cert-text: #2D3748;
  --cert-muted: #64748B;
  position: relative;
  width: 297mm;
  height: 210mm;
  max-width: none;
  min-height: 0 !important;
  aspect-ratio: auto;
  padding: 10mm;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  border: 0;
  flex: none;
  color: var(--cert-text);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  background-color: #E2E8F0;
  background-image: radial-gradient(circle, rgba(22, 98, 105, 0.05) 1px, transparent 1.5px);
  background-size: 8px 8px;
  box-shadow: 0 18px 40px rgba(12, 45, 63, 0.22);
  transform-origin: top center;
}

.zhengshu_box--landscape .cert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #FCFDFD;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(22, 98, 105, 0.03) 4px, rgba(22, 98, 105, 0.03) 5px),
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(199, 162, 90, 0.03) 4px, rgba(199, 162, 90, 0.03) 5px);
  box-shadow: inset 0 0 15px rgba(22, 98, 105, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zhengshu_box--landscape .frame-outer {
  position: absolute;
  inset: 6mm;
  border: 2mm solid var(--cert-teal);
  z-index: 1;
  pointer-events: none;
}
.zhengshu_box--landscape .frame-inner {
  position: absolute;
  inset: 8.5mm;
  border: 0.4mm solid var(--cert-gold);
  z-index: 1;
  pointer-events: none;
}
.zhengshu_box--landscape .frame-line {
  position: absolute;
  inset: 10.5mm;
  border: 0.2mm solid rgba(22, 98, 105, 0.2);
  z-index: 1;
  pointer-events: none;
}

.zhengshu_box--landscape .corner-deco {
  position: absolute;
  width: 14mm;
  height: 14mm;
  z-index: 2;
  pointer-events: none;
}
.zhengshu_box--landscape .corner-deco.tl { top: 6mm; left: 6mm; border-top: 3mm solid var(--cert-teal); border-left: 3mm solid var(--cert-teal); }
.zhengshu_box--landscape .corner-deco.tr { top: 6mm; right: 6mm; border-top: 3mm solid var(--cert-teal); border-right: 3mm solid var(--cert-teal); }
.zhengshu_box--landscape .corner-deco.bl { bottom: 6mm; left: 6mm; border-bottom: 3mm solid var(--cert-teal); border-left: 3mm solid var(--cert-teal); }
.zhengshu_box--landscape .corner-deco.br { bottom: 6mm; right: 6mm; border-bottom: 3mm solid var(--cert-teal); border-right: 3mm solid var(--cert-teal); }
.zhengshu_box--landscape .corner-deco::after {
  content: "";
  position: absolute;
  width: 4mm;
  height: 4mm;
  background: var(--cert-gold);
}
.zhengshu_box--landscape .corner-deco.tl::after { top: 0; left: 0; }
.zhengshu_box--landscape .corner-deco.tr::after { top: 0; right: 0; }
.zhengshu_box--landscape .corner-deco.bl::after { bottom: 0; left: 0; }
.zhengshu_box--landscape .corner-deco.br::after { bottom: 0; right: 0; }

.zhengshu_box--landscape .cert-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 18mm 24mm 18mm;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.zhengshu_box--landscape .cert-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10mm;
}
.zhengshu_box--landscape .company-name {
  font-size: 5.5mm;
  color: var(--cert-teal);
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 2mm;
}
.zhengshu_box--landscape .title {
  text-align: center;
  font-family: inherit;
  font-size: 28mm;
  font-weight: bold;
  color: var(--cert-teal);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin: 0 0 2mm;
  line-height: 1.1;
}
.zhengshu_box--landscape .subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2mm;
  color: var(--cert-gold);
  letter-spacing: 0.5em;
  font-weight: bold;
  margin-top: 0;
}
.zhengshu_box--landscape .subtitle::after {
  content: "◆";
  display: block;
  width: min(168mm, 88%);
  margin: 4mm auto 0;
  font-size: 2.8mm;
  line-height: 1;
  color: var(--cert-gold);
  letter-spacing: 0;
  text-indent: 0;
  background-image:
    linear-gradient(var(--cert-teal), var(--cert-teal)),
    linear-gradient(var(--cert-gold), var(--cert-gold)),
    linear-gradient(var(--cert-teal), var(--cert-teal)),
    linear-gradient(var(--cert-gold), var(--cert-gold));
  background-size:
    calc(50% - 5mm) 0.6mm,
    calc(50% - 5mm) 0.28mm,
    calc(50% - 5mm) 0.6mm,
    calc(50% - 5mm) 0.28mm;
  background-position:
    left center,
    left calc(50% + 0.9mm),
    right center,
    right calc(50% + 0.9mm);
  background-repeat: no-repeat;
}

.zhengshu_box--landscape .main-body {
  flex: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 5mm;
}
.zhengshu_box--landscape .text-area {
  display: block;
  overflow: hidden;
  padding-right: 0;
  min-width: 0;
}
.zhengshu_box--landscape .info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4mm 10mm;
  font-size: 4.2mm;
  margin-bottom: 5mm;
  padding-bottom: 4mm;
  border-bottom: 0.2mm dashed rgba(22, 98, 105, 0.2);
}
.zhengshu_box--landscape .info-item {
  display: flex;
  align-items: baseline;
}
.zhengshu_box--landscape .info-item--full { width: 100%; }
.zhengshu_box--landscape .info-item .label { color: var(--cert-muted); margin-right: 2mm; }
.zhengshu_box--landscape .info-item .val {
  color: var(--cert-teal);
  font-weight: bold;
  font-family: "Times New Roman", serif;
  font-size: 4.8mm;
  word-break: break-all;
}
.zhengshu_box--landscape .desc {
  font-size: 4.5mm;
  line-height: 2.2;
  text-align: justify;
  text-indent: 2em;
  color: var(--cert-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}
.zhengshu_box--landscape .desc strong {
  color: var(--cert-teal);
  font-size: 5mm;
  border-bottom: 0.4mm solid var(--cert-gold);
  padding-bottom: 0.5mm;
}

.zhengshu_box--landscape .photo-wrapper {
  float: right;
  display: block;
  width: 35mm;
  padding: 1.2mm;
  margin: 0 0 2mm 8mm;
  background: #FFF;
  border: 0.4mm solid var(--cert-teal);
  box-shadow: 0 4px 15px rgba(22, 98, 105, 0.08);
  position: relative;
  box-sizing: border-box;
}
.zhengshu_box--landscape .photo-wrapper::before {
  content: "";
  position: absolute;
  inset: 0.8mm;
  border: 0.2mm solid var(--cert-gold);
  pointer-events: none;
  z-index: 2;
}
.zhengshu_box--landscape .photo-inner {
  width: 32.6mm;
  height: 43.5mm;
  background: #F4F6F9;
  display: block;
  overflow: hidden;
  color: var(--cert-muted);
  font-size: 3mm;
  text-align: center;
  line-height: 0;
  box-sizing: border-box;
}
.zhengshu_box--landscape .photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border: 0;
  transform: scale(1.18);
  transform-origin: center top;
}

.zhengshu_box--landscape .cert-footer {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  margin-bottom: 4mm;
  padding-bottom: 2mm;
}
.zhengshu_box--landscape .footer-left {
  display: flex;
  align-items: center;
  gap: 4mm;
}
.zhengshu_box--landscape .qr-box {
  width: 22mm;
  height: 22mm;
  background: #fff;
  padding: 0.8mm;
  border: 0.3mm solid rgba(22, 98, 105, 0.3);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}
.zhengshu_box--landscape .qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}
.zhengshu_box--landscape .qr-info h4 {
  font-size: 4.6mm;
  color: var(--cert-teal);
  font-weight: bold;
  margin: 0 0 1.2mm;
}
.zhengshu_box--landscape .qr-info p {
  font-size: 3.8mm;
  color: var(--cert-muted);
  font-family: "Times New Roman", serif;
  margin: 0;
}

.zhengshu_box--landscape .footer-right {
  display: block;
  font-size: 4.6mm;
  line-height: 1.95;
  padding-right: 6mm;
  padding-bottom: 2mm;
  position: relative;
  text-align: left;
  margin-bottom: 0;
  max-width: none;
  flex: 0 0 auto;
  box-sizing: border-box;
}
.zhengshu_box--landscape .footer-right .row {
  display: block;
  white-space: nowrap;
  position: relative;
  line-height: 1.95;
}
.zhengshu_box--landscape .footer-right .label {
  color: var(--cert-muted);
  position: relative;
  display: inline-block;
  width: 4.2em;
  padding-right: 1em;
  margin-right: 1mm;
  vertical-align: baseline;
  text-align: justify;
  text-align-last: justify;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: content-box;
}
.zhengshu_box--landscape .footer-right .label::after {
  content: "：";
  position: absolute;
  right: 0;
  top: 0;
  letter-spacing: 0;
  text-align: left;
}
.zhengshu_box--landscape .footer-right .val {
  color: var(--cert-text);
  font-family: "Songti SC", "SimSun", serif;
  font-weight: bold;
  white-space: nowrap;
}

.zhengshu_box--landscape .zhang {
  position: absolute;
  top: -8mm;
  left: 36mm;
  right: auto;
  bottom: auto;
  width: 42mm;
  height: 42mm;
  object-fit: contain;
  transform: rotate(-8deg);
  opacity: 0.9;
  pointer-events: none;
  z-index: 5;
  margin: 0;
}

/* 缩放加在舞台容器；手机端由 JS 按宽度自适应，保证整张证书可见 */
.cert-stage-landscape {
  width: 100%;
  overflow: visible;
}
.cert-stage-landscape .cert-scale {
  display: block;
  transform-origin: top left;
  margin: 0 auto;
  width: 297mm;
}
.cert-fit-tip {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #0b5cab;
  background: #e8f3ff;
  border: 1px solid #c5e1ff;
  border-radius: 8px;
  text-align: center;
}
@media screen and (max-width: 720px) {
  .cert-fit-tip { display: block; }
  .cert-stage-landscape {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .wrap-wide { padding-left: 8px; padding-right: 8px; }
  .page-cert-result .panel { padding: 10px; }
}
.zhengshu_box.zhengshu_box--landscape.cert-outer.is-capturing {
  zoom: 1 !important;
  transform: none !important;
}

.zhengshu_box {
  width: 458px;
  max-width: 100%;
  min-height: 650px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2)),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(15,106,122,0.05) 28px),
    linear-gradient(180deg, #f7f1e4, #efe4cf);
  border: 10px solid #c9a45a;
  box-shadow: inset 0 0 0 2px #8d6b2f, var(--shadow);
  padding: 36px 28px 28px;
}
.zhengshu_box .title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin: 28px 0 36px;
}
.zhengshu_box .photo {
  float: right;
  width: 84px;
  height: 110px;
  margin: 0 8px 12px 12px;
  background: #d9e2e6;
  border: 1px solid #b7c4ca;
  display: grid;
  place-items: center;
  color: #6a7d86;
  font-size: 12px;
}
.zhengshu_box p {
  margin: 8px 0;
  line-height: 1.7;
  font-size: 15px;
}
.zhengshu_box .meta {
  margin-top: 36px;
  padding-left: 28%;
  position: relative;
}
.zhengshu_box .seal {
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(176, 48, 48, 0.75);
  color: rgba(176, 48, 48, 0.8);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  transform: rotate(-12deg);
  background: rgba(255, 255, 255, 0.2);
}
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 180px;
}
.cert-stage-landscape .cert-actions {
  flex-direction: row;
  margin-top: 14px;
}

.site-footer {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  color: #5a707a;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.site-footer > div {
  white-space: nowrap;
}
.site-footer a { color: inherit; }

/* Admin preview */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 36px);
  background: #edf2f4;
}
.admin-side {
  background: #12384a;
  color: #e7f1f4;
  padding: 22px 14px;
}
.admin-side .logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 22px;
  padding: 0 8px;
}
.admin-side button,
.admin-side a.side-link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 12px 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.admin-side button.is-active,
.admin-side button:hover,
.admin-side a.side-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.admin-main { padding: 22px; }
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; flex-wrap: wrap; gap: 6px; }
  .admin-side .logo { width: 100%; }
  .admin-side button,
  .admin-side a.side-link { width: auto; }
  .zhengshu_box { min-height: 0; padding: 24px 18px; }
  .zhengshu_box .title { font-size: 1.5rem; letter-spacing: 0.12em; margin: 12px 0 24px; }
  .zhengshu_box .meta { padding-left: 0; }
}

/* 横版证书最终覆盖：防止竖版 .zhengshu_box 规则抢优先级 */
.zhengshu_box.zhengshu_box--landscape.cert-outer {
  width: 297mm !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 210mm !important;
  padding: 10mm !important;
  border: 0 !important;
  box-sizing: border-box;
}
.zhengshu_box.zhengshu_box--landscape .title {
  text-align: center;
  font-family: inherit;
  font-size: 16mm !important;
  font-weight: bold;
  color: var(--cert-teal, #166269);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  margin: 0 0 2mm !important;
  line-height: 1.1;
}
.zhengshu_box.zhengshu_box--landscape .main-body {
  display: block !important;
  overflow: hidden;
  width: 100%;
}
.zhengshu_box.zhengshu_box--landscape .text-area {
  display: block !important;
  overflow: hidden;
  width: auto;
  padding-right: 0;
}
.zhengshu_box.zhengshu_box--landscape .photo-wrapper {
  float: right !important;
  display: block !important;
  width: 35mm;
}
.zhengshu_box.zhengshu_box--landscape .footer-right {
  max-width: none !important;
  padding-right: 6mm;
}
.zhengshu_box.zhengshu_box--landscape .footer-right .row {
  display: block !important;
  white-space: nowrap !important;
  max-width: none;
}
.zhengshu_box.zhengshu_box--landscape .footer-right .label {
  position: relative;
  display: inline-block;
  width: 4.2em;
  padding-right: 1em;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  box-sizing: content-box;
}
.zhengshu_box.zhengshu_box--landscape .footer-right .label::after {
  content: "：";
  position: absolute;
  right: 0;
  top: 0;
  letter-spacing: 0;
}
.zhengshu_box.zhengshu_box--landscape .photo-wrapper {
  width: 35mm;
  padding: 1.2mm !important;
}
.zhengshu_box.zhengshu_box--landscape .photo-inner {
  position: relative;
  width: 32.6mm;
  height: 43.5mm;
  line-height: 0;
}
.zhengshu_box.zhengshu_box--landscape .photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.zhengshu_box.zhengshu_box--landscape .zhang {
  position: absolute;
  top: -8mm;
  left: 36mm;
  right: auto;
  bottom: auto;
  width: 42mm;
  height: 42mm;
}

/* 打印：A4 横向，只输出证书本体 */
@media print {
  @page {
    size: A4 landscape;
    margin: 0;
  }
  html, body {
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  body.page-cert-result * {
    visibility: hidden !important;
  }
  body.page-cert-result #content,
  body.page-cert-result #content * {
    visibility: visible !important;
  }
  body.page-cert-result .site-header,
  body.page-cert-result .site-footer,
  body.page-cert-result .cert-actions,
  body.page-cert-result .form-actions {
    display: none !important;
  }
  body.page-cert-result .wrap,
  body.page-cert-result .panel,
  body.page-cert-result .cert-stage-landscape,
  body.page-cert-result .cert-scale {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
  }
  body.page-cert-result #content.zhengshu_box.zhengshu_box--landscape.cert-outer {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    margin: 0 !important;
    transform: none !important;
    zoom: 1 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
