xiaoshuo / ui-src /src /styles.css
xiaoshuo-ui
New novel-editor UI (frontend only; APIs, storage and auth untouched)
3d4293e
Raw History Blame
79 kB
/* ============================================================ 小说写作台 · 稿纸主题 ============================================================ */ :root { --bg: #f3efe6; --bg-2: #ebe5d8; --surface: #fbf9f4; --paper: #fffdf8; --raised: #ffffff; --ink: #2a2622; --ink-2: #57504a; --ink-3: #8c847b; --ink-4: #b8b0a5; --line: #e2dbcd; --line-2: #d4ccbc; --accent: #b8432f; --accent-2: #9c3624; --accent-soft: #f4e2dc; --accent-ink: #fff; --ok: #4f7a4a; --ok-soft: #e3eddc; --warn: #b07a1c; --warn-soft: #f6ead0; --err: #b23a2e; --err-soft: #f6dcd8; --blue: #3c6488; --blue-soft: #dee8f1; --shadow-s: 0 1px 2px rgba(60, 45, 30, .06), 0 1px 1px rgba(60, 45, 30, .04); --shadow: 0 2px 6px rgba(60, 45, 30, .06), 0 10px 30px -12px rgba(60, 45, 30, .18); --shadow-l: 0 24px 60px -20px rgba(40, 30, 20, .35), 0 4px 14px rgba(40, 30, 20, .08); --paper-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 12px 40px -18px rgba(70, 50, 30, .28); --r: 10px; --r-s: 7px; --r-l: 14px; --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif; --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --rail-w: 72px; color-scheme: light; } [data-theme="night"] { --bg: #1a1917; --bg-2: #22201d; --surface: #201f1c; --paper: #252320; --raised: #2b2925; --ink: #e8e2d6; --ink-2: #bdb5a8; --ink-3: #8b8479; --ink-4: #615b52; --line: #34312c; --line-2: #433f39; --accent: #e07a5f; --accent-2: #f08f74; --accent-soft: #3a2621; --accent-ink: #1a1917; --ok: #8fbf86; --ok-soft: #233022; --warn: #e0b45c; --warn-soft: #352c1a; --err: #ec8576; --err-soft: #3b2220; --blue: #8db4d8; --blue-soft: #1f2a35; --shadow-s: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .5); --shadow-l: 0 24px 60px -20px rgba(0, 0, 0, .7); --paper-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 40px -20px rgba(0, 0, 0, .6); color-scheme: dark; } *, *::before, *::after { box-sizing: border-box; } html, body, #root { height: 100%; } body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; } button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; background: none; border: 0; padding: 0; } button:disabled { cursor: not-allowed; opacity: .55; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; } p { margin: 0; } ul, ol { margin: 0; padding: 0; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; } ::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background-color: var(--ink-4); } ::-webkit-scrollbar-track { background: transparent; } .serif { font-family: var(--serif); } .muted { color: var(--ink-3); } .small-note { font-size: 12px; line-height: 1.6; } .nowrap { white-space: nowrap; } .push { margin-left: auto; } .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .row { display: flex; align-items: center; } .row.gap { gap: 10px; } .row.gap-s, .gap-s { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; } .row.between { justify-content: space-between; gap: 10px; } .row.end { justify-content: flex-end; } .divider { height: 1px; background: var(--line); margin: 14px 0; } .ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .accent-text { color: var(--accent); } .dim { opacity: .55; transition: opacity .2s; } .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 600; margin-bottom: 6px; } .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; } .dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } /* ---------- 按钮 / 表单 ---------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: var(--r-s); font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; } .btn.small { height: 30px; padding: 0 12px; font-size: 13px; } .btn.block { width: 100%; } .btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-s); } .btn.primary:hover:not(:disabled) { background: var(--accent-2); } .btn.ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); } .btn.ghost:hover:not(:disabled) { border-color: var(--ink-4); background: var(--raised); } .btn.ghost.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: var(--accent-soft); } .btn.danger { background: var(--err); color: #fff; } .btn.danger.ghost, .btn.ghost.danger { background: transparent; color: var(--err); border-color: color-mix(in srgb, var(--err) 35%, transparent); } .btn.danger.ghost:hover:not(:disabled), .btn.ghost.danger:hover:not(:disabled) { background: var(--err-soft); } .icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-s); color: var(--ink-2); transition: background .15s, color .15s; flex: none; } .icon-btn:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); text-decoration: none; } .icon-btn.sm { width: 28px; height: 28px; font-size: 13px; } .icon-btn.on { color: var(--accent); background: var(--accent-soft); } .icon-btn.danger:hover:not(:disabled) { color: var(--err); background: var(--err-soft); } .link-btn { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 13px; font-weight: 500; } .link-btn:hover { text-decoration: underline; } .link-btn.muted { color: var(--ink-3); } .link-btn.back { margin-bottom: 14px; } .input, .textarea { width: 100%; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-s); padding: 7px 11px; outline: none; transition: border-color .15s, box-shadow .15s; min-height: 36px; } .input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); } .input::placeholder, .textarea::placeholder { color: var(--ink-4); } .input.bare { border: 0; background: transparent; box-shadow: none; padding: 0; min-height: 0; } .input.mini { width: auto; min-height: 28px; height: 28px; padding: 2px 8px; font-size: 12px; } .input.auto { width: auto; } select.input { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; } .textarea { resize: vertical; line-height: 1.7; } .serif-input { font-family: var(--serif); font-size: 15px; line-height: 1.85; } .title-input { font-family: var(--serif); font-size: 18px; font-weight: 600; } .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field + .field { margin-top: 14px; } .form-grid .field + .field { margin-top: 0; } .field-label, .field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--ink-2); } .field-hint { font-size: 12px; color: var(--ink-3); } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; } .form-grid.tight { gap: 10px 12px; } .span2 { grid-column: span 2; } .check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; } .check input { accent-color: var(--accent); width: 15px; height: 15px; } .search-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-s); padding: 0 10px; height: 36px; color: var(--ink-3); } .search-row:focus-within { border-color: var(--accent); } .search-row .input { color: var(--ink); } .search-row.slim { height: 32px; margin: 0 12px 8px; } /* chips / tags */ .chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; color: var(--ink-2); transition: all .15s; white-space: nowrap; } .chip:hover { border-color: var(--ink-4); color: var(--ink); } .chip em { font-style: normal; font-size: 11px; color: var(--ink-3); } .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .chip.on em { color: color-mix(in srgb, var(--bg) 70%, transparent); } .chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; } .tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 5px; font-size: 12px; line-height: 20px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; } .tag.clickable { cursor: pointer; } .tag.clickable:hover, .tag.on { background: var(--ink); color: var(--bg); } .tag-accent { background: var(--accent-soft); color: var(--accent); } .tag-warn { background: var(--warn-soft); color: var(--warn); } .tag-ok { background: var(--ok-soft); color: var(--ok); } .tag-err { background: var(--err-soft); color: var(--err); } .mini-tag { font-size: 12px; color: var(--ink-3); } .stars { display: inline-flex; gap: 2px; } .stars i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); } .stars i.on { background: var(--accent); } /* tabs / segmented */ .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; margin-bottom: -1px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .15s; } .tab:hover { color: var(--ink); } .tab.on { color: var(--ink); border-bottom-color: var(--accent); } .tab-count { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--bg-2); color: var(--ink-3); line-height: 18px; } .seg { display: inline-flex; padding: 3px; background: var(--bg-2); border-radius: 9px; gap: 2px; flex-wrap: wrap; } .seg button { padding: 4px 12px; border-radius: 7px; font-size: 13px; color: var(--ink-3); white-space: nowrap; } .seg button.on { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-s); font-weight: 500; } .seg.big { margin: 6px 0 18px; } .seg.big button { padding: 7px 22px; font-size: 14px; } /* states */ .spinner { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; } .spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loading { display: flex; justify-content: center; padding: 48px 0; } .boot { height: 100%; display: grid; place-items: center; } .error-note { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--err-soft); color: var(--err); font-size: 13px; margin: 10px 0; } .error-note span { flex: 1; } .empty { text-align: center; padding: 48px 20px; color: var(--ink-3); } .empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); color: var(--ink-3); margin-bottom: 12px; } .empty-title { font-family: var(--serif); font-size: 17px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; } .empty-body { font-size: 13px; max-width: 420px; margin: 0 auto; line-height: 1.8; } .banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: var(--r-s); background: var(--warn-soft); color: var(--warn); font-size: 13px; margin: 10px 0; } .banner span { flex: 1; color: var(--ink-2); } .banner.warn { border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); } .callout { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-s); background: var(--blue-soft); color: var(--ink-2); font-size: 13px; margin-bottom: 14px; } .pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 22px 0 6px; } .pager-info { font-size: 13px; color: var(--ink-3); } /* toasts */ .toasts { position: fixed; z-index: 200; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; } .toast { padding: 9px 18px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 13px; box-shadow: var(--shadow-l); animation: rise .2s ease-out; max-width: 80vw; } .toast-ok { background: var(--ok); color: #fff; } .toast-err { background: var(--err); color: #fff; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } } /* overlay / modal / drawer */ .overlay { position: fixed; inset: 0; z-index: 100; background: rgba(30, 24, 18, .38); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; animation: fade .15s; } [data-theme="night"] .overlay { background: rgba(0, 0, 0, .55); } @keyframes fade { from { opacity: 0; } } .modal { width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-l); animation: pop .18s ease-out; border: 1px solid var(--line); } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } } .modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px 22px; } .modal-head > :first-child { flex: 1; font-family: var(--serif); font-size: 18px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .modal-body { padding: 12px 22px 20px; overflow: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); } .confirm-body { color: var(--ink-2); line-height: 1.8; margin-bottom: 12px; } .overlay-drawer { display: flex; justify-content: flex-end; align-items: stretch; padding: 0; } .drawer { height: 100%; max-height: 100vh; max-height: 100dvh; display: flex; min-height: 0; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-l); animation: slide .2s ease-out; border-left: 1px solid var(--line); } @keyframes slide { from { transform: translateX(30px); opacity: 0; } } .drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); } .drawer-title { flex: 1; min-width: 0; font-weight: 600; } .drawer-body { flex: 1; overflow: auto; padding: 20px 22px; } .drawer-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); } .popover { position: absolute; z-index: 50; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-l); padding: 14px; animation: pop .15s ease-out; } .pop-title { font-weight: 600; margin-bottom: 10px; } .pop-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; } /* list editor */ .list-editor { display: flex; flex-direction: column; gap: 10px; } .le-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 10px 12px 12px; } .le-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .le-index { font-family: var(--serif); color: var(--accent); font-weight: 600; font-size: 13px; min-width: 18px; } .le-title { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .le-actions { display: flex; gap: 2px; opacity: .45; transition: opacity .15s; } .le-item:hover .le-actions, .le-item:focus-within .le-actions { opacity: 1; } .le-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; } .le-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); } .le-field.long { grid-column: 1 / -1; } .le-field .textarea { font-size: 13.5px; } .add-btn { align-self: flex-start; border-style: dashed; } .string-list { display: flex; flex-direction: column; gap: 2px; } .sl-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; border-bottom: 1px dashed var(--line); } .sl-row:hover { background: var(--bg-2); } .sl-dot { color: var(--accent); font-weight: 700; } .sl-row .input { flex: 1; font-family: var(--serif); font-size: 14.5px; } .string-list .add-btn { margin-top: 8px; } /* ============================================================ 壳:左侧导航栏 ============================================================ */ .shell { display: flex; height: 100%; } .rail { width: var(--rail-w); flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; background: var(--bg-2); border-right: 1px solid var(--line); } .rail-brand { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; box-shadow: var(--shadow); } .rail-items, .rail-foot { display: flex; flex-direction: column; gap: 4px; align-items: center; } .rail-foot { margin-top: auto; } .rail-item { width: 58px; padding: 8px 0 6px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 11px; transition: background .15s, color .15s; } .rail-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); } .rail-item.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-s); } .stage { flex: 1; min-width: 0; height: 100%; overflow: auto; position: relative; } /* lock */ .lock { height: 100%; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 40%), repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--line) 60%, transparent) 31px 32px), var(--bg); } .lock-card { width: 100%; max-width: 360px; padding: 40px 34px 28px; text-align: center; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-l); border: 1px solid var(--line); } .lock-seal { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; color: #fff; background: var(--accent); border-radius: 12px; transform: rotate(-4deg); box-shadow: var(--shadow); } .lock h1 { font-family: var(--serif); font-size: 24px; letter-spacing: .08em; } .lock-sub { color: var(--ink-3); margin: 6px 0 24px; } .lock-input { height: 44px; text-align: center; font-size: 15px; margin-bottom: 12px; letter-spacing: .1em; } .lock-err { color: var(--err); font-size: 13px; margin-bottom: 10px; } .lock .btn { height: 42px; } .lock-foot { margin-top: 18px; font-size: 12px; color: var(--ink-4); } /* ============================================================ 通用页面 ============================================================ */ .page { max-width: 1040px; margin: 0 auto; padding: 36px 40px 80px; } .page.narrow { max-width: 780px; } .page.wide { max-width: 1180px; } .page-head { display: flex; align-items: flex-end; gap: 20px; justify-content: space-between; margin-bottom: 26px; } .page-title { font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .02em; } .page-sub { color: var(--ink-3); margin-top: 6px; max-width: 640px; line-height: 1.8; } .h2 { font-size: 20px; margin: 34px 0 14px; } .sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow-s); } .sheet-title { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 14px; } .sheet-note { color: var(--ink-3); font-size: 13px; margin: -8px 0 12px; } .sheet-actions { display: flex; justify-content: flex-end; margin-top: 16px; } .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; } .stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-align: left; } .stat b { font-family: var(--serif); font-size: 22px; font-weight: 700; } .stat span { color: var(--ink-3); font-size: 12.5px; } .stat.clickable:hover { border-color: var(--ink-4); } .panel-stack { display: flex; flex-direction: column; gap: 14px; } .panel-h { font-size: 13px; font-weight: 600; } .toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; } .bar { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-top: 8px; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; } /* ============================================================ 书房(书架) ============================================================ */ .shelf .page-head { margin-bottom: 30px; } .bookshelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 34px 26px; align-items: end; } .book { text-align: left; display: flex; flex-direction: column; gap: 10px; } .book-cover { position: relative; aspect-ratio: 3 / 4.2; border-radius: 3px 8px 8px 3px; padding: 22px 16px 16px 24px; background: linear-gradient(110deg, rgba(0,0,0,.18) 0 6px, rgba(255,255,255,.12) 7px, transparent 14px), var(--cover, #7a4b3a); color: #fdf8ef; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 14px 26px -12px rgba(40, 25, 10, .55), inset 0 0 0 1px rgba(255,255,255,.06); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; overflow: hidden; } .book:hover .book-cover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 24px 36px -14px rgba(40, 25, 10, .6); } .book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.18); } .book-title { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.35; writing-mode: horizontal-tb; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(0,0,0,.2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .book-genre { margin-top: 8px; font-size: 12px; opacity: .78; } .book-seal { margin-top: auto; align-self: flex-end; font-family: var(--serif); font-size: 12px; padding: 2px 7px; border: 1px solid rgba(255,255,255,.55); border-radius: 3px; transform: rotate(-3deg); } .book-meta-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .book-meta-sub { font-size: 12px; color: var(--ink-3); } .book-new { aspect-ratio: 3 / 4.2; border: 1.5px dashed var(--line-2); border-radius: 3px 8px 8px 3px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all .15s; margin-bottom: 52px; } .book-new:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); } .shelf-board { height: 14px; margin: 6px -10px 0; border-radius: 3px; background: linear-gradient(var(--line-2), var(--bg-2)); box-shadow: 0 8px 14px -8px rgba(60, 40, 20, .35); } .shelf-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 40px; } .note-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 10px; } .note-card-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); } .steps-mini { padding-left: 18px; color: var(--ink-2); line-height: 2; font-size: 13.5px; } .spark { background: linear-gradient(var(--paper), var(--paper)) padding-box, repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in srgb, var(--line) 50%, transparent) 27px 28px); } .spark-hook { font-family: var(--serif); font-size: 17px; line-height: 1.75; } .spark-line { color: var(--ink-2); font-size: 13.5px; } .spark-meta { font-size: 12px; color: var(--ink-3); } /* ============================================================ 作品:目录 + 主区 ============================================================ */ .book-room { display: flex; height: 100%; position: relative; } .binder { width: 260px; flex: none; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); height: 100%; overflow: hidden; } .binder-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 12px; } .binder-back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 13px; padding: 4px 6px; border-radius: 6px; } .binder-back:hover { color: var(--ink); background: var(--bg-2); } .binder-book { margin: 4px 10px 8px; padding: 12px 14px; border-radius: var(--r); text-align: left; background: var(--paper); border: 1px solid var(--line); } .binder-book.on, .binder-book:hover { border-color: var(--line-2); box-shadow: var(--shadow-s); } .binder-book-title { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.4; } .binder-book-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; } .binder-section { padding: 6px 8px; } .binder-section.grow { flex: 1; overflow: auto; display: flex; flex-direction: column; } .binder-label { display: flex; align-items: center; gap: 6px; padding: 6px 8px 4px; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; } .binder-link, .binder-ch { width: 100%; display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); text-align: left; font-size: 13.5px; } .binder-link:hover, .binder-ch:hover { background: var(--bg-2); color: var(--ink); } .binder-link.on, .binder-ch.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; } .binder-link span { flex: 1; } .binder-link em { font-style: normal; font-size: 11.5px; color: var(--ink-3); } .binder-tree { display: flex; flex-direction: column; gap: 6px; } .binder-vol-name { font-family: var(--serif); font-size: 12.5px; color: var(--ink-3); padding: 6px 10px 2px; } .ch-num { font-family: var(--serif); font-size: 12px; color: var(--ink-3); min-width: 20px; text-align: right; } .binder-ch.on .ch-num { color: var(--accent); } .ch-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ch-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; } .ch-dot.st-planned { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-4); } .ch-dot.st-draft { background: var(--warn); } .ch-dot.st-revising { background: var(--blue); } .ch-dot.st-done { background: var(--ok); } .ch-dot.st-rolled_back { background: var(--err); } .binder-empty { margin: 8px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--ink-3); display: flex; align-items: center; gap: 6px; justify-content: center; } .binder-empty:hover { color: var(--accent); border-color: var(--accent); } .binder-foot { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); } .binder-peek { position: absolute; z-index: 20; left: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-s); } .binder-peek:hover { color: var(--ink); } .book-main { flex: 1; min-width: 0; height: 100%; overflow: auto; } /* about */ .about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 20px 0 6px; } .about-stats > div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; } .about-stats b { font-family: var(--serif); font-size: 19px; } .about-stats span { font-size: 12px; color: var(--ink-3); } .toc { list-style: none; display: flex; flex-direction: column; } .toc li { padding: 8px 4px; border-bottom: 1px dashed var(--line); } .toc li > button, .toc li > div { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; } .toc-num { font-family: var(--serif); color: var(--ink-3); flex: none; font-size: 13px; } .toc-title { font-family: var(--serif); font-size: 15px; } .toc li:hover .toc-title { color: var(--accent); } .toc-dots { flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); } .toc-st { font-size: 12px; color: var(--ink-3); } .toc-goal { font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0 56px; } .quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .quick-links button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); align-items: center; } .quick-links button:hover { border-color: var(--accent); } .quick-links button svg { grid-row: span 2; color: var(--accent); } .quick-links button span { font-size: 12px; color: var(--ink-3); } .danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-top: 30px; border: 1px solid color-mix(in srgb, var(--err) 25%, transparent); border-radius: var(--r-l); } .danger-zone > div { display: flex; flex-direction: column; } .danger-zone span { font-size: 12.5px; color: var(--ink-3); } /* ============================================================ 稿纸编辑器 ============================================================ */ .editor { display: flex; height: 100%; } .manuscript-scroll { flex: 1; min-width: 0; height: 100%; overflow: auto; background: var(--bg); position: relative; } .editor-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 16px 0 56px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; } .manuscript-scroll:hover .editor-bar { border-bottom-color: var(--line); } .eb-left { display: flex; align-items: center; gap: 12px; min-width: 0; } .eb-crumb { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .eb-crumb i { font-style: normal; margin: 0 6px; color: var(--ink-4); } .eb-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; } .eb-right { display: flex; align-items: center; gap: 4px; flex: none; } .eb-count { font-size: 12.5px; color: var(--ink-3); margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; } .eb-count em { font-style: normal; margin-left: 6px; font-size: 11.5px; padding: 0 5px; border-radius: 4px; } .eb-count em.up { color: var(--ok); background: var(--ok-soft); } .eb-count em.down { color: var(--err); background: var(--err-soft); } .save-wrap, .menu-wrap { position: relative; margin-left: 6px; } .menu-wrap { margin-left: 0; } .save-pop { right: 0; top: calc(100% + 8px); width: 320px; } .layout-pop { right: 0; top: calc(100% + 8px); width: 260px; display: flex; flex-direction: column; gap: 12px; } .layout-pop .row { gap: 8px; } .fs-val { min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; } .manuscript-scroll > .banner { max-width: 760px; margin: 12px auto 0; } .paper { --fs: 18px; max-width: 760px; margin: 18px auto 120px; padding: 64px 76px 56px; background: var(--paper); border-radius: 4px; box-shadow: var(--paper-shadow); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); min-height: calc(100vh - 140px); display: flex; flex-direction: column; } .paper.w-narrow { max-width: 640px; padding-inline: 60px; } .paper.w-wide { max-width: 940px; } .paper-chapter { font-family: var(--serif); text-align: center; color: var(--accent); letter-spacing: .3em; font-size: 13px; } .paper-title { font-family: var(--serif); text-align: center; font-size: calc(var(--fs) * 1.45); font-weight: 700; border: 0; background: transparent; outline: none; margin: 10px 0 8px; padding: 4px 0; letter-spacing: .05em; color: var(--ink); width: 100%; } .paper-title::placeholder { color: var(--ink-4); } .paper-goal { margin: 4px auto 18px; max-width: 520px; text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; } .paper-goal span { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; } .paper-text { flex: 1; width: 100%; border: 0; outline: none; resize: none; background: transparent; overflow: hidden; font-family: var(--serif); font-size: var(--fs); line-height: 2.05; color: var(--ink); letter-spacing: .02em; padding: 18px 0 0; min-height: 60vh; caret-color: var(--accent); } .paper-text::placeholder { color: var(--ink-4); } .paper-end { text-align: center; font-family: var(--serif); color: var(--ink-4); font-size: 12.5px; letter-spacing: .2em; margin-top: 30px; min-height: 20px; } .is-focus .editor-bar { opacity: .15; transition: opacity .3s; } .is-focus .editor-bar:hover, .is-focus .editor-bar:focus-within { opacity: 1; } .is-focus .paper { box-shadow: none; border-color: transparent; background: transparent; margin-top: 4vh; } .is-focus .manuscript-scroll { background: var(--paper); } /* inspector */ .inspector { width: 380px; flex: none; height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); } .inspector-tabs { padding: 4px 8px 0; flex: none; } .inspector-tabs .tab { padding: 10px 9px; font-size: 13px; gap: 4px; } .inspector-body { flex: 1; overflow: auto; padding: 16px 16px 30px; } .inspector .field + .field { margin-top: 12px; } .sticky-actions { position: sticky; bottom: -30px; margin: 16px -16px -30px; padding: 12px 16px 16px; background: linear-gradient(transparent, var(--surface) 30%); display: flex; gap: 8px; justify-content: flex-end; } .quote-box { border-left: 3px solid var(--line-2); padding: 8px 12px; background: var(--bg); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; } .quote-label { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; font-weight: 600; } .timeline { list-style: none; position: relative; display: flex; flex-direction: column; } .timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); } .timeline li { position: relative; display: flex; gap: 12px; padding: 8px 0; } .tl-check { position: relative; z-index: 1; width: 15px; height: 15px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; } .tl-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; } .timeline li.current .tl-check { border-color: var(--accent); background: var(--accent); } .tl-check:has(input:checked) { border-color: var(--blue); background: var(--blue); } .tl-body { flex: 1; min-width: 0; } .tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; font-weight: 600; } .tl-sub { font-size: 12px; color: var(--ink-3); } .tl-summary { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; } .tl-actions { display: flex; gap: 10px; margin-top: 4px; opacity: .7; } .timeline li:hover .tl-actions { opacity: 1; } .version-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; } .reader-text { font-family: var(--serif); font-size: 15.5px; line-height: 2; white-space: pre-wrap; word-break: break-word; color: var(--ink); } .diff-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); margin-bottom: 10px; } .diff-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .diff-legend i.del { background: var(--err-soft); border: 1px solid var(--err); } .diff-legend i.add { background: var(--ok-soft); border: 1px solid var(--ok); } .diff-body { display: flex; flex-direction: column; gap: 2px; font-family: var(--serif); font-size: 14.5px; line-height: 1.9; } .diff-row { padding: 4px 10px; border-radius: 4px; white-space: pre-wrap; word-break: break-word; } .diff-row.same { color: var(--ink-3); } .diff-row.add { background: var(--ok-soft); border-left: 3px solid var(--ok); } .diff-row.del { background: var(--err-soft); border-left: 3px solid var(--err); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 50%, transparent); } .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .mini-stats > div { padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; } .mini-stats b { font-family: var(--serif); font-size: 18px; } .mini-stats span { font-size: 11.5px; color: var(--ink-3); } .hints { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; } .hints li { padding: 7px 10px; border-radius: 7px; background: var(--ok-soft); color: var(--ink-2); } .hints li.warn { background: var(--warn-soft); } .check-result { border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); } .cr-pass { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .cr-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .cr-error { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 30%, transparent); } .cr-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; } .issues { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13px; margin: 6px 0; } .issues li { padding-left: 14px; position: relative; } .issues li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); } .issues li.error::before { background: var(--err); } .issues li.warning::before { background: var(--warn); } .dims { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .ref-card { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--paper); display: flex; flex-direction: column; gap: 5px; } .ref-sum { font-weight: 600; font-size: 13.5px; line-height: 1.55; } .ref-meta { font-size: 11.5px; color: var(--ink-3); } .ref-hook { font-family: var(--serif); font-size: 13px; color: var(--ink-2); } .ref-text { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .task { text-align: left; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; display: flex; flex-direction: column; gap: 2px; } .task span, .task small { font-size: 11.5px; color: var(--ink-3); } .task:hover { border-color: var(--ink-4); } .task.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); } .prompt-box { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); } .prompt-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); background: var(--bg); } .prompt-box .pre, .pre { margin: 0; padding: 12px; max-height: 320px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); } .req { padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13px; } .req + .req { margin-top: 6px; } .req-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; } .req-st { margin-left: auto; color: var(--warn); } /* ============================================================ 作品圣经 / 大纲 / 参考素材 ============================================================ */ .page.doc { max-width: 900px; } .doc-head { margin-bottom: 18px; } .doc-head .row { margin-top: 14px; } .doc-tabs { margin-bottom: 4px; } .doc-body { padding-bottom: 60px; } .savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; gap: 10px; margin: 26px auto 0; width: fit-content; min-width: 320px; padding: 8px 8px 8px 18px; background: var(--raised); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow); } .savebar.dirty { border-color: color-mix(in srgb, var(--accent) 40%, transparent); } .savebar-state { flex: 1; font-size: 13px; color: var(--ink-3); } .savebar.dirty .savebar-state { color: var(--accent); } .savebar .btn { border-radius: 99px; } .fs-summary { display: flex; gap: 16px; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; } .fs-summary b { color: var(--ink); font-family: var(--serif); } .ref-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; } .ref-slot { position: relative; min-height: 220px; border-radius: 4px 10px 10px 4px; padding: 18px 16px 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--paper-shadow); display: flex; flex-direction: column; gap: 8px; } .ref-slot.empty { border: 1.5px dashed var(--line-2); box-shadow: none; background: transparent; align-items: center; justify-content: center; color: var(--ink-4); } .slot-n { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1; } .ref-slot.empty .slot-n { color: var(--ink-4); } .slot-head { display: flex; align-items: center; gap: 6px; } .slot-sum { font-family: var(--serif); font-weight: 600; font-size: 15px; line-height: 1.6; } .slot-text { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } .slot-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); } .mat-grid.compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } .mini-mat { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; } .mm-meta { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px; } .mm-sum { font-weight: 600; font-size: 13.5px; line-height: 1.55; } .mm-hook { font-family: var(--serif); font-size: 13px; color: var(--ink-2); } .mm-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; } /* ============================================================ 素材馆 ============================================================ */ .room { max-width: 1280px; margin: 0 auto; padding: 30px 36px 70px; } .room-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; } .room-title { font-size: 26px; font-weight: 700; } .room-tabs { margin-bottom: 20px; } .basket-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; } .basket-btn:hover { border-color: var(--ink-4); } .basket-btn.has { border-color: var(--accent); color: var(--accent); } .basket-btn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; } .mat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; } .mat-layout:has(.filters.collapsed) { grid-template-columns: 1fr; } .filters { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); max-height: calc(100vh - 32px); overflow: auto; } .filters.collapsed { display: none; } .filters-head .seg { width: 100%; } .filters-head .seg button { flex: 1; } .filters-foot { font-size: 12px; border-top: 1px solid var(--line); padding-top: 10px; } .fgroup { display: flex; flex-direction: column; gap: 7px; } .fgroup-label { font-size: 11.5px; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; } .fgroup-body { display: flex; flex-wrap: wrap; gap: 5px; } .fgroup-body .check { width: 100%; } .mat-main { min-width: 0; } .mat-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; } .mat-count { color: var(--ink-3); font-size: 13px; } .lucky { padding: 16px; margin-bottom: 20px; border-radius: var(--r-l); background: var(--accent-soft); } .lucky .mat-grid { margin-top: 12px; } .mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; transition: opacity .2s; } .mat-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) 4px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; position: relative; } .mat-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); } .mat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); } .mat-card:hover::before { background: var(--accent); } .mc-meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); } .mc-genre { color: var(--accent); font-weight: 600; } .mc-kind { padding: 0 6px; border-radius: 4px; background: var(--bg-2); } .mc-meta .stars { margin-left: auto; } .mc-title { font-family: var(--serif); font-size: 15.5px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .mc-hook { font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .mc-excerpt { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .mc-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; padding-top: 4px; border-top: 1px dashed var(--line); } .mat-detail { display: flex; flex-direction: column; gap: 14px; } .md-title { font-size: 21px; line-height: 1.55; } .md-sum { color: var(--ink-2); line-height: 1.8; } .md-src { font-size: 12.5px; } .breakdown { display: flex; flex-direction: column; gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); } .bd-hook { display: flex; gap: 10px; font-family: var(--serif); font-size: 16px; line-height: 1.8; color: var(--ink); padding: 4px 0 4px; } .bd-hook svg { color: var(--accent); flex: none; margin-top: 6px; } .bd-block h4, .mcard-block h4, .md-text h4, .genre h4, .rl-block h4 { font-size: 12px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 7px; font-weight: 600; } .beats { padding-left: 0; list-style: none; counter-reset: b; display: flex; flex-direction: column; gap: 6px; } .beats li { counter-increment: b; position: relative; padding-left: 28px; line-height: 1.75; font-size: 13.5px; } .beats li::before { content: counter(b); position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: grid; place-items: center; } .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; } .person { padding: 9px 11px; border-radius: 8px; background: var(--bg); font-size: 13px; line-height: 1.65; } .person b { display: block; margin-bottom: 2px; } .person.wide { grid-column: 1 / -1; } .arc { font-size: 13.5px; color: var(--ink-2); } .scene { font-size: 14.5px; line-height: 1.9; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 8px 8px 0; } .details { list-style: none; display: flex; flex-direction: column; gap: 5px; } .details li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.7; } .details li::before { content: "·"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; } .details.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; } .bd-tags { display: flex; flex-wrap: wrap; gap: 6px; } .md-text { border-top: 1px solid var(--line); padding-top: 14px; } .md-text .reader-text { padding: 16px 20px; background: var(--paper); border-radius: var(--r); border: 1px solid var(--line); margin-top: 6px; } .edits { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; } .edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .edit-row .del, .edit-row del { background: var(--err-soft); padding: 4px 8px; border-radius: 5px; text-decoration: line-through; color: var(--ink-2); } .edit-row .ins, .edit-row ins { background: var(--ok-soft); padding: 4px 8px; border-radius: 5px; text-decoration: none; } .pick-list { display: flex; flex-direction: column; gap: 6px; } .pick-item { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); text-align: left; } .pick-item:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); } .basket-list { display: flex; flex-direction: column; gap: 10px; } .basket-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); } .bi-top { display: flex; align-items: center; gap: 8px; font-size: 12px; } .bi-sum { text-align: left; margin-top: 6px; font-family: var(--serif); font-size: 14.5px; line-height: 1.65; } .bi-sum:hover { color: var(--accent); } /* motifs */ .motifs .page-sub { margin: 0 0 20px; } .motif-group { margin-bottom: 28px; } .mg-title { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; } .mg-title::after { content: ""; flex: 1; height: 1px; background: var(--line); } .motif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } .motif-tile { text-align: left; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 4px; transition: all .15s; } .motif-tile:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-s); } .motif-tile b { font-family: var(--serif); font-size: 16px; } .motif-tile span { font-size: 12px; color: var(--ink-3); } .pairs { display: flex; flex-wrap: wrap; gap: 8px; } .pair { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; background: var(--surface); } .pair:hover { border-color: var(--accent); color: var(--accent); } .pair em { font-style: normal; color: var(--ink-3); font-size: 11.5px; margin-left: 4px; } .md-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; } .md-head .row { margin-top: 8px; } .motif-card { display: flex; flex-direction: column; gap: 20px; padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--paper-shadow); margin-bottom: 26px; } .mcard-summary { font-size: 16.5px; line-height: 1.9; } .mcard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; } .mcard-block.avoid { padding: 12px 14px; border-radius: 8px; background: var(--err-soft); } .variant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .variant { padding: 10px 12px; border-radius: 8px; background: var(--bg); font-size: 13px; line-height: 1.7; } .variant b { display: block; margin-bottom: 2px; } .hook-list { list-style: none; display: flex; flex-direction: column; gap: 8px; } .hook-list li { font-family: var(--serif); font-size: 14px; line-height: 1.75; padding-left: 12px; border-left: 2px solid var(--accent); } /* compose */ .compose { display: flex; flex-direction: column; gap: 18px; max-width: 1080px; } .compose-input { margin-top: 0; display: flex; flex-direction: column; gap: 12px; } .idea { font-size: 17px; } .motif-chips { display: flex; flex-direction: column; gap: 8px; } .mchip-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; } .mchip-grp { width: 42px; font-size: 12px; color: var(--ink-3); flex: none; } .compose-result { display: flex; flex-direction: column; gap: 14px; } .mcard-mini { padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); } .mcard-mini p { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; } .skeleton { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; } .skeleton span { font-size: 12px; padding: 3px 9px; background: var(--bg); border-radius: 5px; position: relative; } .skeleton span + span::before { content: "→"; margin-right: 6px; color: var(--ink-4); } .role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .role-slot { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; } .rs-head { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 12.5px; } .rs-head b { font-size: 14px; } .rs-body { padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; flex: 1; background: var(--paper); } .rs-body:hover .rs-sum { color: var(--accent); } .rs-body.empty { cursor: default; font-size: 13px; } .rs-sum { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.65; } .rs-note { font-size: 12.5px; color: var(--ink-2); } .cands { border-top: 1px dashed var(--line); padding: 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); } .cand { text-align: left; padding: 7px 9px; border-radius: 6px; font-size: 12.5px; line-height: 1.55; } .cand:hover { background: var(--accent-soft); } /* batches */ .batches { display: flex; flex-direction: column; gap: 16px; } .batch-intro { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); } .bi-text { flex: 1; min-width: 260px; color: var(--ink-2); line-height: 1.8; } .bi-actions { display: flex; gap: 8px; flex-wrap: wrap; } .batch-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); } .batch-row { display: flex; align-items: center; gap: 14px; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--line); } .batch-row:last-child { border-bottom: 0; } .batch-row:hover { background: var(--bg); } .br-n { font-family: var(--serif); font-weight: 600; min-width: 64px; } .br-range { color: var(--ink-2); } .br-uid { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; } /* ============================================================ 采集 ============================================================ */ .sources { display: flex; height: 100%; } .src-side { width: 270px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); height: 100%; } .src-side-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px 14px; } .src-home { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-family: var(--serif); font-size: 16px; } .src-special { display: flex; flex-direction: column; padding: 0 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; } .src-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); text-align: left; } .src-link:hover { background: var(--bg-2); color: var(--ink); } .src-link.on { background: var(--accent-soft); color: var(--accent); } .src-list { flex: 1; overflow: auto; padding: 0 8px 12px; display: flex; flex-direction: column; gap: 1px; } .src-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-align: left; } .src-item:hover { background: var(--bg-2); } .src-item.on { background: var(--accent-soft); } .si-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; } .si-text b { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .si-text span { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .src-item.on b { color: var(--accent); } .si-flag { color: var(--warn); flex: none; } .avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--bg-2); } .avatar.ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-family: var(--serif); } .src-main { flex: 1; min-width: 0; height: 100%; overflow: auto; } .ch-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; } .ch-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); text-align: left; } .ch-card:hover { border-color: var(--accent); } .cc-text { min-width: 0; display: flex; flex-direction: column; } .cc-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cc-text span { font-size: 12px; color: var(--ink-3); } .ch-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; } .ch-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .ch-head .page-title { font-size: 24px; } .ch-head .muted a { color: var(--ink-3); } .ch-desc { font-size: 13px; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; white-space: pre-wrap; max-width: 680px; } .ch-desc.open { -webkit-line-clamp: unset; } .ch-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .post-list { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; } .post { padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; } .post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; } .post-meta .muted { display: inline-flex; align-items: center; gap: 3px; } .post-tools { margin-left: auto; display: flex; gap: 2px; opacity: .5; transition: opacity .15s; } .post:hover .post-tools { opacity: 1; } .post-text { font-family: var(--serif); font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; } .post-text.clamp { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; } .reactions { display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); } .btn.block.ghost { margin-top: 14px; } .score { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 700; font-size: 12px; background: var(--bg-2); color: var(--ink-2); font-family: var(--serif); } .score.s5 { background: var(--accent); color: var(--accent-ink); } .score.s4 { background: var(--accent-soft); color: var(--accent); } .logline { font-size: 15px; font-weight: 600; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 6px 6px 0; line-height: 1.7; } .detail-quote { font-size: 13px; color: var(--ink-2); font-family: var(--serif); } .inspo-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 6px; border-top: 1px dashed var(--line); } .saved-note { font-size: 12.5px; color: var(--ink-2); padding: 6px 10px; background: var(--warn-soft); border-radius: 6px; } .note-edit { display: flex; gap: 8px; } .filled { fill: currentColor; } .presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 12px; } .preset { text-align: left; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 2px; } .preset span { font-size: 12px; color: var(--ink-3); } .preset:hover { border-color: var(--ink-4); } .preset.on { border-color: var(--accent); background: var(--accent-soft); } .preset.on b { color: var(--accent); } .inspo-filters { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); } .fline { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; } .flabel { width: 48px; flex: none; font-size: 12px; color: var(--ink-3); font-weight: 600; } .score-dist { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; margin-left: 10px; } .score-dist i { width: 8px; background: var(--accent); opacity: .5; border-radius: 2px 2px 0 0; } .funnel { display: flex; gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); } .funnel-step { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; position: relative; min-width: 0; } .funnel-step + .funnel-step { border-left: 1px solid var(--line); } .funnel-step b { font-family: var(--serif); font-size: 17px; } .funnel-step span { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .funnel-step:last-child b { color: var(--accent); } .bars { display: flex; flex-direction: column; gap: 7px; } .bar-row { display: grid; grid-template-columns: 110px 1fr 50px 110px; gap: 10px; align-items: center; font-size: 13px; } .bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-row .bar { margin: 0; height: 8px; } .bar-n { text-align: right; font-variant-numeric: tabular-nums; } .bar-sub { font-size: 12px; } .spark-bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; } .spark-bars i { flex: 1; background: var(--accent); opacity: .65; border-radius: 2px 2px 0 0; min-height: 2px; } .spark-bars i:hover { opacity: 1; } .emojis { display: flex; flex-wrap: wrap; gap: 8px; } .emojis span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--bg); font-size: 13px; } .emojis b { font-size: 16px; } .disc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; } .disc-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); display: flex; flex-direction: column; gap: 6px; } .disc-item.ignored { opacity: .6; } .disc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .score-badge { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; background: var(--bg-2); color: var(--ink-3); flex: none; } .score-badge.good { background: var(--ok-soft); color: var(--ok); } .disc-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; } .disc-title a { font-size: 12px; } .disc-tags { display: flex; gap: 5px; flex-wrap: wrap; } .disc-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; } .disc-stats { font-size: 12px; } .samples { display: flex; flex-direction: column; gap: 6px; } .sample { font-size: 13px; line-height: 1.75; padding: 8px 12px; background: var(--bg); border-radius: 6px; white-space: pre-wrap; color: var(--ink-2); } .progress-big { position: relative; height: 26px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 20px 0 4px; } .progress-big i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--warn))); border-radius: 99px; transition: width .4s; } .progress-big span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: var(--ink); mix-blend-mode: normal; } .progress-big.slim { height: 18px; } .acct-status { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--bg); } .acct-status.ok svg { color: var(--ok); } .acct-status.off svg { color: var(--ink-4); } .acct-status > div { min-width: 0; } /* ============================================================ 写作手册 ============================================================ */ .guide { display: flex; height: 100%; } .guide-toc { width: 220px; flex: none; padding: 26px 14px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 10px; overflow: auto; } .guide-toc .eyebrow { padding: 0 10px; } .guide-toc nav { display: flex; flex-direction: column; gap: 2px; } .toc-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); text-align: left; } .toc-link:hover { background: var(--bg-2); color: var(--ink); } .toc-link.on { background: var(--accent-soft); color: var(--accent); font-weight: 500; } .guide-toc .small-note { padding: 10px; margin-top: auto; } .guide-body { flex: 1; min-width: 0; height: 100%; overflow: auto; margin: 0; max-width: none; padding-inline: max(40px, calc((100% - 900px) / 2)); } .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 20px; } .fact { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 4px; } .fact-k { font-size: 12px; color: var(--ink-3); } .fact-v { font-size: 19px; color: var(--accent); } .fact p { font-size: 13px; color: var(--ink-2); line-height: 1.75; } .src-refs { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: 1px; } .src-ref { font-size: 10.5px; padding: 0 5px; border-radius: 3px; background: var(--bg-2); color: var(--ink-3); line-height: 17px; } .src-ref.official { background: var(--blue-soft); color: var(--blue); } .src-ref:hover { text-decoration: none; color: var(--accent); } .roadmap { list-style: none; display: flex; flex-direction: column; position: relative; } .roadmap::before { content: ""; position: absolute; left: 44px; top: 10px; bottom: 10px; width: 1px; background: var(--line-2); } .roadmap li { display: flex; gap: 22px; padding: 10px 0; position: relative; } .rm-w { width: 90px; flex: none; text-align: right; font-size: 12.5px; color: var(--accent); font-weight: 600; padding-top: 2px; position: relative; background: var(--bg); z-index: 1; padding-right: 10px; margin-right: -10px; } .rm-body { flex: 1; padding: 0 0 6px; } .rm-body b { font-family: var(--serif); font-size: 16px; } .rm-body p { color: var(--ink-2); font-size: 13.5px; line-height: 1.8; margin: 2px 0 4px; } .genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } .genre { padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; } .genre.pick { border-color: color-mix(in srgb, var(--accent) 40%, transparent); } .genre-head { display: flex; align-items: center; gap: 8px; } .genre-head b { font-family: var(--serif); font-size: 15.5px; } .genre-meter { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; } .dots { display: inline-flex; gap: 2px; margin-left: 4px; vertical-align: 1px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); } .dots i.on { background: var(--ok); } .genre p { font-size: 13px; color: var(--ink-2); line-height: 1.75; } .genre h4 { margin: 4px 0 0; } .bullets { list-style: none; display: flex; flex-direction: column; gap: 4px; } .bullets li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.7; color: var(--ink-2); } .bullets li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); } .bullets.warn li::before { background: var(--err); } .flow { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 18px; } .flow-step { display: flex; gap: 16px; } .flow-n { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; } .flow-body { flex: 1; min-width: 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); } .flow-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .flow-head b { font-family: var(--serif); font-size: 16px; } .flow-items { list-style: none; display: flex; flex-direction: column; gap: 6px; } .flow-items li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); } .flow-items li svg { flex: none; margin-top: 5px; color: var(--ok); } .flow-items li.warn svg { color: var(--warn); } .flow-items li.warn { color: var(--ink); } .exp { flex: none; font-size: 10.5px; padding: 0 5px; height: 17px; line-height: 17px; margin-top: 4px; border-radius: 3px; background: var(--blue-soft); color: var(--blue); } .redlines { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; } .redline { padding: 16px 20px; background: var(--paper); border: 1px solid var(--line); border-left-width: 4px; border-radius: 4px var(--r) var(--r) 4px; display: flex; flex-direction: column; gap: 10px; } .redline.risk-ban { border-left-color: var(--err); } .redline.risk-down { border-left-color: var(--accent); } .redline.risk-limit { border-left-color: var(--warn); } .redline.risk-reject { border-left-color: var(--blue); } .redline > p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); } .rl-head { display: flex; align-items: center; gap: 10px; } .rl-head h3 { flex: 1; font-size: 16px; } .rl-cat { font-size: 18px; } .risk-badge { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; } .risk-badge.risk-ban { background: var(--err-soft); color: var(--err); } .risk-badge.risk-down { background: var(--accent-soft); color: var(--accent); } .risk-badge.risk-limit { background: var(--warn-soft); color: var(--warn); } .risk-badge.risk-reject { background: var(--blue-soft); color: var(--blue); } .rl-block.safe { padding: 10px 12px; background: var(--ok-soft); border-radius: 7px; } .rl-block.safe p { font-size: 13px; line-height: 1.75; } .rl-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; } .checklist { list-style: none; display: flex; flex-direction: column; } .checklist li { border-bottom: 1px dashed var(--line); } .checklist li:last-child { border-bottom: 0; } .checklist label { display: flex; gap: 10px; padding: 9px 2px; cursor: pointer; align-items: flex-start; font-size: 14px; line-height: 1.7; } .checklist input { margin-top: 5px; accent-color: var(--ok); width: 16px; height: 16px; flex: none; } .checklist em { display: block; font-style: normal; font-size: 12px; } .checklist li.done span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); } .beats-line { display: flex; flex-direction: column; gap: 10px; } .beat-card { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; } .beat-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .beat-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; } .beat-top b { font-family: var(--serif); font-size: 15.5px; } .beat-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; } .beat-card blockquote, .vol blockquote { margin: 2px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.8; } .vol-list .sheet:first-child { margin-top: 0; } .vol p { color: var(--ink-2); font-size: 13.5px; line-height: 1.8; margin-bottom: 10px; } .vol-beats { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.7; } .frame-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .frame-table th, .frame-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; } .frame-table th { font-family: var(--serif); white-space: nowrap; font-weight: 600; } .frame-table thead th { font-family: var(--sans); font-size: 12px; color: var(--ink-3); } .frame-table tr:last-child th, .frame-table tr:last-child td { border-bottom: 0; } .guide-body > .frame-table { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; } .ai-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; } .ai-step { display: flex; gap: 12px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); } .ai-n { font-size: 15px; color: var(--accent); font-weight: 700; white-space: nowrap; } .ai-step b { font-size: 14.5px; } .ai-step p { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin-top: 4px; } .role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 20px; } .role-card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); } .rc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .rc-head b { font-family: var(--serif); font-size: 15.5px; } .rc-i { font-size: 18px; } .role-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; line-height: 1.7; } .role-card dt { color: var(--ink-3); font-size: 12px; padding-top: 1px; } .role-card dd { margin: 0; color: var(--ink-2); } .src-list-doc { list-style: none; display: flex; flex-direction: column; } .src-list-doc li { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; } .src-list-doc li:last-child { border-bottom: 0; } .src-list-doc .muted { white-space: nowrap; font-size: 12px; } /* ============================================================ 响应式 ============================================================ */ @media (max-width: 1180px) { .inspector { width: 340px; } .paper { padding: 54px 52px 48px; } } @media (max-width: 1000px) { .editor.with-inspector .inspector { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: var(--shadow-l); } .binder { position: absolute; left: 0; top: 0; bottom: 0; z-index: 40; box-shadow: var(--shadow-l); } .mat-layout { grid-template-columns: 1fr; } .filters { position: static; max-height: none; } .src-side { width: 230px; } .guide-toc { width: 180px; } .mcard-cols { grid-template-columns: 1fr; } } @media (max-width: 760px) { :root { --rail-w: 0px; } .shell { flex-direction: column-reverse; } .rail { width: 100%; height: 58px; flex-direction: row; padding: 0 6px; border-right: 0; border-top: 1px solid var(--line); justify-content: space-around; gap: 0; } .rail-brand { display: none; } .rail-items, .rail-foot { flex-direction: row; margin: 0; gap: 0; } .rail-item { width: 56px; padding: 6px 0 4px; } .stage { height: calc(100% - 58px); } .page, .room { padding: 22px 16px 70px; } .page-title { font-size: 23px; } .page-head, .room-head { flex-direction: column; align-items: flex-start; } .form-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .paper, .paper.w-narrow { padding: 34px 22px 30px; margin: 8px 8px 80px; } .editor-bar { padding: 0 8px 0 50px; } .eb-crumb { display: none; } .inspector { width: 100% !important; } .about-stats { grid-template-columns: 1fr 1fr; } .quick-links { grid-template-columns: 1fr; } .ref-slots { grid-template-columns: 1fr; } .sources, .guide { flex-direction: column; } .src-side { width: 100%; height: auto; max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); } .src-main { height: auto; overflow: visible; } .sources { height: auto; min-height: 100%; } .guide { height: auto; } .guide-toc { width: 100%; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); } .guide-toc nav { flex-direction: row; overflow-x: auto; } .guide-toc .small-note { display: none; } .toc-link { white-space: nowrap; } .guide-body { height: auto; overflow: visible; padding-inline: 16px; } .presets { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 80px 1fr 40px; } .bar-sub { display: none; } .funnel { flex-wrap: wrap; } .ch-head { flex-wrap: wrap; } .details.cols { grid-template-columns: 1fr; } .roadmap::before { left: 30px; } .rm-w { width: 60px; } .task-list { grid-template-columns: 1fr; } } @media print { .rail, .binder, .editor-bar, .inspector, .binder-peek { display: none !important; } .paper { box-shadow: none; border: 0; margin: 0; max-width: none; } }
/* ============================================================
小说写作台 · 稿纸主题
============================================================ */
:root {
--bg: #f3efe6;
--bg-2: #ebe5d8;
--surface: #fbf9f4;
--paper: #fffdf8;
--raised: #ffffff;
--ink: #2a2622;
--ink-2: #57504a;
--ink-3: #8c847b;
--ink-4: #b8b0a5;
--line: #e2dbcd;
--line-2: #d4ccbc;
--accent: #b8432f;
--accent-2: #9c3624;
--accent-soft: #f4e2dc;
--accent-ink: #fff;
--ok: #4f7a4a;
--ok-soft: #e3eddc;
--warn: #b07a1c;
--warn-soft: #f6ead0;
--err: #b23a2e;
--err-soft: #f6dcd8;
--blue: #3c6488;
--blue-soft: #dee8f1;
--shadow-s: 0 1px 2px rgba(60, 45, 30, .06), 0 1px 1px rgba(60, 45, 30, .04);
--shadow: 0 2px 6px rgba(60, 45, 30, .06), 0 10px 30px -12px rgba(60, 45, 30, .18);
--shadow-l: 0 24px 60px -20px rgba(40, 30, 20, .35), 0 4px 14px rgba(40, 30, 20, .08);
--paper-shadow: 0 1px 0 rgba(0, 0, 0, .02), 0 12px 40px -18px rgba(70, 50, 30, .28);
--r: 10px;
--r-s: 7px;
--r-l: 14px;
--sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
--serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
--rail-w: 72px;
color-scheme: light;
}
[data-theme="night"] {
--bg: #1a1917;
--bg-2: #22201d;
--surface: #201f1c;
--paper: #252320;
--raised: #2b2925;
--ink: #e8e2d6;
--ink-2: #bdb5a8;
--ink-3: #8b8479;
--ink-4: #615b52;
--line: #34312c;
--line-2: #433f39;
--accent: #e07a5f;
--accent-2: #f08f74;
--accent-soft: #3a2621;
--accent-ink: #1a1917;
--ok: #8fbf86;
--ok-soft: #233022;
--warn: #e0b45c;
--warn-soft: #352c1a;
--err: #ec8576;
--err-soft: #3b2220;
--blue: #8db4d8;
--blue-soft: #1f2a35;
--shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
--shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .5);
--shadow-l: 0 24px 60px -20px rgba(0, 0, 0, .7);
--paper-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 18px 40px -20px rgba(0, 0, 0, .6);
color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
margin: 0; background: var(--bg); color: var(--ink);
font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--ink-4); }
::-webkit-scrollbar-track { background: transparent; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-3); }
.small-note { font-size: 12px; line-height: 1.6; }
.nowrap { white-space: nowrap; }
.push { margin-left: auto; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.row { display: flex; align-items: center; }