/* 速查卡：A4 竖版一页，可直接打印或导出 PDF */
:root {
  --brand: #fb7b10;
  --brand-ink: #c25a00;
  --brand-soft: #fff1e6;
  --brand-line: #ffd9b8;
  --ink: #2a2420;
  --muted: #8b8178;
  --line: #ebe4dc;
  --warm: #faf7f3;
  --warn: #b45309;
  --warn-soft: #fff7e6;
}
@page {
  size: A4;
  margin: 0;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #e9e4de;
  color: var(--ink);
  font-family: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.sheet {
  width: 210mm;
  height: 297mm;
  margin: 12mm auto;
  padding: 12mm 13mm 10mm;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 30px rgba(42, 36, 32, 0.12);
  overflow: hidden;
}
@media print {
  html,
  body {
    background: #fff;
  }
  .sheet {
    margin: 0;
    box-shadow: none;
  }
  .no-print {
    display: none !important;
  }
}

/* 顶部 */
.head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5mm;
  border-bottom: 2px solid var(--ink);
}
.head img {
  width: 13mm;
  height: 13mm;
  border-radius: 3mm;
}
.head .brand {
  font-size: 10pt;
  color: var(--muted);
  letter-spacing: 0.5px;
}
.head h1 {
  margin: 1mm 0 0;
  font-size: 22pt;
  line-height: 1.15;
  letter-spacing: 1px;
}
.head .who {
  margin-left: auto;
  text-align: right;
  font-size: 9.5pt;
  color: var(--muted);
  line-height: 1.5;
}
.head .who b {
  display: inline-block;
  padding: 1mm 3mm;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 10pt;
}

/* 一天的顺序 */
.flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5mm;
  margin: 4.5mm 0 1mm;
  font-size: 10pt;
}
.flow .label {
  color: var(--muted);
  margin-right: 1mm;
}
.flow span.step {
  padding: 1mm 2.6mm;
  border-radius: 99px;
  background: var(--warm);
  border: 1px solid var(--line);
  font-weight: 600;
}
.flow span.arrow {
  color: var(--brand);
  font-weight: 700;
}

/* 主体：两列卡片 */
.grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
  margin-top: 4mm;
  align-content: start;
}
.blk {
  border: 1px solid var(--line);
  border-radius: 3mm;
  padding: 3.4mm 4mm 3.2mm;
  break-inside: avoid;
}
.blk.wide {
  grid-column: 1 / -1;
}
.blk h2 {
  display: flex;
  align-items: center;
  gap: 2mm;
  margin: 0 0 2mm;
  font-size: 12.5pt;
}
.blk h2 .n {
  flex: none;
  width: 6mm;
  height: 6mm;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 9.5pt;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blk h2 small {
  margin-left: auto;
  font-size: 8.5pt;
  font-weight: 400;
  color: var(--muted);
}
.blk ol,
.blk ul {
  margin: 0;
  padding-left: 4.6mm;
  font-size: 9.6pt;
  line-height: 1.55;
}
.blk li + li {
  margin-top: 0.8mm;
}
.blk p {
  margin: 0;
  font-size: 9.6pt;
  line-height: 1.55;
}
.k {
  display: inline-block;
  padding: 0 1.4mm;
  margin: 0 0.4mm;
  border-radius: 1.2mm;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 9pt;
  line-height: 1.5;
  white-space: nowrap;
}
.blk .tip {
  margin-top: 1.6mm;
  padding: 1.4mm 2.4mm;
  border-radius: 2mm;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 8.8pt;
  line-height: 1.5;
}

/* 表格（看数卡用） */
.blk table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.2pt;
  line-height: 1.45;
}
.blk th,
.blk td {
  text-align: left;
  vertical-align: top;
  padding: 1.2mm 1.6mm;
  border-bottom: 1px solid var(--line);
}
.blk th {
  color: var(--muted);
  font-weight: 500;
  font-size: 8.6pt;
}
.blk td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

/* 底部 */
.foot {
  display: flex;
  align-items: center;
  gap: 4mm;
  margin-top: 4mm;
  padding-top: 4mm;
  border-top: 1px dashed var(--line);
}
.foot img {
  width: 21mm;
  height: 21mm;
}
.foot .t1 {
  font-size: 11pt;
  font-weight: 700;
}
.foot .t2 {
  margin-top: 1mm;
  font-size: 9pt;
  color: var(--muted);
  line-height: 1.5;
}
.foot .ver {
  margin-left: auto;
  align-self: flex-end;
  font-size: 8pt;
  color: var(--muted);
}

/* 内容多的卡：瀑布流两栏 + 紧凑字号 */
.grid.masonry {
  display: block;
  column-count: 2;
  column-gap: 4mm;
}
.grid.masonry .blk {
  display: block;
  margin-bottom: 3.2mm;
}
.sheet.dense .head {
  padding-bottom: 4mm;
}
.sheet.dense .flow {
  margin-top: 3.5mm;
}
.sheet.dense .grid {
  margin-top: 3.5mm;
}
.sheet.dense .blk {
  padding: 2.7mm 3.4mm 2.5mm;
}
.sheet.dense .blk h2 {
  font-size: 11.5pt;
  margin-bottom: 1.3mm;
}
.sheet.dense .blk h2 .n {
  width: 5.4mm;
  height: 5.4mm;
  font-size: 8.6pt;
}
.sheet.dense .blk ol,
.sheet.dense .blk ul,
.sheet.dense .blk p {
  font-size: 9pt;
  line-height: 1.5;
}
.sheet.dense .blk li + li {
  margin-top: 0.5mm;
}
.sheet.dense .k {
  font-size: 8.6pt;
}
.sheet.dense .blk .tip {
  margin-top: 1.2mm;
  padding: 1.1mm 2mm;
  font-size: 8.3pt;
}
.sheet.dense .blk table {
  font-size: 8.8pt;
}
.sheet.dense .blk th,
.sheet.dense .blk td {
  padding: 0.9mm 1.4mm;
}
.sheet.dense .foot {
  margin-top: 3mm;
  padding-top: 3mm;
}
.sheet.dense .foot img {
  width: 19mm;
  height: 19mm;
}

/* 屏幕上看时的打印按钮 */
.toolbar {
  position: fixed;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}
.toolbar a,
.toolbar button {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.toolbar button {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
