:root { --ink:#182332; --muted:#718092; --line:#e5e9ef; --paper:#fbfaf7; --blue:#2155d6; --blue-dark:#163b9a; --soft:#f1f4fa; --green:#20845d; --danger:#b54747; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.login-view { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 20% 0%,#eaf0ff,transparent 40%),var(--paper); }
.login-panel { width:min(450px,100%); padding:48px; background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 24px 70px rgba(30,47,79,.1); }
.brand-mark { display:inline-flex; align-items:center; color:var(--blue); font-weight:800; letter-spacing:.12em; font-size:12px; }
.brand-mark.small { font-size:11px; }
.eyebrow { margin:0 0 10px; color:var(--blue); font-size:11px; font-weight:800; letter-spacing:.14em; }
h1,h2,h3,p { margin-top:0; }
.login-panel h1 { margin:8px 0 12px; font-size:36px; letter-spacing:-.04em; }
.login-copy { color:var(--muted); line-height:1.8; margin-bottom:30px; }
.stack-form,.editor-form { display:grid; gap:16px; }
label { display:grid; gap:7px; color:#49586a; font-size:13px; font-weight:700; }
input,textarea,select { width:100%; border:1px solid var(--line); border-radius:10px; padding:12px 13px; color:var(--ink); background:#fff; outline:none; }
input:focus,textarea:focus,select:focus,.rich-editor:focus { border-color:#8aa8f8; box-shadow:0 0 0 3px rgba(33,85,214,.1); }
textarea { resize:vertical; line-height:1.7; }
.primary-button,.secondary-button,.ghost-button,.editor-toolbar button { border-radius:10px; padding:11px 16px; border:1px solid transparent; font-weight:800; }
.primary-button { color:#fff; background:var(--blue); }
.primary-button:hover { background:var(--blue-dark); }
.secondary-button { color:var(--blue); background:#eef3ff; border-color:#d7e1ff; }
.ghost-button { color:var(--muted); background:transparent; border-color:var(--line); }
.form-error { color:var(--danger); font-size:13px; margin:0; }
.topbar { position:sticky; top:0; z-index:10; background:rgba(251,250,247,.9); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.topbar-inner { max-width:1440px; margin:auto; min-height:70px; padding:0 28px; display:flex; align-items:center; justify-content:space-between; }
.brand-lockup,.user-actions { display:flex; align-items:center; gap:14px; }
.brand-title { font-weight:800; }
.user-label { color:var(--muted); font-size:13px; }
.layout { max-width:1440px; margin:auto; display:grid; grid-template-columns:220px 1fr; min-height:calc(100vh - 70px); }
.sidebar { padding:28px 16px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:6px; }
.nav-button { text-align:left; border:0; background:transparent; color:var(--muted); border-radius:10px; padding:12px 14px; font-weight:700; }
.nav-button:hover,.nav-button.active { color:var(--blue); background:#edf2ff; }
.sidebar-foot { margin-top:auto; padding:14px; color:#9ba4af; font-size:11px; line-height:1.8; }
.content-area { padding:42px clamp(22px,4vw,60px) 80px; min-width:0; }
.page-section { max-width:980px; margin:0 auto; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:26px; }
.section-heading h2 { margin:0; font-size:32px; letter-spacing:-.04em; }
.count-badge,.tag,.status-pill { display:inline-flex; align-items:center; border-radius:999px; font-size:11px; font-weight:800; padding:5px 9px; }
.count-badge { color:var(--blue); background:#edf2ff; }
.filters { display:grid; grid-template-columns:1fr 160px 160px auto; gap:10px; margin-bottom:24px; }
.article-list { display:grid; gap:13px; }
.article-card { text-align:left; color:inherit; background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px 22px; transition:.18s ease; }
.article-card:hover { border-color:#b4c8fa; transform:translateY(-1px); box-shadow:0 10px 28px rgba(30,47,79,.07); }
.article-card-top,.article-card-foot,.article-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.article-card-top { justify-content:space-between; }
.tag { color:#2b58b9; background:#eef3ff; }
.article-date,.muted { color:var(--muted); font-size:12px; }
.article-card h3 { margin:16px 0 8px; font-size:20px; }
.article-card p { color:var(--muted); line-height:1.7; margin-bottom:18px; }
.article-card-foot { justify-content:space-between; color:var(--muted); font-size:12px; }
.empty-state { padding:70px 20px; color:var(--muted); text-align:center; border:1px dashed #cfd6df; border-radius:16px; }
.back-link { border:0; background:none; color:var(--blue); padding:0; margin-bottom:24px; font-weight:800; }
.article-detail { background:#fff; border:1px solid var(--line); border-radius:18px; padding:clamp(24px,5vw,58px); }
.article-detail h1 { margin:22px 0 12px; font-size:clamp(28px,4vw,44px); line-height:1.22; letter-spacing:-.04em; }
.article-summary { color:var(--muted); line-height:1.8; padding-bottom:24px; border-bottom:1px solid var(--line); }
.article-body { margin-top:28px; font-size:16px; line-height:1.95; }
.article-body h2 { margin:32px 0 12px; font-size:24px; }
.article-body h3 { margin:26px 0 10px; font-size:19px; }
.article-body a { color:var(--blue); word-break:break-all; }
.article-body blockquote { margin:18px 0; padding:12px 18px; border-left:4px solid #aac0fb; background:#f5f7fc; color:#536174; }
.article-footer { display:flex; align-items:center; gap:12px; margin-top:40px; padding-top:22px; border-top:1px solid var(--line); }
.download-button { text-decoration:none; display:inline-flex; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.editor-form { background:#fff; padding:26px; border:1px solid var(--line); border-radius:16px; }
.editor-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; color:var(--muted); font-size:12px; }
.editor-toolbar button { background:var(--soft); color:var(--blue); padding:7px 10px; }
.rich-editor { min-height:420px; border:1px solid var(--line); border-radius:12px; padding:16px; line-height:1.8; outline:none; background:#fff; }
.rich-editor:empty::before { content:attr(data-placeholder); color:#aab3bf; }
.inline-check { display:flex; align-items:center; grid-template-columns:none; flex-direction:row; gap:8px; }
.inline-check input { width:auto; }
.form-actions { display:flex; gap:10px; }
.pdf-panel { margin-top:16px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; }
.pdf-panel h3 { margin-bottom:8px; }
.pdf-panel form { display:flex; gap:10px; align-items:center; }
.inline-create { display:grid; grid-template-columns:1fr 1fr 1fr 140px auto; gap:10px; margin-bottom:22px; }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius:14px; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th,td { text-align:left; padding:13px 15px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-size:11px; }
tr:last-child td { border-bottom:0; }
.table-action { border:0; background:none; color:var(--blue); font-weight:800; }
.status-pill.published { color:var(--green); background:#e7f7ef; }.status-pill.draft { color:#9a6717; background:#fff4d7; }.status-pill.archived { color:#8b5b64; background:#f8e9ed; }
.toast { position:fixed; right:22px; bottom:22px; z-index:30; transform:translateY(15px); opacity:0; pointer-events:none; padding:12px 16px; color:#fff; background:#243047; border-radius:10px; transition:.2s; font-size:13px; }.toast.show { transform:none; opacity:1; }.toast.success { background:var(--green); }.toast.error { background:var(--danger); }
@media (max-width:820px) { .layout { grid-template-columns:1fr; }.sidebar { border-right:0; border-bottom:1px solid var(--line); padding:10px 18px; flex-direction:row; overflow:auto; }.sidebar-foot { display:none; }.nav-button { white-space:nowrap; }.filters,.inline-create,.form-grid { grid-template-columns:1fr; }.topbar-inner { padding:0 18px; }.content-area { padding:28px 16px 60px; }.login-panel { padding:32px 24px; }.user-label { display:none; }.pdf-panel form { display:grid; }.section-heading h2 { font-size:26px; } }
