:root {
  --green: #07c160; --green-dark: #06a957; --ink: #1f2329; --muted: #86909c;
  --line: #e5e6eb; --wash: #f5f6f7; --paper: #fff; --link: #1a73e8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 1080px; color: var(--ink); background: var(--wash); font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; }
button, input, textarea, select { font: inherit; } button { cursor: pointer; }
.app-header { height: 60px; display: flex; align-items: center; padding: 0 26px; background: #fff; border-bottom: 1px solid #eee; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 245px; color: #252525; text-decoration: none; font-size: 18px; }
.brand small { margin-left: 7px; color: #909399; font-size: 12px; font-weight: 400; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--green); font-weight: 800; }
.header-tools { display: flex; gap: 2px; padding: 6px; background: #f7f7f7; }
.workspace-switcher { display: flex; margin-right: 24px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }.workspace-switcher button { padding: 6px 12px; border: 0; color: #4e5969; background: #fff; }.workspace-switcher button.active { color: #fff; background: var(--green); }
.header-tools button, .formatbar button { border: 0; color: #4e5969; background: transparent; }
.header-tools button { padding: 5px 13px; }.header-tools button:hover, .formatbar button:hover { color: var(--green-dark); background: #e9f8ef; }
.header-status { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #86909c; font-size: 12px; }.header-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }.header-status button { margin-left: 13px; border: 0; color: #73777c; background: none; }
.formatbar { height: 45px; display: flex; justify-content: center; align-items: center; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
.formatbar button { min-width: 30px; height: 29px; font-size: 15px; border-radius: 3px; }.tool-separator { width: 1px; height: 18px; margin: 0 8px; background: #e6e7eb; }
.workspace { display: grid; grid-template-columns: 300px minmax(590px, 770px) 230px; justify-content: center; gap: 28px; min-height: calc(100vh - 154px); padding: 30px 24px 100px; }
.draft-rail { align-self: start; padding: 14px; background: #fff; border-radius: 3px; box-shadow: 0 1px 5px rgba(0,0,0,.04); }
.rail-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; color: #4e5969; }.rail-heading button { border: 0; color: var(--green-dark); background: none; font-size: 13px; }
.draft-list { display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.draft-item { position: relative; min-height: 91px; padding: 12px 12px 12px 101px; border: 1px solid transparent; background: #fafafa; text-align: left; }.draft-item.active { border-color: var(--green); background: #f7fffa; }.draft-item:hover { background: #f7f8fa; }
.draft-thumb { position: absolute; left: 12px; top: 12px; width: 76px; height: 57px; display: grid; place-items: center; overflow: hidden; color: #a9aeb8; background: linear-gradient(#e4e6e9,#c4c7ca); font-size: 12px; }.draft-thumb img { width: 100%; height: 100%; object-fit: cover; }
.draft-item b, .draft-item small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.draft-item b { font-size: 13px; }.draft-item small { margin-top: 5px; color: #86909c; font-size: 11px; }
.history { width: 100%; margin-top: 14px; padding: 12px 5px 1px; color: #4e5969; background: none; border: 0; border-top: 1px solid #f0f1f3; text-align: left; }.history span { float: right; }
.editing-column { min-width: 0; }.editor-paper { position: relative; min-height: 650px; padding: 60px 94px 78px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.07); }
.article-title { width: calc(100% - 58px); padding: 0; color: #1d2129; border: 0; outline: 0; font-size: 30px; font-weight: 500; line-height: 1.4; }.article-title::placeholder, .article-author::placeholder { color: #c9cdd4; }
.field-hint { position: absolute; top: 70px; right: 55px; color: #a9aeb8; font-size: 12px; }.article-author { width: 100%; margin-top: 12px; padding: 0 0 22px; color: #4e5969; border: 0; border-bottom: 1px solid #f2f3f5; outline: 0; font-size: 14px; }
.article-body { min-height: 470px; margin-top: 26px; outline: 0; color: #282d36; font-size: 16px; line-height: 2; }.article-body:empty::before { content: attr(data-placeholder); color: #b8bdc6; pointer-events: none; }.article-body h2 { margin: 25px 0 14px; font-size: 22px; line-height: 1.5; }.article-body p { margin: 0 0 18px; }.article-body blockquote { margin: 20px 0; padding: 8px 18px; border-left: 3px solid var(--green); color: #73777c; background: #f7f8fa; }.article-body a { color: var(--link); text-decoration: underline; }.article-body img { display: block; max-width: 100%; height: auto; margin: 20px auto; }.article-body hr { margin: 28px 0; border: 0; border-top: 1px solid #dfe2e6; }
.publish-settings { margin-top: 22px; padding: 30px 38px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.05); }.publish-settings h2 { margin: 0 0 22px; font-size: 17px; }
.cover-summary { display: grid; grid-template-columns: 240px 1fr; gap: 22px; }.cover-picker { height: 135px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #c9ced6; background: #fafafa; cursor: pointer; }.cover-picker input { display: none; }.cover-picker img { width: 100%; height: 100%; object-fit: cover; }.cover-picker span { color: #a2a8b2; text-align: center; font-size: 25px; }.cover-picker small { display: block; margin-top: 8px; font-size: 12px; }
.summary-field, .setting-grid label { display: flex; flex-direction: column; gap: 7px; color: #4e5969; font-size: 13px; }.summary-field { position: relative; }.summary-field textarea, .setting-grid input, .setting-grid select { width: 100%; padding: 9px 10px; border: 1px solid #dfe2e6; outline: 0; color: #1d2129; background: #fff; }.summary-field textarea:focus, .setting-grid input:focus, .setting-grid select:focus { border-color: var(--green); }.summary-field small { position: absolute; right: 10px; bottom: 8px; color: #a9aeb8; }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 25px; }.setting-grid .wide { grid-column: span 2; }.setting-toggle { display: flex; align-items: center; gap: 9px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #f0f1f3; }.setting-toggle input { accent-color: var(--green); }.setting-toggle small { color: #86909c; font-size: 12px; }
.preview-rail { align-self: start; }.preview-label { margin: 4px 0 12px; color: #86909c; font-size: 12px; }.mini-phone { padding: 14px; overflow: hidden; background: #fff; border: 8px solid #272727; border-radius: 21px; box-shadow: 0 4px 15px rgba(0,0,0,.12); }.phone-top { margin-bottom: 10px; text-align: center; color: #4e5969; font-size: 11px; }.mini-cover { height: 80px; display: grid; place-items: center; overflow: hidden; color: #fff; background: linear-gradient(130deg,#48936b,#b4c984); }.mini-cover img { width: 100%; height: 100%; object-fit: cover; }.mini-phone b { display: block; margin: 10px 0 4px; font-size: 13px; line-height: 1.5; }.mini-phone p { display: -webkit-box; margin: 0; overflow: hidden; color: #86909c; font-size: 11px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }.mini-phone small { display: block; margin-top: 12px; color: #a9aeb8; font-size: 10px; }.outline-button, .ghost-button { padding: 8px 14px; color: #4e5969; border: 1px solid #dfe2e6; background: #fff; }.outline-button { width: 100%; margin-top: 15px; }
.action-bar { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; height: 62px; padding: 0 40px; display: flex; align-items: center; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -2px 8px rgba(0,0,0,.03); color: #86909c; font-size: 12px; }.save-state { margin-left: 28px; }.action-bar div { display: flex; gap: 12px; margin-left: auto; }.publish-button { padding: 9px 18px; border: 1px solid var(--green); color: #fff; background: var(--green); }.publish-button:hover { background: var(--green-dark); }
dialog { border: 0; box-shadow: 0 8px 30px rgba(0,0,0,.25); } dialog::backdrop { background: rgba(0,0,0,.45); }.login-dialog form, #linkForm { width: 370px; padding: 32px; display: grid; gap: 14px; }.login-dialog h2, #linkForm h2 { margin: 0; }.login-dialog p { margin: 0; color: #86909c; }.login-dialog label, #linkForm label { display: grid; gap: 7px; color: #4e5969; }.login-dialog input, #linkForm input { padding: 9px; border: 1px solid #dfe2e6; }.error { color: #f53f3f; }.login-dialog .publish-button { margin-top: 5px; }.login-dialog .brand-mark { margin-bottom: 5px; }.eyebrow { color: #86909c; font-size: 11px; letter-spacing: .08em; }#linkForm footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 5px; }#linkForm footer button:first-child { padding: 9px 18px; border: 1px solid #dfe2e6; background: #fff; }
.toast { position: fixed; right: 26px; bottom: 78px; z-index: 8; padding: 10px 16px; color: #fff; background: #1d2129; opacity: 0; transform: translateY(15px); transition: .2s; }.toast.show { opacity: 1; transform: translateY(0); }
.release-workspace { width: min(960px, calc(100% - 48px)); min-height: calc(100vh - 105px); margin: 0 auto; padding: 42px 0 100px; }.release-intro { margin-bottom: 24px; }.release-intro h1 { margin: 6px 0; font-size: 29px; }.release-intro p { color: #86909c; }.release-card { margin-top: 16px; padding: 26px 30px; background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.05); }.release-card h2 { margin: 0 0 7px; font-size: 17px; }.release-card > p { margin: 0 0 18px; color: #86909c; font-size: 13px; }.package-picker { min-height: 106px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 14px; padding: 18px; border: 1px dashed #b7c0bb; background: #f8fcf9; cursor: pointer; }.package-picker input { display: none; }.package-picker span { grid-row: span 2; display: grid; width: 40px; height: 40px; place-items: center; color: var(--green); border: 1px solid #b8ddc5; border-radius: 50%; font-size: 24px; }.package-picker b { color: #30343b; }.package-picker small { color: #86909c; }.release-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }.release-actions span, .release-note { color: #86909c; font-size: 13px; }.release-summary { min-height: 60px; padding: 14px; color: #4e5969; background: #f7f8fa; border-left: 3px solid #c9ced6; white-space: pre-line; }.version-controls { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: end; gap: 14px; }.version-controls label { display: grid; gap: 7px; color: #4e5969; font-size: 13px; }.version-controls select { min-width: 0; padding: 9px; border: 1px solid #dfe2e6; background: #fff; }.danger-button { padding: 9px 13px; border: 1px solid #f53f3f; color: #f53f3f; background: #fff; }.danger-button:disabled, .publish-button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1200px) { .workspace { grid-template-columns: 250px minmax(560px, 730px); }.preview-rail { display: none; } }
