﻿:root{--shadow:0 1px 2px rgba(0,0,0,.06);--bg:#fafafa;--panel:#ffffff;--muted:#6b7280;--border:#e5e7eb;--brand:#0ea5e9;--brand-600:#0284c7;--ok:#10b981;--warn:#f59e0b;--danger:#ef4444}
*{box-sizing:border-box}
html,body,#root{height:100%}
body{margin:0;background:var(--bg);color:#111827;font-family:ui-sans-serif,system-ui,Segoe UI,Roboto,Helvetica,Arial,'Apple Color Emoji','Segoe UI Emoji'}
.container{max-width:1200px;margin:0 auto;padding:16px}
.border{border:1px solid var(--border);border-radius:8px}
.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);transition:box-shadow .2s ease,transform .2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.08)}

.card-h{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.card-b{padding:16px}
.title{font-size:18px;font-weight:600}
.muted{color:var(--muted)}
.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;border:1px solid var(--border);background:#fff;color:#111827;cursor:pointer;transition:background .15s ease,transform .15s ease,box-shadow .15s ease}
.btn:hover{background:#f8fafc}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn.primary:hover{background:var(--brand-600)}
.btn.success{background:var(--ok);border-color:var(--ok);color:#fff}
.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.input,.select,.textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:#fff}
.row{display:grid;gap:16px}
@media(min-width:960px){.row.cols-2{grid-template-columns:1fr 1fr}.row.cols-3{grid-template-columns:1fr 1fr 1fr}}
.toolbar{position:sticky;top:0;z-index:10;background:rgba(250,250,250,.8);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid var(--border)}
.toolbar .inner{max-width:1200px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:700}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;border:1px solid var(--border);background:#f9fafb}
.stack{display:flex;flex-direction:column;gap:8px}
.space{height:8px}

/* 进场动画 */
.appear{animation:fadeIn .25s ease both}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* 折叠动画 */
.collapse-wrap{display:grid;grid-template-rows:1fr;transition:grid-template-rows .28s ease, opacity .28s ease}
.collapse-wrap.closed{grid-template-rows:0fr;opacity:.0}
.collapse-inner{overflow:hidden}

/* 小箭头 */
.chevron{display:inline-block;transition:transform .2s ease}
.chevron.down{transform:rotate(0deg)}
.chevron.up{transform:rotate(180deg)}


