:root { --bg: #f7f7f5; --panel: #ffffff; --fg: #1d1d1f; --muted: #6b6b70; --line: #e3e3e0; --accent: #0b57d0; --accent-fg: #fff; --danger: #b3261e; --radius: 10px; --bar-h: 48px; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", "Noto Sans", "PingFang SC", sans-serif; color: var(--fg); background: var(--bg); } :root[data-ui="dark"] { --bg: #151517; --panel: #1f1f22; --fg: #e6e6e6; --muted: #9a9aa0; --line: #333338; --accent: #8ab4f8; --accent-fg: #0b0b0c; } :root[data-theme="sepia"] { --bg: #efe6d3; --panel: #f6efe1; --line: #dccfb6; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; height: 100%; } button, select, input { font: inherit; color: inherit; } button { cursor: pointer; } .btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px; } .btn:hover { border-color: var(--muted); } .btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; } .btn.ghost { border-color: transparent; background: transparent; } .btn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border-color: var(--accent); } .btn:disabled { opacity: .45; cursor: not-allowed; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .library { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; } .lib-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; } .lib-head h1 { font-size: 20px; margin: 0; flex: 1; } .lib-head .brand { color: var(--muted); font-weight: 600; text-decoration: none; margin-inline-end: 14px; } .lib-head .brand:hover { text-decoration: underline; } .privacy { color: var(--muted); font-size: 12.5px; } .empty { border: 2px dashed var(--line); border-radius: 16px; padding: 64px 24px; text-align: center; } .empty h2 { margin: 0 0 8px; font-size: 22px; } .empty p { color: var(--muted); margin: 0 0 20px; } .continue { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 28px; cursor: pointer; } .continue .cover { width: 72px; } [dir=rtl] .title, [dir=rtl] .card .t, [dir=rtl] .card .a, [dir=rtl] .hit { text-align: right; } .continue .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; } .continue .title { font-size: 18px; font-weight: 600; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; } .card { position: relative; display: flex; flex-direction: column; } .card .open { display: block; width: 100%; text-align: start; border: 0; padding: 0; background: none; border-radius: 6px; } .card .open:hover .cover { box-shadow: 0 2px 8px rgba(0,0,0,.25); } .cover { aspect-ratio: 2 / 3; width: 100%; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #5b6b8c, #2f3a52); color: #fff; display: flex; align-items: flex-end; padding: 10px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.15); } .cover img { width: 100%; height: 100%; object-fit: cover; margin: -10px; width: calc(100% + 20px); height: calc(100% + 20px); } .card .t { margin-top: 8px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card .a { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bar { height: 4px; background: var(--line); border-radius: 2px; margin-top: 6px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); } .card .pct { color: var(--muted); font-size: 12px; margin-top: 2px; } .card .remove { align-self: flex-start; margin-top: 4px; border: 0; background: none; padding: 2px 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; } .card .remove:hover { color: var(--danger); } .confirm .btn:not(.danger) { color: var(--fg); } .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; } .card .confirm { position: absolute; inset: 0 0 auto 0; aspect-ratio: 2/3; background: rgba(0,0,0,.78); color: #fff; border-radius: 6px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 10px; text-align: center; font-size: 13px; } .drop-overlay { position: fixed; inset: 0; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 3px dashed var(--accent); display: none; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; z-index: 50; pointer-events: none; } body.dragging .drop-overlay { display: flex; } .notice { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--danger); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; } .notice.info { border-inline-start-color: var(--accent); } .notice strong { display: block; } .notice .x { margin-inline-start: auto; } .loading { color: var(--muted); padding: 40px; text-align: center; } .reader { position: fixed; inset: 0; display: grid; grid-template-rows: var(--bar-h) 1fr auto; } .topbar { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--panel); min-width: 0; } .topbar .where { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: baseline; padding: 0 6px; } .topbar .book { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; } .topbar .chap { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar .pct { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.5em; text-align: end; } .main { position: relative; display: flex; min-height: 0; } .stage { position: relative; flex: 1; min-width: 0; } .book-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; } .side { width: 320px; border-inline-end: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; } .side header { display: flex; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; } .side header .x { margin-inline-start: auto; } .side .body { overflow: auto; flex: 1; padding: 6px 0; } .toc a { display: block; padding: 6px 14px; color: inherit; text-decoration: none; border-inline-start: 3px solid transparent; } .toc a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); } .toc a.current { border-inline-start-color: var(--accent); font-weight: 600; } .search-box { padding: 10px 12px; display: flex; gap: 6px; } .search-box input { flex: 1; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); } .search-status { padding: 0 14px 6px; color: var(--muted); font-size: 12.5px; } .hit { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 8px 14px; border-bottom: 1px solid var(--line); } .hit:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); } .hit .c { color: var(--muted); font-size: 12px; } .hit mark { background: #ffd54a; color: #000; border-radius: 2px; } .footer { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 12.5px; } .footer input[type=range] { flex: 1; accent-color: var(--accent); } .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 36px; height: 64px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--muted); font-size: 20px; } .nav-btn.prev { left: 6px; } .nav-btn.next { right: 6px; } .back-chip { white-space: nowrap; width: max-content; position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; } .settings { position: absolute; top: 6px; inset-inline-end: 10px; z-index: 5; width: 330px; max-height: calc(100% - 12px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 14px; } .settings .head { display: flex; align-items: center; margin: 0 0 12px; } .settings h3 { margin: 0; font-size: 15px; } .settings .head .x { margin-inline-start: auto; } .row { margin-bottom: 14px; } .row > .lbl { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: block; } .seg { display: flex; gap: 6px; } .seg .btn { flex: 1; justify-content: center; } .hint { color: var(--muted); font-size: 12px; margin-top: 5px; } .swatches { display: flex; gap: 8px; } .swatch { width: 52px; height: 36px; border-radius: 8px; border: 2px solid var(--line); font-weight: 600; } .swatch[aria-pressed="true"] { border-color: var(--accent); } .switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; } details.adv summary { cursor: pointer; color: var(--muted); margin: 4px 0 10px; } .adv .row input[type=range] { width: 100%; accent-color: var(--accent); } .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } @media (max-width: 700px) { .side { position: absolute; inset-block: 0; inset-inline: 0 auto; z-index: 4; width: min(320px, 88vw); box-shadow: 0 10px 30px rgba(0,0,0,.25); } .settings { left: 6px; right: 6px; width: auto; } .topbar { gap: 2px; padding: 0 4px; } .topbar .word, .topbar .chap { display: none; } .topbar .book { max-width: 100%; } .topbar .pct { min-width: 2.6em; } .topbar .btn { min-width: 42px; min-height: 42px; justify-content: center; font-size: 17px; padding: 6px; } .lib-head { flex-wrap: wrap; } .lib-head h1 { flex-basis: 100%; } .lib-head .privacy { flex: 1 1 100%; } .lib-head .primary { margin-inline-start: auto; } .library { padding: 20px 16px 60px; } .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; } .nav-btn { top: auto; bottom: 2px; transform: none; width: 56px; height: 36px; } .search-box input, select.btn { font-size: 16px; } } .notice ul { margin: 6px 0 0; padding-inline-start: 18px; }