/* ============================================================
 * 南沙港湾议程助手 · A4 议程表样式（像素级复刻第 326 次例会印刷样张）
 * A4 @96dpi = 794×1123px。非必要不碰本文件，改动会直接影响导出 PDF。
 * 样张特征：纯黑白、宋体、粗外框+细网格、灰底分区行、担当人名加粗。
 * ============================================================ */
.a4-viewport { overflow-x: auto; background: var(--navy); padding: 12px 0; }

.a4 {
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  /* 样张为宋体印刷件；英文走 Times 系 */
  font-family: SimSun, 'Songti SC', 'Noto Serif CJK SC', 'Times New Roman', serif;
  padding: 20px 24px 12px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
  font-size: 10.5px;
  line-height: 1.3;
}
.a4 *, .a4 *::before, .a4 *::after { box-sizing: border-box; }

/* ---------- 头部（样张：四行居中，无框无底色） ---------- */
.a4 .doc-head { text-align: center; margin-bottom: 5px; line-height: 1.25; }
.a4 .doc-head .en-line {
  font-family: 'Times New Roman', SimSun, serif;
  font-size: 11px;
  letter-spacing: 1px;
}
.a4 .doc-head .doc-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 1px 0;
}
.a4 .doc-head .slogan-en {
  font-family: 'Times New Roman', SimSun, serif;
  font-style: italic;
  font-size: 11px;
}
.a4 .doc-head .extra-meta { font-size: 11px; margin-top: 2px; }

/* ---------- 议程表（粗外框 + 细网格） ---------- */
.a4 .table-frame { border: 2px solid #000; }
.a4 table.agenda { border-collapse: collapse; width: 100%; table-layout: fixed; }
.a4 table.agenda col.c-time { width: 52px; }
.a4 table.agenda col.c-dur { width: 40px; }
.a4 table.agenda col.c-person { width: 84px; }
.a4 table.agenda col.c-note { width: 280px; }
.a4 table.agenda th, .a4 table.agenda td {
  border: 1px solid #000;
  padding: 0.5px 4px;
  font-size: 10px;
  line-height: 1.22;
  vertical-align: middle;
  word-break: break-all;
}
/* 表格底部信息行（例会时间/入会条件/俱乐部使命）：长文案小字号减行高 */
.a4 table.agenda tr.info-row td { font-size: 9px; line-height: 1.2; }
.a4 table.agenda thead th {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  padding: 2px 5px;
}
.a4 table.agenda td.t-time, .a4 table.agenda td.t-dur {
  text-align: center;
  white-space: nowrap;
}
.a4 table.agenda td.t-person { text-align: center; font-weight: 700; }
.a4 table.agenda td.t-note { text-align: left; }
.a4 table.agenda td.t-title { text-align: left; }
.a4 table.agenda td .detail-line { font-size: 10px; }

/* 分区行：灰底、加粗、左对齐（样张同款） */
.a4 tr.seg-row td {
  background: #dcdcdc;
  font-weight: 700;
  text-align: left;
  font-size: 11px;
  padding: 1.5px 6px;
}

/* ---------- 页脚块 ---------- */
.a4 .eval-box {
  border: 1px solid #000;
  padding: 3px 8px;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
  text-align: justify;
}

/* ---------- 二维码区 ---------- */
.a4 .qr-section { margin-top: 6px; line-height: 1.3; }
.a4 .qr-sec-title { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.a4 .qr-grid { display: flex; justify-content: space-between; gap: 8px; }
.a4 .qr-cell { flex: 1; text-align: center; }
.a4 .qr-cell .qr-label { font-size: 10px; margin-bottom: 1px; }
.a4 .qr-cell .qr-img, .a4 .qr-cell .qr-empty {
  width: 48px; height: 48px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.a4 .qr-cell .qr-img img { width: 48px; height: 48px; display: block; }
.a4 .qr-cell .qr-empty { border: 1px dashed #999; color: #999; font-size: 9px; }
.a4 .qr-cell .qr-cap { font-size: 9px; margin-top: 1px; line-height: 1.25; }
.a4 .qr-cell .qr-cap b { font-size: 9.5px; }
.a4 .qr-bottom { display: flex; justify-content: space-around; margin-top: 5px; }
.a4 .qr-bottom .qr-cell { flex: 0 0 130px; }
.a4 .qr-bottom .qr-img, .a4 .qr-bottom .qr-empty { width: 62px; height: 62px; }
.a4 .qr-bottom .qr-img img { width: 62px; height: 62px; }

/* ---------- 打印保真 ---------- */
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .a4, .a4 * { visibility: visible; }
  .a4 {
    position: absolute; left: 0; top: 0;
    margin: 0; box-shadow: none;
    width: 210mm; min-height: auto;
  }
  @page { size: A4 portrait; margin: 0; }
}
