:root { color-scheme: light; font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; background: #eef1f4; color: #1f2428; --line: #cfd7dd; --line-strong: #aab7c1; --panel: #f8fafb; --page: #ffffff; --text-muted: #66737f; --accent: #0f7b68; --accent-strong: #095c4e; --focus: #0f7b68; --sidebar-width: clamp(220px, 20vw, 292px); --bar-bg: #fbfcfd; --bar-height: 40px; --bar-pad: 5px 10px; --control-height: 28px; --page-space: clamp(14px, 2.5vw, 28px); --shadow-soft: 0 10px 28px rgba(31, 36, 40, 0.12); --shadow-page: 0 14px 30px rgba(31, 36, 40, 0.16); } * { box-sizing: border-box; } html { width: 100%; height: 100%; overflow: hidden; } body { margin: 0; width: 100%; min-width: 320px; min-height: 100dvh; overflow: hidden; background: #eef1f4; } button, input, select { font: inherit; } button { border: 1px solid var(--line-strong); background: #ffffff; color: #1f2428; cursor: pointer; transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease; } button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: 0.48; } button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } .app { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; height: 100dvh; overflow: hidden; } .app-bar { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; width: 100%; min-width: 0; height: var(--bar-height); min-height: var(--bar-height); flex: 0 0 var(--bar-height); padding: var(--bar-pad); background: var(--bar-bg); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.68) inset; } .toolbar { --tool-gap: 8px; position: relative; z-index: 12; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1; gap: var(--tool-gap); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .toolbar::-webkit-scrollbar { display: none; } .file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } .button, .icon-button { display: inline-flex; align-items: center; justify-content: center; height: var(--control-height); border-radius: 0; } .button { padding: 0 10px; white-space: nowrap; } button:not(:disabled):hover { border-color: var(--accent); background: #f2faf7; } .button[aria-pressed="true"], .icon-button[aria-pressed="true"] { border-color: var(--accent); background: #e4f3ef; color: var(--accent-strong); } .icon-button { width: var(--control-height); padding: 0; font-size: 14px; } .arrow-prev::before, .arrow-next::before { width: 5px; height: 8px; background: currentColor; clip-path: polygon(100% 0, 100% 20%, 30% 50%, 100% 80%, 100% 100%, 0 50%); content: ""; } .arrow-next::before { transform: rotate(180deg); } .open-icon { position: relative; width: 14px; height: 12px; } .open-icon::before { position: absolute; top: 0; left: 0; width: 6px; height: 4px; border: 1px solid currentColor; border-bottom: 0; content: ""; } .open-icon::after { position: absolute; inset: 3px 0 0; border: 1px solid currentColor; content: ""; } .toolbar-space { flex: 1 1 auto; } .tool-group { display: inline-flex; align-items: center; gap: var(--tool-gap); flex: 0 0 auto; min-width: 0; } .tool-group + .tool-group::before { flex: 0 0 1px; width: 1px; height: 22px; margin: 0 calc(12px - var(--tool-gap)); background: var(--line); content: ""; } .page-control { display: inline-grid; grid-template-columns: 4ch auto 4ch; align-items: center; gap: 6px; height: var(--control-height); padding: 0 7px; border: 1px solid var(--line); border-radius: 0; background: #ffffff; color: var(--text-muted); text-align: center; font-variant-numeric: tabular-nums; } .page-control input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; appearance: textfield; text-align: center; color: #1f2428; background: transparent; } .page-control input::-webkit-inner-spin-button, .page-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .format-select { width: 58px; height: var(--control-height); min-width: 0; padding: 0 4px; border: 1px solid var(--line); border-radius: 0; background: #ffffff; color: #1f2428; } .dpi-select { width: 54px; } .format-select:focus, .format-select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; } .format-select option:checked { background-color: #e4f3ef; color: var(--accent-strong); } .zoom-label { min-width: 42px; text-align: center; color: var(--text-muted); font-variant-numeric: tabular-nums; } .workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width); min-height: 0; } body[data-hide-pages] .workspace { grid-template-columns: minmax(0, 1fr) var(--sidebar-width); } body[data-hide-meta] .workspace { grid-template-columns: var(--sidebar-width) minmax(0, 1fr); } body[data-hide-pages][data-hide-meta] .workspace { grid-template-columns: minmax(0, 1fr); } body[data-hide-pages] .page-list-panel, body[data-hide-meta] .meta-panel { display: none; } .page-list-panel, .viewer-panel, .search-results, .meta-panel { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; } .page-list-panel, .meta-panel { min-height: 0; padding: 12px; border-right: 1px solid var(--line); background: var(--panel); overflow: auto; } .meta-panel { border-right: 0; border-left: 1px solid var(--line); } .panel-title { margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0; } .panel-title.compact { margin-bottom: 0; } .panel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; } .panel-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .small-button { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 8px; border-radius: 0; font-size: 12px; white-space: nowrap; } .app-panel { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .app-panel .panel-row { margin-bottom: 0; flex-wrap: nowrap; } .app-status { color: var(--text-muted); font-size: 12px; } .app-refresh { width: 26px; padding: 0; color: var(--accent-strong); font-size: 18px; line-height: 1; } .navigation-tabs { display: flex; gap: 16px; margin-bottom: 10px; border-bottom: 1px solid var(--line); } .navigation-tabs button { height: 28px; padding: 0 0 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; } .navigation-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent-strong); } .outline-list { margin: 0; padding: 0; list-style: none; } body:not([data-hide-pages]) .page-list-panel:has(#searchPanel:not([hidden])), #searchPanel:not([hidden]) { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } #searchPanel { flex: 1; } #searchPanel :focus-visible { outline-offset: -2px; } .search-results { min-height: 0; overflow: auto; } .search-form { display: flex; gap: 6px; flex-shrink: 0; } .search-form input { width: 0; min-width: 0; flex: 1; height: var(--control-height); padding: 0 6px; border: 1px solid var(--line); border-radius: 0; background: #ffffff; color: #1f2428; font-size: 13px; appearance: none; } .search-form button { flex-shrink: 0; font-size: 12px; } .search-tools { display: flex; flex-shrink: 0; align-items: center; gap: 6px; margin: 8px 0; color: var(--text-muted); font-size: 11px; font-variant-numeric: tabular-nums; } #searchStatus { flex: 1; min-width: 0; } .search-tools button { width: 24px; height: 24px; padding: 0; } .search-result { display: block; width: 100%; height: auto; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; } .search-result[aria-current="true"] { background: #e4f3ef; } .search-page { display: block; margin-bottom: 3px; color: var(--text-muted); font-size: 11px; } .search-result mark { background: #c9e6de; color: var(--accent-strong); } .search-highlight { position: absolute; background: rgba(15, 123, 104, 0.24); pointer-events: none; } .outline-list .outline-list { padding-left: 14px; } .outline-list summary { margin-left: 14px; color: var(--text-muted); cursor: pointer; list-style-position: outside; } .outline-list:has(> li > details) .outline-leaf { padding-left: 14px; } .outline-link { display: inline-flex; align-items: baseline; gap: 8px; width: 100%; min-height: 30px; height: auto; padding: 5px 4px; border: 0; background: transparent; font-size: 13px; line-height: 1.5; text-align: left; vertical-align: top; } .outline-link > :first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; } .outline-page { flex-shrink: 0; color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; } button.outline-link:hover { background: #e4f3ef; color: var(--accent-strong); } .page-list { display: grid; gap: 8px; } .page-list-item { display: grid; gap: 6px; width: 100%; height: auto; padding: 8px; font-variant-numeric: tabular-nums; text-align: left; transition: border-color 0.16s ease, background-color 0.16s ease; } .page-list-item[aria-current] { border-color: var(--accent); background: #e4f3ef; color: var(--accent-strong); font-weight: 700; } .thumb-paper { display: grid; place-items: center; width: 100%; aspect-ratio: var(--thumb-ratio, 0.707 / 1); overflow: hidden; border: 1px solid var(--line); background: #ffffff; box-shadow: 0 2px 7px rgba(31, 36, 40, 0.1); color: #9aa6b1; font-size: 20px; line-height: 1; } .thumb-paper.pending, .thumb-paper.error { background: linear-gradient(90deg, rgba(31, 36, 40, 0.04) 1px, transparent 1px), linear-gradient(0deg, rgba(31, 36, 40, 0.04) 1px, transparent 1px), #ffffff; background-size: 12px 12px; } .thumb-svg { display: block; width: 100%; height: 100%; } .thumb-label, .thumb-size { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .thumb-label { font-size: 13px; color: #1f2428; } .thumb-size { font-size: 11px; color: var(--text-muted); font-weight: 400; } .viewer-panel { position: relative; min-width: 0; min-height: 0; overflow: auto; background: linear-gradient(90deg, rgba(31, 36, 40, 0.05) 1px, transparent 1px), linear-gradient(0deg, rgba(31, 36, 40, 0.05) 1px, transparent 1px), #e5e9ed; background-size: 24px 24px; } .viewer-panel.single-page-fits-height { overflow-y: hidden; } .empty-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: var(--text-muted); font-size: 14px; text-align: center; } .empty-state[hidden], .navigation-tabs[hidden], .page-list[hidden], .page-frame[hidden], .progress-panel[hidden] { display: none; } .progress-panel { position: fixed; left: 50%; bottom: calc(var(--bar-height) + 14px); z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 10px; width: min(420px, calc(100vw - 32px)); padding: 10px 12px; border: 1px solid rgba(170, 183, 193, 0.82); background: rgba(251, 252, 253, 0.96); box-shadow: var(--shadow-soft); transform: translateX(-50%); backdrop-filter: blur(8px); } .progress-spinner { width: 18px; height: 18px; border: 2px solid #d5dde3; border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } .progress-label { min-width: 0; overflow: hidden; color: #1f2428; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .progress-track { grid-column: 1 / -1; width: 100%; height: 4px; overflow: hidden; background: #dbe2e7; } .progress-bar { width: 0; height: 100%; background: var(--accent); transition: width 0.18s ease; } @keyframes spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .progress-spinner, .region-highlight { animation: none; } .progress-bar { transition: none; } } .page-frame { display: grid; align-items: safe center; min-width: 100%; min-height: 100%; padding: var(--page-space); padding-block: var(--fit-space, var(--page-space)); } .page-frame.continuous { --page-space: 0px; align-items: start; } .svg-host { display: grid; justify-items: center; gap: var(--fit-gap, var(--fit-space, var(--page-space))); width: max-content; margin: 0 auto; } .page-shell { position: relative; overflow: hidden; border: 1px solid rgba(170, 183, 193, 0.55); box-shadow: var(--shadow-page); background: var(--page); } .page-frame.continuous .page-shell { border: 0; box-shadow: none; } .page-shell.error { background: #fff8f7; } .page-surface { position: relative; transform-origin: 0 0; } .text-layer { position: absolute; inset: 0; overflow: hidden; color: transparent; opacity: 0.24; pointer-events: none; -webkit-user-select: text; user-select: text; text-size-adjust: none; } .text-run > span { position: absolute; left: 0; top: 0; font: 100px/1 sans-serif; white-space: pre; transform-origin: 0 0; cursor: text; pointer-events: auto; } .text-run > span::selection { color: transparent; background: var(--accent); } .page-link { position: absolute; } .page-link:hover, .page-link:focus-visible { background: rgba(15, 123, 104, 0.08); } .page-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: 13px; background: linear-gradient(90deg, rgba(31, 36, 40, 0.04) 1px, transparent 1px), linear-gradient(0deg, rgba(31, 36, 40, 0.04) 1px, transparent 1px), #ffffff; background-size: 18px 18px; } .page-shell.rendered .page-placeholder { display: none; } .region-highlight { position: absolute; z-index: 4; border: 2px solid var(--accent); background: rgba(15, 123, 104, 0.08); box-shadow: 0 0 0 3px rgba(15, 123, 104, 0.16); pointer-events: none; animation: regionPulse 0.9s ease-in-out 2; } @keyframes regionPulse { 50% { border-color: var(--accent-strong); box-shadow: 0 0 0 5px rgba(15, 123, 104, 0.18); } } .ofd-svg { display: block; max-width: none; transform-origin: 0 0; -webkit-user-select: none; user-select: none; } .meta-list { display: grid; gap: 12px; margin: 0; } .meta-list div { display: grid; gap: 3px; } .meta-list dt { font-size: 12px; color: var(--text-muted); } .meta-list dd { margin: 0; overflow-wrap: anywhere; line-height: 1.35; } .font-panel, .doc-font-panel, .attachment-panel, .annotation-panel, .signature-panel { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); } .attachment-list { display: grid; gap: 8px; } .attachment-item { width: 100%; padding: 4px 0; border: 0; background: transparent; color: var(--accent-strong); font-size: 13px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; } .attachment-item:not(:disabled):hover { background: transparent; } .attachment-item:hover .attachment-name { text-decoration: underline; } .attachment-detail { color: var(--text-muted); font-size: 11px; } .count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid var(--line); background: #ffffff; color: var(--text-muted); font-size: 11px; text-align: center; white-space: nowrap; } .doc-font-list, .annotation-list, .signature-list { display: grid; gap: 8px; } .doc-font-row, .annotation-row, .signature-row { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--line); background: #ffffff; transition: border-color 0.16s ease, background-color 0.16s ease; } .page-list-item:not(:disabled):hover, .doc-font-row:hover, .signature-row:hover, .annotation-row:hover, .font-row:hover { border-color: var(--line-strong); background: #ffffff; } .doc-font-row.missing { border-color: #e2c7c4; background: #fffdfc; } .doc-font-row.fallback { border-color: #ded0a6; background: #fffdf7; } .signature-row.valid { border-color: #bdd8cc; background: #fbfefd; } .signature-row.invalid { border-color: #e2c7c4; background: #fffdfc; } .doc-font-head, .annotation-head, .signature-head { display: flow-root; } .doc-font-name, .signature-name { color: #1f2428; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; } .info-name-button { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; cursor: pointer; text-align: left; } .info-name-button:not(:disabled):hover { background: transparent; color: var(--accent-strong); text-decoration: underline; } .annotation-head .info-name-button { color: var(--accent-strong); font-size: 13px; } .signature-stamp-group { color: var(--text-muted); font-weight: 400; } .signature-stamp-item { white-space: nowrap; } .signature-stamp-link { padding: 0; border: 0; background: transparent; color: var(--accent-strong); font: inherit; font-weight: 400; line-height: inherit; cursor: pointer; } .signature-stamp-link:not(:disabled):hover { background: transparent; text-decoration: underline; } .doc-font-badges, .signature-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; } .doc-font-badges, .signature-badges, .annotation-head > .font-badge { float: right; margin-left: 8px; } .annotation-row .info-value { white-space: pre-wrap; } .font-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 3px 6px; background: #eef1f4; color: var(--text-muted); font-size: 11px; line-height: 1.35; white-space: nowrap; } .font-badge.embedded, .font-badge.matched, .font-badge.valid { background: #e4f3ef; color: var(--accent-strong); } .font-badge.fallback { background: #fbefd3; color: #705719; } .font-badge.missing, .font-badge.invalid { background: #f9e8e5; color: #803f38; } .info-line { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 7px; color: var(--text-muted); font-size: 11px; line-height: 1.35; } .info-label { color: #7b8791; white-space: nowrap; } .info-value { min-width: 0; overflow-wrap: anywhere; } .info-line.ok .info-value { color: var(--accent-strong); } .info-line.fail .info-value { color: #803f38; } .doc-font-detail { color: var(--text-muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; } .font-list { display: grid; gap: 8px; } .font-permission-hint { margin: 0 0 8px; padding: 7px 8px; border: 1px solid var(--line); background: #ffffff; color: var(--text-muted); font-size: 12px; line-height: 1.35; } .font-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--line); background: #ffffff; } .font-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; } .font-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: max-content; } .font-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); } .font-name-input { width: 100%; min-width: 0; height: 26px; padding: 0 6px; border: 1px solid var(--line); background: #ffffff; color: #1f2428; font-size: 12px; } .font-source { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 20px; padding: 0 6px; border: 1px solid var(--line); background: #f8fafb; color: var(--text-muted); font-size: 11px; text-align: center; white-space: nowrap; } .font-toggle { display: inline-flex; align-items: center; gap: 3px; height: 26px; color: var(--text-muted); font-size: 11px; white-space: nowrap; } .font-delete { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; color: #7c3333; font-size: 18px; line-height: 1; } .font-empty { padding: 10px; border: 1px dashed var(--line-strong); color: var(--text-muted); font-size: 13px; text-align: center; } .app-footer { z-index: 12; justify-content: space-between; overflow: hidden; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 12px; } .footer-brand { flex: 0 0 var(--sidebar-width); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .status-text { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--text-muted); line-height: 1.35; text-align: center; text-overflow: ellipsis; white-space: nowrap; } .footer-links { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 var(--sidebar-width); justify-content: flex-end; min-width: 0; overflow: hidden; } .app-footer a { color: var(--accent-strong); font-weight: 400; text-decoration: none; } .app-footer a:hover { text-decoration: underline; } @media (display-mode: standalone) { body { min-height: 100svh; } .app { height: 100svh; } } @media (max-width: 900px) { :root { --sidebar-width: min(78vw, 292px); } .toolbar { --tool-gap: 6px; } .toolbar > * { flex: 0 0 auto; } .toolbar-space { display: none; } .footer-brand, .footer-links { flex: 0 1 auto; } .workspace { position: relative; grid-template-columns: minmax(0, 1fr); overflow: clip; } body[data-hide-pages] .workspace, body[data-hide-meta] .workspace, body[data-hide-pages][data-hide-meta] .workspace { grid-template-columns: minmax(0, 1fr); } .page-list-panel, .meta-panel { position: absolute; top: 0; bottom: 0; z-index: 8; width: var(--sidebar-width); box-shadow: 0 16px 32px rgba(31, 36, 40, 0.18); transition: transform 0.18s ease; } body[data-hide-pages] .page-list-panel, body[data-hide-meta] .meta-panel { display: block; } .page-list-panel { left: 0; } .meta-panel { right: 0; } body[data-hide-pages] .page-list-panel { transform: translateX(-100%); pointer-events: none; } body[data-hide-meta] .meta-panel { transform: translateX(100%); pointer-events: none; } } @media (max-width: 640px) { :root { --bar-height: 42px; --control-height: 28px; --bar-pad: 5px 8px; } .workspace { grid-template-columns: 1fr; } .tool-group + .tool-group::before { display: none; } .button { padding: 0 7px; } .button[data-short] { min-width: var(--control-height); font-size: 0; } .button[data-short]::after { content: attr(data-short); font-size: 12px; font-weight: 500; } .icon-button { font-size: 13px; } .page-control { grid-template-columns: 3ch auto 3ch; gap: 4px; padding: 0 6px; } .zoom-label { min-width: 34px; } .format-select { width: 52px; padding: 0 3px; } .dpi-select { width: 48px; } }