/* IP666666 | article-system shared styles | version: 2026-04-01-v6 */
:root{
  --bg:#F7F8FB;--card:#FFFFFF;--text:#0B1220;--muted:#5B667A;--line:#E6EAF2;
  --blue:#2F6BFF;--cyan:#2AE6D8;--radius:16px;--shadow:0 10px 26px rgba(17,24,39,.08);
  --font:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);min-height:100vh;display:flex;flex-direction:column}
a{text-decoration:none;color:inherit}
main{width:min(1120px,92vw);margin:18px auto 36px;flex:1 0 auto}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-card{border-radius:20px;box-shadow:0 12px 28px rgba(17,24,39,.06)}

.btn{
  height:42px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;
  font-size:14px;font-weight:700;color:var(--text);display:inline-flex;align-items:center;justify-content:center;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease,color .15s ease
}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(17,24,39,.08);border-color:rgba(47,107,255,.22)}
.btn.primary,.btn-strong{
  background:linear-gradient(135deg,var(--blue),#1A56DB);
  color:#fff;border-color:transparent;box-shadow:0 12px 24px rgba(47,107,255,.22)
}
.btn.primary:hover,.btn-strong:hover{box-shadow:0 16px 28px rgba(47,107,255,.28)}
.btn-danger-soft{border-color:#F4D7DF;background:#FFF7F9;color:#C24162}
.btn-danger-soft:hover{border-color:#E9B6C3;box-shadow:none}
.btn.is-disabled,.btn:disabled{opacity:.45;cursor:not-allowed;pointer-events:none;box-shadow:none}

.input,.textarea{width:100%;border:1px solid #D7DFEC;border-radius:12px;background:#fff;color:#0F172A;font-size:14px;font-family:var(--font);padding:12px 14px;outline:none}
.input:focus,.textarea:focus{border-color:#2F6BFF;box-shadow:0 0 0 4px rgba(47,107,255,.10)}
.textarea{min-height:320px;resize:vertical;line-height:1.75}
.textarea-admin{min-height:420px}

.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.page-toolbar{padding:4px 2px}
.badge{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:700;background:#EEF4FF;color:#2F6BFF;border:1px solid rgba(47,107,255,.18)}
.empty{padding:42px 18px;text-align:center;color:#94A3B8;font-size:14px}
.grid{display:grid;grid-template-columns:320px 1fr;gap:16px}
.admin-grid{align-items:start}
.login-card{max-width:460px;margin:0 auto;padding:24px}

.overlay{position:fixed;inset:0;background:rgba(11,18,32,.40);backdrop-filter:blur(10px);display:none;z-index:2000}
.overlay.open{display:block}
.modal{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(540px,92vw);border-radius:22px;border:1px solid rgba(230,234,242,.9);background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.20);overflow:hidden}
.modalHead{min-height:56px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.modalBody{padding:16px}
.modalClose{width:34px;height:34px;border-radius:999px;border:none;background:linear-gradient(135deg,#2F6BFF,#1D4ED8);color:#fff;font-size:18px;cursor:pointer}

.list{display:flex;flex-direction:column;gap:12px}
.item{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:10px}
.item-active{border-color:rgba(47,107,255,.32);box-shadow:0 0 0 4px rgba(47,107,255,.06)}
.item-title{font-size:17px;font-weight:800;color:#0F172A}
.item-meta{font-size:13px;color:#64748B;font-weight:700}
.item-actions{display:flex;gap:10px;flex-wrap:wrap}
.item-summary{font-size:14px;color:#425267;line-height:1.85}

.item-admin{padding:14px}
.item-admin-title{font-size:16px;font-weight:800;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#0F172A}
.article-list-admin{max-height:640px;overflow:auto;padding-right:4px}

.article-topline{min-height:28px}
.article-list-front{gap:10px}

.item-front-compact{
  min-height:72px;
  padding:12px 16px;
  gap:0;
  cursor:pointer;
  transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.item-front-compact:hover,
.item-front-compact:focus-within{
  border-color:rgba(47,107,255,.30);
  box-shadow:0 0 0 4px rgba(47,107,255,.06), 0 10px 22px rgba(17,24,39,.06);
  transform:translateY(-1px);
  background:#FCFEFF;
}
.front-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.front-row-tight{align-items:center}
.front-title-compact{
  font-size:17px;line-height:1.45;font-weight:800;flex:1;min-width:0;display:block;color:#0F172A;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.article-row-link:hover{color:#1D4ED8}
.front-read-btn{flex:0 0 auto;min-width:100px}
.front-read-btn-small{
  min-width:100px;
  height:40px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--blue),#1A56DB);
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 24px rgba(47,107,255,.22)
}
.front-read-btn-small:hover{box-shadow:0 16px 28px rgba(47,107,255,.28)}

.pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:18px}
.pager-text{font-size:13px;color:#64748B;font-weight:700}

.article-wrap{max-width:860px;margin:0 auto}
.article-card{padding:30px 24px 28px}
.article-title{font-size:34px;line-height:1.3;font-weight:800;margin:0 0 10px}
.article-meta{font-size:13px;color:#64748B;font-weight:700;margin-bottom:24px}
.article-body{font-size:16px;line-height:1.95;color:#243244;word-break:break-word}
.article-body p{margin:0 0 18px}
.article-image-wrap{margin:0 0 20px}
.article-image{display:block;max-width:100%;height:auto;border-radius:16px;border:1px solid #E6EAF2;box-shadow:0 8px 18px rgba(17,24,39,.06)}

.topbar-note{font-size:13px;color:#64748B;font-weight:700}
.editor-actions{display:flex;gap:10px;flex-wrap:wrap}
.save-status{min-height:20px}
.save-status.is-ok{color:#2563EB}
.save-status.is-warn{color:#B45309}

@media (max-width:900px){
  .grid{grid-template-columns:1fr}
  .article-title{font-size:28px}
  .front-row{gap:10px}
  .front-title-compact{font-size:15px}
  .front-read-btn-small{min-width:84px;height:36px;padding:0 12px}
}


.editor-status{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:12px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:#F8FBFF;
}
.editor-status-title{font-size:15px;font-weight:800;color:#0F172A}
.editor-actions-top{position:sticky;top:10px;z-index:20;padding:10px 12px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);box-shadow:0 10px 24px rgba(17,24,39,.06)}
.editor-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}

@media (max-width:900px){
  .editor-mini-grid{grid-template-columns:1fr}
  .editor-actions-top{top:6px}
}


.admin-main-title{font-size:24px;font-weight:800}.admin-header-min,.admin-subbar{padding:0 2px}.editor-panel-clean{position:relative}.field-label{display:block;margin:2px 0 -2px;font-size:13px;font-weight:800;color:#334155}.field-note,.form-hint{font-size:12px;color:#64748B;font-weight:700}.form-hint{padding:2px 2px 4px}.editor-status-simple{background:#fff}.editor-status-simple .topbar-note{font-size:12px}.editor-actions-top{top:8px}
