/* =========================================================
   病理玻片借还 - 样式
   ========================================================= */

:root {
  --primary: #0e7fc4;
  --primary-dark: #0b669f;
  --primary-light: #e6f3fb;
  --green: #1a9e6a;
  --green-light: #e4f6ee;
  --red: #e5484d;
  --red-light: #fdeaea;
  --orange: #e8871a;
  --orange-light: #fdf1e1;
  --gray: #8a94a6;
  --text: #1f2937;
  --text-2: #6b7280;
  --bg: #f2f6fb;
  --card: #ffffff;
  --line: #e6ebf2;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(22, 60, 110, 0.06);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: #dfe7f0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.app {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 30px rgba(20, 50, 90, 0.12);
}

.app.has-nav {
  padding-bottom: 74px;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.icon {
  display: inline-block;
  vertical-align: -0.16em;
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  stroke: currentColor;
}

.hidden {
  display: none !important;
}

/* ---------------- 顶部栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, var(--primary) 0%, #25a3d8 100%);
  color: #fff;
  padding: 14px 18px 12px;
  box-shadow: 0 2px 10px rgba(14, 127, 196, 0.25);
}

.topbar .title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
}

.topbar .sub {
  font-size: 12px;
  opacity: 0.88;
  margin-top: 2px;
}

.topbar .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  flex: none;
}

.topbar .spacer {
  flex: 1;
}

.topbar .right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar .chip-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- 内容区 ---------------- */

.page {
  padding: 16px 14px 24px;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.card-pad {
  padding: 14px 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title .link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 12px;
}

.section-gap {
  height: 8px;
}

/* ---------------- 首页统计 ---------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 6px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.stat-card:active {
  transform: scale(0.96);
}

.stat-card .num {
  font-size: 23px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-card.warn .num { color: var(--red); }
.stat-card.soon .num { color: var(--orange); }
.stat-card.total .num { color: var(--text); }

.stat-card .label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 3px;
}

/* ---------------- 待办提醒 ---------------- */

.reminder {
  background: linear-gradient(135deg, #fff8ef, #fff3e0);
  border: 1px solid #f7e3c0;
  border-radius: var(--radius);
  padding: 13px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.reminder.warn {
  background: linear-gradient(135deg, #fef0f0, #fde5e6);
  border-color: #f5c8ca;
}

.reminder .r-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reminder .r-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
}

.reminder .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.reminder.warn .dot {
  background: var(--red);
}

/* ---------------- 快捷入口 ---------------- */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 4px 0 2px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 0 4px;
  cursor: pointer;
}

.quick-item .q-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #35b0e0);
  box-shadow: 0 4px 10px rgba(14, 127, 196, 0.28);
}

.quick-item:nth-child(2) .q-icon {
  background: linear-gradient(135deg, #16a085, #34c98f);
  box-shadow: 0 4px 10px rgba(22, 160, 133, 0.28);
}

.quick-item:nth-child(3) .q-icon {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.28);
}

.quick-item:nth-child(4) .q-icon {
  background: linear-gradient(135deg, #e8871a, #f5b041);
  box-shadow: 0 4px 10px rgba(232, 135, 26, 0.28);
}

.quick-item .q-label {
  font-size: 12px;
  color: var(--text-2);
}

/* ---------------- 记录卡片 ---------------- */

.record-card {
  padding: 13px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
}

.record-card:last-child {
  border-bottom: none;
}

.record-card:active {
  background: #f7fafd;
}

.record-card .rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.record-card .rc-no {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.record-card .rc-slides {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}

.record-card .rc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 9px;
}

.record-card .rc-meta b {
  color: var(--text);
  font-weight: 500;
}

.record-card .rc-meta .badge-inline {
  margin-left: -14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  flex: none;
}

.badge.borrowed { background: var(--green-light); color: var(--green); }
.badge.overdue { background: var(--red-light); color: var(--red); }
.badge.returned { background: #eef1f6; color: var(--text-2); }
.badge.soon { background: var(--orange-light); color: var(--orange); }

/* ---------------- 底部导航 ---------------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  z-index: 30;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: var(--gray);
}

.nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-item .icon {
  width: 22px;
  height: 22px;
}

.nav-scan {
  flex: 0 0 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-scan button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #25a3d8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 14px rgba(14, 127, 196, 0.4);
  margin-top: -20px;
}

.nav-scan button .icon {
  width: 24px;
  height: 24px;
}

/* ---------------- 表单 ---------------- */

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-group label .req {
  color: var(--red);
  margin-left: 2px;
}

.form-group label .opt {
  margin-left: 6px;
  font-size: 11px;
  color: #b0b8c6;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-wrap input,
.input-wrap select,
.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfcfe;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 127, 196, 0.12);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 64px;
}

.input-wrap .btn-sm {
  flex: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 500;
  transition: filter 0.12s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #25a3d8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 127, 196, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-ghost {
  background: #eef3f8;
  color: var(--text-2);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.fixed-bottom {
  position: sticky;
  bottom: 8px;
  background: var(--bg);
  padding: 10px 2px 14px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.app.has-nav .fixed-bottom {
  bottom: 64px;
}

.fixed-bottom .btn {
  flex: 1;
}

/* ---------------- 步骤条 ---------------- */

.steps {
  display: flex;
  align-items: center;
  margin: 2px 0 16px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dde5ee;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step-item.active .step-dot {
  background: var(--primary);
  color: #fff;
}

.step-item.done .step-dot {
  background: var(--green);
  color: #fff;
}

.step-label {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #dde5ee;
  margin: 0 8px;
}

.step-item.done ~ .step-item .step-line,
.step-item.done .step-line {
  background: var(--green);
}

/* ---------------- 玻片条目 ---------------- */

.slide-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7fafd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 9px;
}

.slide-item .s-no {
  font-weight: 600;
  font-size: 14px;
}

.slide-item .s-type {
  font-size: 12px;
  color: var(--text-2);
}

.slide-item select,
.slide-item input[type="number"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 13px;
  width: auto;
}

.slide-item input[type="number"] {
  width: 58px;
}

.remove-btn {
  color: var(--red);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-light);
  font-size: 16px;
  flex: none;
}

.scan-box {
  border: 2px dashed #b9d8ec;
  border-radius: 12px;
  background: var(--primary-light);
  padding: 20px 14px;
  text-align: center;
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
  margin-bottom: 12px;
}

.scan-box:active {
  transform: scale(0.98);
}

.scan-box .scan-icon {
  font-size: 30px;
  line-height: 1;
}

.scan-box .scan-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------------- 蜡块条目 ---------------- */

.wax-item {
  display: grid;
  grid-template-columns: 1fr 1fr 70px 28px;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.wax-item input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcfe;
  font-size: 13px;
  min-width: 0;
  width: 100%;
}

/* ---------------- 标签页 ---------------- */

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  border-radius: 999px;
  padding: 7px 14px;
  background: #e9eef5;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}

.tab.active {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
}

/* ---------------- 搜索 ---------------- */

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.search-bar .icon {
  color: var(--gray);
  flex: none;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  min-width: 0;
}

.search-bar .clear {
  color: var(--gray);
  font-size: 16px;
  padding: 2px 4px;
  flex: none;
}

/* ---------------- 详情 ---------------- */

.detail-hero {
  background: linear-gradient(135deg, var(--primary), #25a3d8);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.detail-hero .d-no {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
}

.detail-hero .d-slides {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.95;
}

.detail-hero .d-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
}

.detail-hero .badge {
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
}

.detail-hero .badge.overdue {
  color: var(--red);
}

.detail-hero .badge.returned {
  color: var(--text-2);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.info-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.info-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.info-item .k {
  font-size: 12px;
  color: var(--text-2);
}

.info-item .v {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
}

.info-item.full {
  grid-column: 1 / -1;
  border-right: none;
}

/* ---------------- 时间轴 ---------------- */

.timeline {
  padding: 6px 0 2px;
}

.tl-item {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}

.tl-item:last-child {
  border-left-color: transparent;
  padding-bottom: 4px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c3d2e2;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #c3d2e2;
}

.tl-item.current::before {
  background: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.tl-item .tl-title {
  font-weight: 600;
  font-size: 14px;
}

.tl-item .tl-time {
  font-size: 12px;
  color: var(--primary);
  margin-top: 2px;
}

.tl-item .tl-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.55;
}

/* ---------------- 借用人 / 归还 ---------------- */

.borrower-block {
  border-bottom: 1px solid var(--line);
  padding: 12px 0 4px;
}

.borrower-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #35b0e0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex: none;
}

.return-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  margin: 0 0 10px;
  background: #fff;
  cursor: pointer;
}

.return-card.selected {
  border-color: var(--primary);
  background: #f4faff;
}

.return-card .check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #c3d2e2;
  flex: none;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
}

.return-card.selected .check {
  background: var(--primary);
  border-color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--gray);
}

.empty-state .e-icon {
  font-size: 42px;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-state .e-text {
  font-size: 14px;
}

/* ---------------- 我的 ---------------- */

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}

.profile-card .avatar {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.profile-card .p-name {
  font-size: 17px;
  font-weight: 600;
}

.profile-card .p-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

.menu-list {
  padding: 4px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14.5px;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item .m-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  flex: none;
}

.menu-item .m-arrow {
  margin-left: auto;
  color: var(--gray);
  font-size: 16px;
}

.menu-item.danger .m-icon {
  background: var(--red-light);
  color: var(--red);
}

.menu-item.danger .m-text {
  color: var(--red);
}

/* ---------------- 弹窗 ---------------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 35, 55, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  padding: 20px 18px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: pop 0.18s ease;
}

@keyframes pop {
  from { transform: scale(0.94); opacity: 0.5; }
  to { transform: none; opacity: 1; }
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.modal-body {
  font-size: 13.5px;
  color: var(--text-2);
  text-align: center;
  margin: 12px 0 18px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

/* ---------------- Toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: rgba(25, 35, 50, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  z-index: 200;
  max-width: 86vw;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.2s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------- 打印区（屏幕隐藏，打印显示） ---------------- */

.print-area {
  display: none;
}

.print-page {
  width: 210mm;
  min-height: 297mm;
  background: #fff;
  margin: 0 auto;
  padding: 12mm 10mm;
  font-size: 12pt;
  color: #111;
}

.print-preview .print-page {
  width: 100%;
  min-height: 0;
  padding: 16px 12px;
  font-size: 10pt;
}

.print-preview .form-company {
  font-size: 13pt;
}

.print-preview .form-title {
  font-size: 15pt;
  margin: 6px 0 2px;
}

.print-preview .print-table th,
.print-preview .print-table td {
  font-size: 7.5pt;
  padding: 4px 3px;
}

.print-preview .form-date,
.print-preview .form-meta {
  font-size: 8pt;
}

.form-company {
  text-align: center;
  font-size: 16pt;
  font-weight: 700;
  letter-spacing: 2px;
}

.form-company-en {
  text-align: center;
  font-size: 9pt;
  color: #444;
  margin-top: 2px;
}

.form-title {
  text-align: center;
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: 6px;
  margin: 10px 0 4px;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5pt;
  margin: 6px 0 2px;
}

.form-date {
  margin: 4px 0 8px;
  font-size: 11pt;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.print-table th,
.print-table td {
  border: 1px solid #222;
  padding: 7px 5px;
  text-align: center;
  font-size: 10pt;
  word-break: break-all;
}

.print-table th {
  background: #f3f6f9;
  font-weight: 600;
}

.print-table td.left {
  text-align: left;
}

.print-table .sig-cell {
  text-align: left;
  font-size: 9.5pt;
  height: 30px;
}

.print-table .num-row {
  height: 24px;
}

.print-note {
  font-size: 9pt;
  color: #333;
  margin-top: 8px;
}

/* ---------------- 媒体查询：打印 ---------------- */

@media print {
  body {
    background: #fff;
  }
  .app,
  #modal-root,
  #toast-root,
  .print-toolbar {
    display: none !important;
  }
  .print-area {
    display: block !important;
  }
  .print-page {
    box-shadow: none;
    margin: 0;
    width: auto;
    min-height: auto;
    padding: 0;
  }
  .print-page + .print-page {
    page-break-before: always;
  }
}

/* ---------------- 桌面适配 ---------------- */

@media (min-width: 520px) {
  .app {
    min-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: 20px;
  }
  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 20px 20px;
  }
}
