*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;background:#f5f5f5;color:#1f2933}
a{text-decoration:none;color:inherit}button,input,textarea,select{font:inherit}button{cursor:pointer}
.admin-auth-page{min-height:100vh;background:radial-gradient(circle at top,#2b342f,#101416 48%,#070809);display:flex;align-items:center;justify-content:center;padding:24px;color:#fff}
.auth-card{width:min(440px,100%);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 80px rgba(0,0,0,.3);border-radius:28px;padding:34px;backdrop-filter:blur(20px)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-brand span,.admin-logo span{width:38px;height:38px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;font-weight:900}.auth-brand strong{font-size:22px}.auth-card h1{margin:0 0 10px;font-size:30px}.auth-card p{color:rgba(255,255,255,.72);line-height:1.7;margin:0 0 24px}.auth-card label{display:block;margin:14px 0 8px;font-weight:800}.auth-card input{width:100%;height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;padding:0 14px;outline:none}.auth-card input::placeholder{color:rgba(255,255,255,.45)}.auth-card button{width:100%;height:50px;border:0;border-radius:999px;background:#fff;color:#111;font-weight:900;margin-top:22px}.auth-tip{margin-top:18px;color:rgba(255,255,255,.72)}.auth-tip a{color:#fff;font-weight:900}.auth-msg{margin-top:16px;color:#ffd4a8;line-height:1.6}
.admin-page{background:#f6f3ee;min-height:100vh}.admin-topbar{height:68px;background:#0e1214;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;z-index:10}.admin-logo{display:flex;align-items:center;gap:12px;font-weight:900}.admin-logo strong{font-size:20px}.admin-topbar nav{display:flex;align-items:center;gap:18px}.admin-topbar nav a,.admin-topbar nav button{color:#fff;background:transparent;border:0;font-weight:800}.admin-wrap{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:46px 0}.admin-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:24px}.admin-title-row h1{margin:0 0 8px;font-size:38px}.admin-title-row p{margin:0;color:#6b7880}.admin-primary,.btn-primary{border:0;border-radius:999px;background:#111820;color:#fff;font-weight:900;padding:12px 22px;display:inline-flex;align-items:center;justify-content:center}.btn-ghost{border:1px solid #d8d0c4;background:#fff;border-radius:999px;color:#172027;font-weight:900;padding:12px 22px}.admin-toolbar{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap}.admin-toolbar select,.admin-toolbar button{height:42px;border:1px solid #ded7cd;background:#fff;border-radius:12px;padding:0 12px}.admin-list{background:#fff;border:1px solid #e3ded6;border-radius:24px;overflow:hidden}.admin-empty{padding:32px;text-align:center;color:#7e8990}.admin-article-row{display:grid;grid-template-columns:120px 1fr auto;gap:18px;align-items:center;padding:18px;border-bottom:1px solid #eee8df}.admin-article-row:last-child{border-bottom:0}.admin-cover{width:120px;height:74px;border-radius:12px;background:#f4f1ea center/cover no-repeat;overflow:hidden}.admin-cover img{width:100%;height:100%;object-fit:cover;display:block}.admin-info h3{margin:0 0 8px;font-size:20px;color:#111820}.admin-info p{margin:0 0 10px;color:#6d7880;line-height:1.5}.admin-meta{display:flex;gap:12px;flex-wrap:wrap;color:#88939a;font-size:13px}.status{border-radius:999px;padding:3px 9px;font-weight:900;font-size:12px}.status-pub{background:#e9f7ef;color:#158245}.status-draft{background:#fff4dd;color:#9a6415}.admin-actions{display:flex;gap:10px;align-items:center}.admin-actions a,.admin-actions button{height:36px;border-radius:999px;border:1px solid #d8d0c4;background:#fff;color:#172027;padding:0 14px;font-weight:900}.admin-actions .danger{color:#b42318;border-color:#f0c7c2}
.editor-layout{display:grid;grid-template-columns:360px minmax(0,820px);gap:38px;width:min(1280px,calc(100% - 40px));margin:0 auto;padding:36px 0 80px}.editor-side{position:sticky;top:94px;height:max-content}.wechat-preview-card{background:#fff;border-radius:12px;border:1px solid #e3ded6;overflow:hidden}.wechat-account{height:44px;display:flex;align-items:center;gap:8px;padding:0 14px;font-size:14px;color:#172027}.mini-logo{width:22px;height:22px;border-radius:50%;background:#0e1214;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:900}.wechat-cover{height:150px;background:linear-gradient(#e5e5e5,#aaa);position:relative;display:flex;align-items:flex-end;color:#fff;padding:14px;background-size:cover;background-position:center}.wechat-preview-title{padding:14px;font-weight:900;line-height:1.4;min-height:52px}.wechat-new{border-top:1px solid #eee8df;text-align:center;color:#999;padding:18px}.side-help{margin-top:18px;background:#fff;border:1px solid #e3ded6;border-radius:16px;padding:18px;color:#596770;line-height:1.75}.side-help strong{color:#172027}.editor-main{background:#fff;border:1px solid #e3ded6;border-radius:22px;min-height:760px;padding:34px;position:relative}.title-input{border:0;outline:none;width:100%;font-size:30px;font-weight:500;line-height:1.4;padding:0 80px 8px 0;color:#111820}.title-input::placeholder{color:#b7bdc1}.title-count{position:absolute;right:38px;top:46px;color:#9aa3a9}.author-input{border:0;outline:none;width:100%;height:36px;color:#64727b}.author-input::placeholder,.summary-input::placeholder{color:#b7bdc1}.summary-input{width:100%;min-height:72px;border:1px solid #eee8df;border-radius:14px;padding:12px;resize:vertical;outline:none;color:#3e4d55;background:#fbfaf8}.cover-row,.meta-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;margin:14px 0}.cover-row label,.meta-row label{font-weight:900;color:#3e4d55}.cover-row input,.meta-row select{height:42px;border:1px solid #ded7cd;border-radius:12px;padding:0 12px;min-width:0}.cover-row button{height:42px;border:0;border-radius:999px;background:#111820;color:#fff;padding:0 16px;font-weight:900}.top-check{display:flex!important;align-items:center;gap:6px;font-weight:800!important}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:18px -34px 0;padding:12px 34px;border-top:1px solid #eee8df;border-bottom:1px solid #eee8df;background:#fbfaf8}.editor-toolbar button{border:1px solid #ded7cd;background:#fff;border-radius:10px;height:36px;padding:0 12px;font-weight:800;color:#35434b}.article-editor{min-height:420px;padding:28px 0 80px;outline:none;font-size:17px;line-height:2;color:#24323a}.article-editor:empty:before{content:attr(data-placeholder);color:#b7bdc1}.article-editor h2{font-size:28px;line-height:1.35;margin:32px 0 12px}.article-editor p{margin:0 0 18px}.article-editor img{max-width:100%;height:auto;border-radius:14px;margin:18px auto;display:block}.article-editor blockquote{margin:20px 0;padding:14px 18px;border-left:4px solid #96704f;background:#f8f5ef;border-radius:10px;color:#52616a}.editor-bottom{position:sticky;bottom:0;margin:0 -34px -34px;padding:14px 34px;border-top:1px solid #eee8df;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;gap:18px;border-radius:0 0 22px 22px}.editor-msg{color:#7b8990;line-height:1.5}.editor-actions{display:flex;gap:10px;white-space:nowrap}
@media(max-width:980px){.admin-topbar{padding:0 18px}.admin-topbar nav{gap:10px}.editor-layout{grid-template-columns:1fr}.editor-side{position:static}.cover-row,.meta-row{grid-template-columns:1fr}.admin-article-row{grid-template-columns:1fr}.admin-cover{width:100%;height:180px}.admin-title-row{align-items:flex-start;flex-direction:column}.editor-bottom{align-items:flex-start;flex-direction:column}.editor-actions{width:100%}.editor-actions button{flex:1}.title-input{font-size:24px;padding-right:0}.title-count{position:static;text-align:right}}

/* 20260711-cms4：公众号式编辑器增强版 */
.editor-layout-pro{grid-template-columns:330px minmax(0,860px);align-items:start}.editor-main-pro{padding:0;overflow:hidden}.title-area{position:relative;padding:42px 42px 12px}.editor-main-pro .title-input{font-size:30px;padding-right:86px}.editor-main-pro .title-count{right:44px;top:54px}.editor-main-pro .author-input{margin-top:8px}.sticky-toolbar{position:sticky;top:68px;z-index:9;margin:0;padding:12px 42px;background:rgba(251,250,248,.96);backdrop-filter:blur(12px)}.article-editor-wrap{position:relative;padding:0 42px}.article-editor-pro{min-height:520px;padding:34px 0 90px;font-size:17px;line-height:2.05}.article-editor-pro:focus{outline:none}.article-editor-wrap.is-dragover .article-editor-pro{background:linear-gradient(180deg,rgba(20,184,166,.05),rgba(20,184,166,.02));box-shadow:inset 0 0 0 2px rgba(20,184,166,.35);border-radius:18px}.editor-drop-mask{display:none;position:absolute;inset:18px 28px;align-items:center;justify-content:center;border:2px dashed rgba(20,184,166,.7);border-radius:22px;background:rgba(255,255,255,.82);color:#0f766e;font-weight:900;font-size:18px;pointer-events:none}.uploading-image{border:1px dashed #8ccdc6;background:#eefaf8;color:#0f766e;border-radius:14px;padding:18px;text-align:center}.publish-settings{border-top:1px solid #eee8df;background:#fbfaf8;padding:24px 42px 92px}.settings-title{font-size:18px;font-weight:900;margin-bottom:14px;color:#111820}.cover-summary-row{display:grid;grid-template-columns:260px minmax(0,1fr);border:1px solid #ece4d8;border-radius:14px;background:#fff;overflow:hidden}.cover-drop-zone{height:118px;border:0;border-right:1px solid #ece4d8;background:#fff;color:#8b949a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;background-size:cover;background-position:center;position:relative}.cover-drop-zone strong{color:#6f7b82}.cover-drop-zone em{font-style:normal;font-size:12px;color:#9aa3a9}.cover-plus{font-size:30px;line-height:1;color:#aeb5ba}.cover-drop-zone.is-dragover{background:#eefaf8;box-shadow:inset 0 0 0 2px #14b8a6}.cover-drop-zone.is-uploading:after{content:'正在上传到 OSS...';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.82);color:#0f766e;font-weight:900}.cover-drop-zone.has-cover{color:#fff}.cover-drop-zone.has-cover:before{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.55),rgba(0,0,0,.08))}.cover-uploaded{position:relative;z-index:1;color:#fff;font-weight:900;text-shadow:0 2px 10px rgba(0,0,0,.35)}.cover-summary-row .summary-input{border:0;border-radius:0;min-height:118px;padding:22px;background:#fff;resize:vertical}.meta-row-pro{grid-template-columns:70px minmax(0,1fr) auto;margin:18px 0}.wechat-extra-settings{border-top:1px solid #ece4d8;margin-top:14px}.wechat-extra-settings div{display:grid;grid-template-columns:130px 1fr;padding:14px 0;border-bottom:1px solid #f0ebe3;color:#87929a}.wechat-extra-settings strong{color:#172027}.oss-path-tip{font-size:13px;color:#7d8990}.oss-path-tip code{background:#f7f4ee;border:1px solid #eee8df;border-radius:6px;padding:2px 6px;color:#79512f}.side-help p{margin:10px 0 0}.editor-main-pro .editor-bottom{margin:0;padding:14px 42px;border-radius:0;position:sticky;bottom:0}.editor-main-pro .editor-toolbar button:hover,.cover-drop-zone:hover{border-color:#14b8a6;color:#0f766e}.article-editor-pro img{box-shadow:0 8px 28px rgba(0,0,0,.08)}
@media(max-width:980px){.editor-layout-pro{grid-template-columns:1fr}.title-area,.article-editor-wrap,.publish-settings{padding-left:22px;padding-right:22px}.sticky-toolbar{top:68px;padding-left:22px;padding-right:22px}.cover-summary-row{grid-template-columns:1fr}.cover-drop-zone{border-right:0;border-bottom:1px solid #ece4d8}.meta-row-pro{grid-template-columns:1fr}.editor-main-pro .editor-bottom{padding-left:22px;padding-right:22px}}


/* 20260711-cover-crop-start */
.hc-cover-crop-open{overflow:hidden}
.hc-cover-crop-modal{display:none;position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.55);align-items:center;justify-content:center;padding:24px}
.hc-cover-crop-modal.show{display:flex}
.hc-cover-crop-dialog{width:min(1080px,calc(100vw - 48px));background:#fff;border-radius:8px;box-shadow:0 18px 80px rgba(0,0,0,.28);overflow:hidden;color:#1d252b}
.hc-cover-crop-head{height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #edf0f2}
.hc-cover-crop-head strong{font-size:18px}
.hc-cover-crop-x{width:36px;height:36px;border:0;background:transparent;font-size:32px;line-height:1;color:#8b9399;cursor:pointer}
.hc-cover-crop-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;padding:26px}
.hc-cover-crop-stage{background:#f4f5f6;min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#hcCoverCropCanvas{max-width:100%;width:100%;height:auto;display:block}
.hc-cover-crop-tip{font-size:13px;color:#8b9399;padding:8px 0 16px}
.hc-cover-crop-aside{display:flex;flex-direction:column;gap:18px}
.hc-ratio-title{font-weight:900;color:#192229}
.hc-ratio-tabs{display:grid;grid-template-columns:1fr;gap:10px}
.hc-ratio-tabs button{height:42px;border:1px solid #d8e6d3;background:#fff;border-radius:8px;font-weight:900;color:#27333b;cursor:pointer}
.hc-ratio-tabs button.active{border-color:#67c46b;background:#eefbea;color:#157a34}
.hc-preview-block strong{display:block;margin-bottom:8px;color:#4d5961;font-size:14px}
.hc-square-preview{height:180px;border:1px solid #67c46b;background:#eefbea;border-radius:8px;padding:10px;display:grid;grid-template-columns:76px 1fr;gap:10px;align-items:start}
.hc-square-preview canvas{width:76px;height:76px;border-radius:4px;background:#ddd}
.hc-square-preview span{display:block;height:12px;background:rgba(255,255,255,.75);border-radius:999px;margin-top:8px}
.hc-square-preview span:last-child{width:70%}
.hc-wide-preview{border:1px solid #e5e9ec;border-radius:8px;padding:8px;background:#fff}
.hc-wide-preview canvas{display:block;width:100%;height:auto;border-radius:4px;background:#ddd}
.hc-cover-crop-actions{margin-top:auto;display:flex;gap:12px;justify-content:flex-end}
.hc-cover-crop-actions button{height:42px;border-radius:6px;border:1px solid #d9dee2;padding:0 22px;font-weight:900;cursor:pointer}
.hc-crop-cancel{background:#fff;color:#4b5961}
.hc-crop-confirm{background:#67c46b!important;border-color:#67c46b!important;color:#fff}
.hc-crop-confirm:disabled{opacity:.62;cursor:not-allowed}
.cover-drop-zone.has-cover,.wechat-cover{background-size:cover!important;background-position:center!important}
@media(max-width:900px){
  .hc-cover-crop-body{grid-template-columns:1fr}
  .hc-cover-crop-stage{min-height:360px}
  .hc-cover-crop-aside{display:block}
  .hc-ratio-tabs{grid-template-columns:1fr 1fr;margin-bottom:14px}
  .hc-preview-block{margin-bottom:14px}
}
/* 20260711-cover-crop-end */


/* 20260711-fixed-cover-preview-start */
#coverPreview.hc-cover-ready,
#coverDropZone.hc-cover-ready,
.cover-drop-zone.hc-cover-ready,
.cover-preview.hc-cover-ready{
  position:relative!important;
  overflow:hidden!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
}

#coverPreview .hc-cover-preview-img,
#coverDropZone .hc-cover-preview-img,
.cover-drop-zone .hc-cover-preview-img,
.cover-preview .hc-cover-preview-img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  z-index:0!important;
}

#coverPreview.hc-cover-ready::after,
#coverDropZone.hc-cover-ready::after,
.cover-drop-zone.hc-cover-ready::after,
.cover-preview.hc-cover-ready::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(to bottom,rgba(0,0,0,.02),rgba(0,0,0,.16))!important;
  z-index:1!important;
  pointer-events:none!important;
}
/* 20260711-fixed-cover-preview-end */


/* 20260711-statement-settings-start */
.wechat-extra-settings .statement-row{
  width:100%;
  border:0;
  background:transparent;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font:inherit;
  color:inherit;
  cursor:pointer;
  text-align:left;
}
.wechat-extra-settings .statement-row span::after{
  content:" ›";
  color:#9aa5ad;
}
.hc-statement-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.48);
  align-items:center;
  justify-content:center;
  padding:24px;
}
.hc-statement-modal.show{
  display:flex;
}
.hc-statement-panel{
  width:min(620px,calc(100vw - 48px));
  background:#fff;
  color:#162027;
  border-radius:12px;
  box-shadow:0 20px 80px rgba(0,0,0,.24);
  padding:30px 34px;
  position:relative;
}
.hc-statement-panel h2{
  margin:0 0 8px;
  font-size:24px;
}
.hc-statement-desc{
  margin:0 0 24px;
  color:#71808a;
  line-height:1.7;
}
.hc-statement-close{
  position:absolute;
  right:18px;
  top:14px;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  color:#8a949b;
  font-size:30px;
  cursor:pointer;
}
.hc-statement-field{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:18px;
  align-items:center;
  padding:14px 0;
}
.hc-statement-field > label:first-child{
  font-weight:800;
  color:#43515a;
}
.hc-radio-line{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
}
.hc-radio-line label,
.hc-switch-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#43515a;
}
.hc-statement-field input[type="text"],
#statementAuthorInput{
  width:100%;
  height:42px;
  border:1px solid #dfe5e8;
  border-radius:8px;
  padding:0 14px;
  font-size:15px;
}
.hc-statement-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:24px;
}
.hc-statement-actions button{
  height:42px;
  padding:0 26px;
  border-radius:8px;
  border:1px solid #dfe5e8;
  background:#fff;
  font-weight:900;
  cursor:pointer;
}
#statementConfirmBtn{
  background:#111820;
  color:#fff;
  border-color:#111820;
}
/* 20260711-statement-settings-end */


/* 20260711-statement-button-force-start */
#statementConfirmBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:88px!important;
  height:42px!important;
  padding:0 26px!important;
  border-radius:8px!important;
  border:1px solid #111820!important;
  background:#111820!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:42px!important;
  opacity:1!important;
  visibility:visible!important;
  text-indent:0!important;
  overflow:visible!important;
}

#statementCancelBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:88px!important;
  height:42px!important;
  padding:0 26px!important;
  border-radius:8px!important;
  border:1px solid #dfe5e8!important;
  background:#fff!important;
  color:#111820!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:42px!important;
  opacity:1!important;
  visibility:visible!important;
  text-indent:0!important;
  overflow:visible!important;
}
/* 20260711-statement-button-force-end */

/* 20260711-statement-button-force-start */
#statementConfirmBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:88px!important;
  height:42px!important;
  padding:0 26px!important;
  border-radius:8px!important;
  border:1px solid #111820!important;
  background:#111820!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:42px!important;
  opacity:1!important;
  visibility:visible!important;
  text-indent:0!important;
  overflow:visible!important;
}

#statementCancelBtn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:88px!important;
  height:42px!important;
  padding:0 26px!important;
  border-radius:8px!important;
  border:1px solid #dfe5e8!important;
  background:#fff!important;
  color:#111820!important;
  font-size:15px!important;
  font-weight:900!important;
  line-height:42px!important;
  opacity:1!important;
  visibility:visible!important;
  text-indent:0!important;
  overflow:visible!important;
}
/* 20260711-statement-button-force-end */
