:root{--red:#ed312c;--ink:#262936;--muted:#767b88;--line:#e8eaf0;--soft:#f5f6f8}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--soft);font-family:"PingFang SC","Microsoft YaHei",sans-serif}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}header{height:68px;padding:0 max(24px,calc((100% - 1380px)/2));display:flex;align-items:center;justify-content:space-between;color:#fff;background:linear-gradient(100deg,#c91f27,var(--red))}header div{display:flex;align-items:baseline;gap:12px}header strong{font-size:19px}header span{font-size:12px;opacity:.75}main{width:min(1380px,calc(100% - 36px));margin:24px auto 60px}.tabs{display:flex;gap:6px;margin-bottom:20px}.tabs button{border:0;background:#fff;padding:11px 20px;border-radius:8px;cursor:pointer}.tabs button.active{color:#fff;background:var(--red)}.page{display:none}.page.active{display:block}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.page-title h1{margin:0;font-size:26px}.page-title p{margin:5px 0 0;color:var(--muted)}button{border:0;border-radius:7px;color:#fff;background:var(--red);padding:10px 18px;cursor:pointer}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.loading{padding:50px;text-align:center;color:var(--muted)}.article-filters{display:flex;gap:10px;margin-bottom:12px}.article-filters input{max-width:330px}.article-filters select{width:150px}table{width:100%;border-collapse:collapse}th,td{padding:13px 10px;border-bottom:1px solid var(--line);text-align:left}th{font-size:13px;color:var(--muted)}td small{display:block;color:var(--muted);margin-top:4px}.badge{display:inline-block;padding:3px 7px;border-radius:5px;font-size:12px;background:#f0f1f4}.badge.published{color:#168648;background:#e8f7ee}.badge.draft{color:#a76a00;background:#fff5d9}.edit,.preview-link{color:var(--red);background:#fff0ef;margin-right:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.layout-grid label,.setting-card label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:14px}.wide{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #dcdfe6;border-radius:7px;padding:10px;color:var(--ink);background:#fff;outline:0}textarea{resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus{border-color:var(--red)}.check{flex-direction:row!important;align-items:center}.check input{width:auto}.actions{display:flex;justify-content:flex-end;gap:10px}.secondary{color:var(--ink);background:#eceef2}.layout-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.layout-grid h2{margin-top:0}.layout-grid .card{display:flex;flex-direction:column;gap:14px}.full{grid-column:1/-1}.editor-heading>div:last-child{display:flex;gap:8px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.writing-card{padding:0;overflow:hidden}.title-input{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:25px 28px 16px;font-size:29px;font-weight:700}.summary-input{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:10px 28px 16px;color:var(--muted)}.editor-toolbar{display:flex;align-items:center;gap:3px;flex-wrap:wrap;padding:9px 16px;border-bottom:1px solid var(--line);background:#fafbfc;position:sticky;top:0;z-index:3}.editor-toolbar button{padding:6px 9px;color:#444751;background:transparent;border:1px solid transparent}.editor-toolbar button:hover{color:var(--red);background:#fff;border-color:#dddfe5}.editor-toolbar select{width:110px;padding:6px}.tool-divider{width:1px;height:22px;background:#dadde3;margin:0 4px}.body-editor{min-height:620px;padding:34px 48px;outline:0;font-size:17px;line-height:2;word-break:break-word}.body-editor:empty:before{content:attr(data-placeholder);white-space:pre-wrap;color:#a1a5af}.body-editor h2{font-size:26px;line-height:1.45;border-left:5px solid var(--red);padding-left:12px;margin:35px 0 14px}.body-editor h3{font-size:21px;margin:28px 0 12px}.body-editor p{margin:0 0 18px}.body-editor blockquote{margin:22px 0;padding:16px 20px;border-left:4px solid var(--red);background:#fff6f5;color:#626671}.body-editor img{display:block;max-width:100%;height:auto;margin:22px auto;border-radius:8px}.body-editor table{width:100%;border-collapse:collapse;margin:20px 0}.body-editor td,.body-editor th{border:1px solid #dfe2e8;padding:8px}.word-count{display:flex;justify-content:space-between;padding:10px 20px;color:var(--muted);font-size:12px;border-top:1px solid var(--line);background:#fafbfc}.editor-sidebar{display:flex;flex-direction:column;gap:12px;position:sticky;top:14px}.setting-card{display:flex;flex-direction:column;gap:13px}.setting-card h2{font-size:16px;margin:0;padding-bottom:9px;border-bottom:1px solid var(--line)}.cover-preview{height:140px;display:grid;place-items:center;color:var(--muted);background:#f1f2f5;border-radius:8px;overflow:hidden}.cover-preview img{width:100%;height:100%;object-fit:cover}.danger-link{color:#a22b2b;background:#ffe9e7}.danger-link:hover{background:#ffdad7}dialog{width:min(1100px,94vw);height:88vh;border:0;border-radius:14px;padding:0;box-shadow:0 25px 80px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(25,26,31,.6)}.preview-head{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid var(--line)}.preview-head button{color:#444;background:#eee;font-size:22px;padding:3px 10px}.preview-head+iframe{width:100%;height:calc(100% - 52px);border:0;background:#fff}#message{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;color:#fff;background:#25262d;padding:10px 18px;border-radius:20px;transition:.2s;z-index:100}#message.show{opacity:1;transform:translate(-50%,0)}@media(max-width:900px){header{padding:0 14px}header span{display:none}main{width:calc(100% - 20px)}.editor-layout,.layout-grid{grid-template-columns:1fr}.full{grid-column:1}.editor-sidebar{position:static}.card{overflow:auto}.page-title{align-items:flex-start;gap:10px}.editor-heading{flex-direction:column}.body-editor{padding:28px 20px;min-height:480px}.article-filters{flex-wrap:wrap}}
