.book-edit-page .head-actions { display: flex; gap: 10px; flex-wrap: wrap; } .file-btn, .ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text); border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; } .meta-form { margin-bottom: 16px; } .editor-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 14px; min-height: 70vh; align-items: stretch; } .editor-grid.full { grid-template-columns: 1fr 1fr; } .chapter-rail { border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.18); overflow: hidden; display: flex; flex-direction: column; } .rail-title { padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-display); } .rail-list { overflow: auto; max-height: 68vh; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .rail-item { text-align: left; border: none; background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 10px; cursor: pointer; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font: inherit; } .rail-item em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rail-item.active, .rail-item:hover { background: rgba(94, 196, 120, 0.12); color: var(--text); } .editor-pane, .preview-pane { border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; min-height: 70vh; overflow: hidden; } .pane-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .md-editor { flex: 1; width: 100%; border: none; resize: none; background: transparent; color: var(--text); padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; outline: none; } .md-preview { flex: 1; overflow: auto; padding: 16px 18px 28px; color: #d7ebdd; line-height: 1.75; font-size: 14px; } .md-preview h1, .md-preview h2, .md-preview h3 { font-family: var(--font-display); color: #f2fff7; margin: 16px 0 8px; } .md-preview img { display: block; width: 80%; max-width: 80%; height: auto; margin: 12px auto; border-radius: 10px; object-fit: contain; } .md-preview blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid #6fcf8f; background: rgba(90, 170, 120, 0.12); color: #b7d8c2; } .md-preview code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 4px; } .md-preview a { color: #8fd4a8; } @media (max-width: 1100px) { .editor-grid, .editor-grid.full { grid-template-columns: 1fr; } .rail-list { max-height: 240px; } .editor-pane, .preview-pane { min-height: 420px; } } .offer-board { margin-bottom: 18px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); } .monetize-panel { margin-bottom: 22px; padding: 18px; border-radius: 18px; border: 1px solid rgba(167, 139, 250, 0.22); background: radial-gradient(520px 180px at 0% 0%, rgba(244, 114, 182, 0.12), transparent 60%), rgba(0, 0, 0, 0.22); } .monetize-head { display: flex; justify-content: space-between; gap: 18px; align-items: stretch; flex-wrap: wrap; margin-bottom: 16px; } .monetize-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; } .live-preview { min-width: 220px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(12, 11, 18, 0.55); display: flex; flex-direction: column; gap: 8px; align-items: stretch; } .live-preview-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; } .live-btn { height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #3b0764; background: linear-gradient(135deg, #ffffff, #fce7f3); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); } .live-btn.free { color: #062012; background: linear-gradient(135deg, #bbf7d0, #6ee7b7); } .live-preview-sub { font-size: 12px; color: #c4b5d8; } .offer-board-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; } .offer-status { padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; } .offer-status.free { background: rgba(110, 231, 183, 0.16); color: #6ee7b7; } .offer-status.paid { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; } .offer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .offer-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .offer-card { position: relative; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); border-radius: 14px; padding: 12px 10px 14px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font: inherit; transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease; } .offer-card:hover { border-color: rgba(244, 114, 182, 0.45); transform: translateY(-1px); } .offer-card.active { border-color: #f472b6; box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.35); background: rgba(244, 114, 182, 0.08); } .offer-card.is-free.active { border-color: #6ee7b7; box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.35); background: rgba(110, 231, 183, 0.08); } .offer-img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; display: block; } .offer-free-badge { width: 64px; height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #1f2937, #111827); color: #a7f3d0; font-weight: 800; letter-spacing: 1px; font-size: 13px; } .offer-card strong { font-size: 14px; } .offer-card .offer-id { font-size: 11px; color: var(--muted); word-break: break-all; text-align: center; line-height: 1.3; } .offer-card em { font-style: normal; font-size: 15px; font-weight: 700; color: #fce7f3; } .offer-remark { font-style: normal; font-size: 10px; color: #8b7fa3; text-align: center; line-height: 1.3; } .offer-on { position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(244, 114, 182, 0.9); color: #fff; } .offer-card.is-free .offer-on { background: rgba(16, 185, 129, 0.9); } .unlock-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; } .monetize-unlock { margin-top: 16px; margin-bottom: 0; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.1); } .unlock-row { display: flex; align-items: center; gap: 12px; } .unlock-row input[type='range'] { flex: 1; } .price-box input { width: 100%; } .mono-box { display: grid; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); } .mono-box label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; } .mono-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: #f3eefc; } .yuan { margin: 6px 0 12px; color: var(--muted); font-size: 13px; } .hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; } .free-hint { margin-bottom: 14px; } .free-banner { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(110, 231, 183, 0.1); border: 1px solid rgba(110, 231, 183, 0.28); color: #a7f3d0; font-size: 13px; } @media (max-width: 1200px) { .offer-grid, .offer-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (max-width: 900px) { .offer-grid, .offer-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .unlock-hero { grid-template-columns: 1fr; } }