@charset "UTF-8";
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

/* 设置基础字体和行高，方便后续使用rem/vw */
html {
  -webkit-text-size-adjust: 100%; /* 禁止iOS下字体缩放 */
  scroll-behavior: smooth; /* 平滑滚动（可选） */
}

/* 主体背景、默认字体颜色 */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;
  color: #1f2937;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body::-webkit-scrollbar {
  width: 0.2083333333vw;
  height: 0.2083333333vw;
}
body::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}
body::-webkit-scrollbar-thumb {
  background-color: #333333;
  border-radius: 0.2083333333vw;
}

/* 去除列表默认样式 */
ul,
ol {
  list-style: none;
}

/* 去除链接下划线，继承颜色 */
a {
  text-decoration: none;
  color: inherit;
}

/* 按钮、输入框等继承字体 */
button,
input,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* 按钮鼠标样式 */
button {
  cursor: pointer;
}

/* 图片、视频等块级化，防止溢出 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 表格边框合并，单元格居中 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 引用样式取消斜体（可选） */
cite,
address,
em {
  font-style: normal;
}

/* 标题字重默认 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 0.8333333333vw;
}

/* 隐藏属性兼容 */
[hidden] {
  display: none !important;
}

/* 禁用文本选择（某些元素需要） */
[unselectable] {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.container-full {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
}

.container {
  display: flex;
  width: 62.5vw;
}

.paddingBottom {
  padding-bottom: 5.2083333333vw;
}

body {
  background: #f1f1f1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 2.0833333333vw;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4166666667vw 0.8333333333vw;
  background: #f8f9fa;
  border-bottom: 0.0520833333vw solid #e0e0e0;
  flex-shrink: 0;
  gap: 0.625vw;
}

body.fullscreen-mode {
  padding: 0;
}

/* 全屏模式：只隐藏全屏按钮，其他保留 */
body.fullscreen-mode .fullscreen-btn {
  display: none;
}

/* 全屏模式：PDF 容器背景深色，内边距清除，但内容居中且限制最大宽度为 A4 宽度 */
body.fullscreen-mode .pdf-container {
  padding: 1.0416666667vw 0;
  background: #2c2c2c;
  align-items: center;
}

/* 全屏模式下每个 canvas 限制最大宽度为 A4 纸宽度（约 800px） */
body.fullscreen-mode canvas {
  max-width: 41.6666666667vw;
  width: 100%;
  height: auto;
  margin: 0.8333333333vw auto;
  box-shadow: 0 0.2083333333vw 0.625vw rgba(0, 0, 0, 0.3);
  border-radius: 0.2083333333vw;
}

/* 全屏模式下工具栏背景半透明 */
body.fullscreen-mode .toolbar {
  background: rgba(0, 0, 0, 0.7);
  border-bottom-color: #444;
}

body.fullscreen-mode .page-info {
  background: rgba(0, 0, 0, 0.7);
  box-shadow: none;
}

body.fullscreen-mode #fileName {
  background: rgba(0, 0, 0, 0.7);
  color: #eee;
  font-size: 1.0416666667vw;
  line-height: 2.2916666667vw;
  padding: 0.5208333333vw 0.625vw;
}

body.fullscreen-mode .page-info label,
body.fullscreen-mode #totalPages {
  color: #eee;
  font-size: 0.7291666667vw;
}

body.fullscreen-mode #pageNumber {
  background: #333;
  border-color: #666;
  color: white;
  font-size: 0.7291666667vw;
}

/* 普通模式下的样式 */
.page-info {
  display: flex;
  align-items: center;
  gap: 0.4166666667vw;
  background: white;
  padding: 0.2083333333vw 0.625vw;
  border-radius: 1.0416666667vw;
  box-shadow: 0 0.0520833333vw 0.1041666667vw rgba(0, 0, 0, 0.05);
}

.page-info label {
  font-size: 1.5625vw;
  color: #333;
}

#fileName {
  height: 4.1666666667vw;
  font-size: 2.0833333333vw;
  color: #333;
}

#pageNumber {
  width: 3.125vw;
  text-align: center;
  font-size: 1.5625vw;
  padding: 0.2083333333vw 0;
  border: 0.0520833333vw solid #ccc;
  border-radius: 0.3125vw;
  background: white;
}

#totalPages {
  font-size: 1.5625vw;
  color: #555;
}

.fullscreen-btn {
  background: none;
  border: none;
  font-size: 1.5625vw;
  cursor: pointer;
  padding: 0.3125vw 0.625vw;
  border-radius: 0.4166666667vw;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.2083333333vw;
}

.fullscreen-btn:hover {
  background: #e9ecef;
}

.pdf-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.0833333333vw;
  background: #eef2f5;
}

canvas {
  display: block;
  box-shadow: 0 0.2083333333vw 0.625vw rgba(0, 0, 0, 0.1);
  background: white;
  border-radius: 0.2083333333vw;
  width: auto;
  height: auto;
  max-width: 100%;
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.625vw 1.25vw;
  border-radius: 1.6666666667vw;
  font-size: 0.7291666667vw;
  z-index: 100;
  white-space: nowrap;
}/*# sourceMappingURL=viewer.css.map */