/* 城堡医学送检云 公开页面
   只用本站资源；不写行内样式（内容安全策略不允许）。
   兼容较老的 Chromium（360、QQ 浏览器的极速模式）：不用 flex 的 gap、clamp、:has、嵌套写法。 */

@font-face {
  font-family: "SJY Serif";
  src: url("/assets/fonts/sjy-serif-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --band: #eef2f6;
  --ink: #1f3047;
  --ink-hover: #2c4262;
  --muted: #566475;
  --line: #d6dee6;
  --line-strong: #c4cfdb;
  --stamp: #3d47a8;
  --redact: #dde4ec;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }

.serif {
  font-family: "SJY Serif", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  font-weight: 700;
}

a { color: var(--stamp); }
a:focus { outline: 3px solid var(--stamp); outline-offset: 3px; }
a:focus:not(:focus-visible) { outline: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 10;
}
.skip:focus { left: 16px; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶栏 */

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { display: block; width: 28px; height: 28px; margin-right: 10px; }
.brand-name { font-size: 19px; letter-spacing: 0.04em; line-height: 1; }

.site-nav { display: flex; align-items: center; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  margin-right: 28px;
}
.nav-link:hover { color: var(--stamp); }

/* 按钮 */

.btn {
  display: inline-block;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.4;
  padding: 12px 26px;
  text-decoration: none;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: transparent; border-color: var(--ink); }
.btn-small { font-size: 14px; padding: 7px 16px; }

/* 首屏 */

.hero { padding: 72px 0 96px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-column-gap: 64px;
  column-gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.32;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
  max-width: 30em;
  margin-bottom: 32px;
}

.actions .btn { margin-right: 12px; margin-bottom: 8px; }

.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* 送检单示意：页面上唯一的装饰 */

.slip {
  justify-self: center;
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 28px 22px;
  position: relative;
  transform: rotate(-1.5deg);
  box-shadow: 0 1px 0 var(--line), 0 22px 44px -28px rgba(31, 48, 71, 0.5);
}
.slip::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: -2px;
  border-top: 2px dashed var(--line-strong);
}

.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.slip-title { font-size: 22px; letter-spacing: 0.3em; line-height: 1.2; }
.slip-no { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }

.barcode { display: block; width: 100%; height: 56px; margin-bottom: 18px; fill: var(--ink); }

.slip-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-row-gap: 8px;
  row-gap: 8px;
  grid-column-gap: 16px;
  column-gap: 16px;
  align-items: center;
  font-size: 13px;
}
.slip-fields dt { color: var(--muted); }
.redact {
  display: block;
  height: 10px;
  width: 8em;
  border-radius: 2px;
  background: var(--redact);
}
.redact-short { width: 6em; }

.stamps {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.stamp {
  --r: 0deg;
  color: var(--stamp);
  border: 2px solid var(--stamp);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--stamp);
  margin: 0 10px 10px 0;
  padding: 7px 11px 6px;
  text-align: center;
  line-height: 1.25;
  opacity: 0.9;
  transform: rotate(var(--r));
  animation: press 0.34s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.stamp-word { display: block; font-size: 17px; letter-spacing: 0.12em; }
.stamp-time { display: block; font-size: 11px; letter-spacing: 0.04em; margin-top: 3px; }

.s1 { --r: -6deg; animation-delay: 0.5s; }
.s2 { --r: 3deg; animation-delay: 1s; }
.s3 { --r: -2deg; animation-delay: 1.5s; }

@keyframes press {
  0% { opacity: 0; transform: rotate(var(--r)) scale(1.35); }
  60% { opacity: 0.95; transform: rotate(var(--r)) scale(0.97); }
  100% { opacity: 0.9; transform: rotate(var(--r)) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .stamp { animation: none; }
}

/* 各段 */

.band { background: var(--band); }

.section { padding: 80px 0; }

.section-title {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column-gap: 32px;
  column-gap: 32px;
}
.steps li { position: relative; }
/* 每一步到下一步之间的连线；最后一步没有 */
.steps li::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 48px;
  right: -24px;
  border-top: 2px solid var(--line-strong);
}
.steps li:last-child::after { display: none; }
.step-no {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  background: var(--band);
  color: var(--stamp);
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  margin-bottom: 18px;
}
.steps h3, .why-item h3 { font-size: 18px; line-height: 1.5; margin-bottom: 8px; }
.steps p, .why-item p { color: var(--muted); font-size: 15px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column-gap: 40px;
  column-gap: 40px;
}
.why-item { border-top: 3px solid var(--ink); padding-top: 18px; }

.who-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-column-gap: 48px;
  column-gap: 48px;
}
.who-inner .section-title { margin-bottom: 0; }
.who-list > div { padding: 0 0 20px; }
.who-list dt { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.who-list dd { color: var(--muted); }

.contact-list { margin-top: 28px; }
.contact-list > div { display: flex; align-items: baseline; margin-bottom: 10px; }
.contact-list dt { color: var(--muted); width: 4em; font-size: 15px; }
.contact-list dd { font-size: 20px; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--stamp); text-decoration: underline; }

/* 登录占位页、404 */

.page { padding: 96px 0 128px; }
.page h1 { font-size: 36px; line-height: 1.35; margin-bottom: 20px; }
.page p { color: var(--muted); max-width: 32em; margin-bottom: 12px; }
.page .btn { margin-top: 20px; }

/* 页脚：备案号在中间 */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  padding: 28px 0 36px;
  text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* 窄屏 */

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .slip { margin-top: 48px; max-width: 360px; transform: rotate(-1deg); }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; margin-bottom: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { padding-left: 60px; min-height: 40px; margin-bottom: 24px; }
  .steps li::after { top: 48px; bottom: -20px; left: 19px; right: auto; border-top: 0; border-left: 2px solid var(--line-strong); }
  .steps li:last-child { margin-bottom: 0; }
  .step-no { position: absolute; left: 0; top: 0; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item { margin-bottom: 28px; }
  .why-item:last-child { margin-bottom: 0; }
  .who-inner { grid-template-columns: minmax(0, 1fr); }
  .who-inner .section-title { margin-bottom: 24px; }
  .page { padding: 64px 0 96px; }
  .page h1 { font-size: 30px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .nav-link { display: none; }
  .brand-name { font-size: 17px; }
  .hero h1 { font-size: 30px; }
  .contact-list dd { font-size: 18px; }
}
