/* ========== base ========== */ * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } :root { --bg-deep: #050506; --panel: #17171a; --line: #2a2a30; --text: #e9e8e8; --text-dim: #9a9aa2; --text-faint: #66666e; --serif: Georgia, "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif; --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; } body { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); touch-action: manipulation; -webkit-font-smoothing: antialiased; background: radial-gradient(120% 55% at 50% -5%, rgba(255, 255, 255, 0.05), transparent 60%), radial-gradient(90% 45% at 92% 108%, rgba(130, 130, 155, 0.055), transparent 65%), var(--bg-deep); background-attachment: fixed; } ::selection { background: #3a3a46; color: #fff; } ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: #2c2c34; border-radius: 4px; } div#content { max-width: 720px; margin: 0 auto; padding: 0 6px 40px; } /* ========== title ========== */ div#title { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 0.35em; text-indent: 0.35em; text-align: center; color: #fff; padding: 28px 0 6px; animation: fadeDown 0.8s ease both; } div#title::after { content: ""; display: block; width: 58px; height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, #7a7a85, transparent); } /* ========== fiction / chapter list ========== */ div.fiction-list { font-size: 17px; padding: 16px 20px; margin: 12px 14px 0; border: 1px solid var(--line); border-left: 3px solid #5b5b66; border-radius: 8px; background: linear-gradient(180deg, var(--panel), #101013); cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease; } div.fiction-list:active { transform: scale(0.985); border-left-color: #c9c9d2; } div.chapter-list { padding: 6px 14px; animation: fadeIn 0.4s ease both; } div.chapter-list div { padding: 13px 18px; margin-top: 2px; font-size: 15px; color: var(--text-dim); border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: pointer; transition: color 0.15s ease, padding-left 0.2s ease; } div.chapter-list div:active { color: #fff; padding-left: 28px; } /* ========== chapter nav (上一章 / 目录 / 下一章) ========== */ div.opt-container { display: flex; gap: 12px; padding: 20px 16px 8px; } div.opt-container div { flex: 1; padding: 10px 0; text-align: center; font-size: 14px; letter-spacing: 0.2em; text-indent: 0.2em; color: var(--text-dim); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); cursor: pointer; user-select: none; transition: color 0.18s ease, background 0.18s ease, transform 0.12s ease; } div.opt-container div:active { color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(1px); } /* ========== reading text ========== */ div.text { animation: fadeIn 0.5s ease both; } div.text div { padding: 9px 20px; margin-top: 0; font-family: var(--serif); font-size: 18px; line-height: 2.05; letter-spacing: 0.02em; text-indent: 2em; color: #d8d7d4; } /* ========== chat messages (blend into reading flow) ========== */ div.chat-msg { font-style: italic; font-weight: 600; color: #c2c1bd; } div.chat-msg-img { cursor: pointer; } span.chat-time-container { display: inline-block; margin-left: 10px; padding: 0; font-family: var(--sans); font-style: normal; font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: 0.03em; text-indent: 0; color: var(--text-faint); vertical-align: middle; } img.chat-img { display: block; width: 100%; max-width: 260px; margin-top: 10px; border-radius: 6px; cursor: zoom-in; animation: fadeIn 0.3s ease; } /* ========== image fullscreen overlay ========== */ div.img-fullscreen-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; animation: fadeIn 0.25s ease; cursor: pointer; /* 防止点击穿透触发底层元素 */ pointer-events: auto; } img.img-fullscreen-content { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-in; transition: transform 0.25s ease; pointer-events: auto; } img.img-fullscreen-content.img-fullscreen-zoomed { max-width: none; max-height: none; object-fit: none; cursor: zoom-out; } div.img-fullscreen-close { position: fixed; top: 16px; right: 16px; width: 36px; height: 36px; font-size: 20px; font-family: var(--sans); line-height: 36px; text-align: center; color: #fff; background: rgba(255, 255, 255, 0.12); border-radius: 50%; cursor: pointer; z-index: 101; user-select: none; transition: background 0.2s ease; } div.img-fullscreen-close:hover { background: rgba(255, 255, 255, 0.25); } /* ========== floating chat button (invisible, tacit corner tap) ========== */ div.chat-add-control-board { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; z-index: 5; } /* ========== chat control panel ========== */ div.chat-control-container { position: fixed; right: 16px; bottom: 84px; width: 212px; padding: 6px 0 6px; background: rgba(22, 22, 26, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid #32323a; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); z-index: 6; transform-origin: bottom right; animation: panelIn 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; } div.chat-control-user-container { width: calc(100% - 32px); margin: 12px 16px 6px; padding: 12px 0 6px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 10px; } div.chat-control-user-container input { display: block; width: calc(100% - 28px); height: 38px; margin: 0 auto 8px; padding: 0 12px; font-size: 14px; color: var(--text); background: #0e0e11; border: 1px solid var(--line); border-radius: 8px; outline: none; vertical-align: top; transition: border-color 0.2s ease; } div.chat-control-user-container input:focus { border-color: #6e6e7c; } div.chat-control-user-container input::placeholder { color: var(--text-faint); } div.chat-control-user-container div { display: block; width: calc(100% - 28px); height: 36px; margin: 4px auto 8px; font-size: 14px; font-weight: 600; line-height: 36px; letter-spacing: 0.3em; text-indent: 0.3em; text-align: center; color: #0c0c0f; background: linear-gradient(180deg, #e8e8ee, #b9b9c4); border: none; border-radius: 8px; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; } div.chat-control-user-container div:active { transform: scale(0.97); filter: brightness(0.88); } div.chat-control-opt { width: calc(100% - 32px); height: 40px; margin: 10px 16px; font-size: 14px; letter-spacing: 0.12em; line-height: 40px; text-align: center; color: var(--text-dim); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; user-select: none; transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.12s ease; } div.chat-control-opt:hover { color: #fff; border-color: #4a4a55; } div.chat-control-opt:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.07); } div.chat-control-opt.chat-history-opt, div.chat-control-opt:has(div.chat-count-selector) { display: flex; align-items: center; justify-content: space-between; padding: 0 12px; } div.chat-history-label { font-size: 14px; letter-spacing: 0.12em; color: var(--text-dim); } div.chat-count-selector { display: flex; gap: 6px; } div.chat-count-chip { min-width: 34px; height: 26px; padding: 0 6px; font-size: 12px; line-height: 26px; text-align: center; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease; } div.chat-count-chip:active { transform: scale(0.9); } div.chat-count-chip.active { font-weight: 600; color: #0c0c0f; background: linear-gradient(180deg, #e8e8ee, #b9b9c4); border-color: transparent; } /* ========== alert box ========== */ div.alert-box { position: fixed; top: 50%; left: 50%; width: min(320px, 82vw); min-height: 150px; padding: 34px 22px 22px; height: auto; font-size: 16px; line-height: 1.7; text-align: center; color: var(--text); background: rgba(26, 26, 31, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid #3a3a44; border-radius: 16px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 20; transform: translate(-50%, -50%); animation: alertIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; } div.alert-box span { display: block; margin: 0 0 22px; } div.alert-box-button { position: static; width: 100%; height: 40px; font-size: 14px; font-weight: 600; line-height: 40px; letter-spacing: 0.3em; text-indent: 0.3em; text-align: center; color: #0c0c0f; background: linear-gradient(180deg, #e8e8ee, #b9b9c4); border: none; border-radius: 9px; cursor: pointer; transition: transform 0.15s ease, filter 0.15s ease; } div.alert-box-button:active { transform: scale(0.97); filter: brightness(0.88); } /* ========== quick input bar ========== */ div.chat-input-container { position: fixed; top: 0; left: 0; width: 100vw; height: 44px; font-size: 15px; background: rgba(16, 16, 19, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); z-index: 10; animation: slideDown 0.25s ease both; } div.chat-input-container input { width: 100%; height: 100%; padding: 0 18px; font-size: 15px; color: var(--text); background: transparent; border: none; outline: none; } /* ========== toast ========== */ div.toast-msg { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 12px 28px; font-size: 14px; color: #fff; background: rgba(0, 0, 0, 0.78); border-radius: 8px; z-index: 25; pointer-events: none; animation: fadeIn 0.2s ease; } /* ========== misc ========== */ div.bottom-placer { width: 100%; height: 60px; } /* ========== keyframes ========== */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } } @keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } } @keyframes alertIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } } @keyframes slideDown { from { transform: translateY(-100%); } to { transform: none; } }