/* =========================================================
   综合折腾记录 · LiquidGlass 博客样式
   现代科技化 / 玻璃拟态（Glassmorphism）
   ========================================================= */

:root {
  --bg-0: #05060d;
  --bg-1: #0a0c18;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --text-0: #eef1ff;
  --text-1: #b9c0e0;
  --text-2: #7c85ad;
  --accent-cyan: #22d3ee;
  --accent-violet: #a855f7;
  --accent-blue: #3b82f6;
  --accent-grad: linear-gradient(120deg, #22d3ee 0%, #6366f1 50%, #a855f7 100%);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 28px rgba(99, 102, 241, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font: "Inter", "Space Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-0);
  background: var(--bg-0);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- 动态渐变光斑背景 (LiquidGlass 氛围) ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(34, 211, 238, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.bg-orbs::after {
  /* 细腻噪点，增强玻璃质感 */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb.a { width: 420px; height: 420px; background: #22d3ee; top: -80px; left: 8%; }
.orb.b { width: 520px; height: 520px; background: #a855f7; top: 30%; right: -120px; animation-delay: -6s; }
.orb.c { width: 360px; height: 360px; background: #3b82f6; bottom: -100px; left: 35%; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ---------- 玻璃通用类 ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  position: relative;
}
/* 顶部高光，模拟玻璃边缘反光 */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 56px 0;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  width: calc(100% - 32px);
  max-width: var(--maxw);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
}
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-glow);
  font-size: 18px;
}
.brand .sub {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  color: var(--text-1);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}
.nav-links a:hover {
  color: var(--text-0);
  background: var(--glass-strong);
}
.nav-links a.active {
  color: #fff;
  background: var(--glass-strong);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 36px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--text-1);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.hero .stats {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero .stat .n {
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .stat .l {
  color: var(--text-2);
  font-size: 0.82rem;
}

/* ---------- 标签筛选栏 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.toolbar .label {
  color: var(--text-2);
  font-size: 0.85rem;
}
.search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  margin-left: auto;
}
.search input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  color: var(--text-0);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: var(--font);
  outline: none;
  transition: border 0.2s;
}
.search input:focus {
  border-color: var(--accent-cyan);
}
.search input::placeholder { color: var(--text-2); }

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-1);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.22s ease;
  user-select: none;
}
.chip:hover { color: #fff; border-color: var(--glass-border); }
.chip.active {
  color: #fff;
  background: var(--accent-grad);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.chip .count {
  opacity: 0.7;
  font-size: 0.72rem;
  margin-left: 4px;
}

/* ---------- 文章卡片网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  border-color: var(--glass-border);
}
.card .thumb {
  height: 132px;
  border-radius: var(--radius-sm);
  margin: -4px -4px 16px;
  background: var(--accent-grad);
  position: relative;
  overflow: hidden;
  opacity: 0.92;
}
.card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 30% 20%, rgba(255,255,255,0.35), transparent 60%);
}
.card .thumb .emoji {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.card .excerpt {
  color: var(--text-1);
  font-size: 0.92rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.card .date {
  color: var(--text-2);
  font-size: 0.8rem;
}
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s;
}
.tag:hover { background: rgba(34, 211, 238, 0.2); }
.tag.violet { color: var(--accent-violet); background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.25); }
.tag.blue { color: var(--accent-blue); background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); }

/* ---------- 文章详情 ---------- */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 0 70px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--text-1); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-cyan); }
.article-head {
  padding: 34px;
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
}
.article-head .tags { margin-bottom: 16px; }
.article-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.article-head .meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.article-head .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-2); }

/* 正文排版 (prose) */
.prose {
  padding: 34px;
  border-radius: var(--radius-lg);
  font-size: 1.02rem;
  color: var(--text-0);
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  margin: 1.6em 0 0.6em;
  line-height: 1.3;
  font-weight: 700;
}
.prose h1 { font-size: 1.7rem; }
.prose h2 {
  font-size: 1.4rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--glass-border-soft);
}
.prose h3 { font-size: 1.18rem; }
.prose p { margin: 1em 0; color: var(--text-1); }
.prose a { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px solid rgba(34,211,238,0.3); }
.prose a:hover { border-bottom-color: var(--accent-cyan); }
.prose strong { color: #fff; font-weight: 700; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 1.5em; color: var(--text-1); }
.prose li { margin: 0.4em 0; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--accent-violet);
  background: rgba(168, 85, 247, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-1);
}
.prose blockquote p { margin: 0.3em 0; }
.prose img { max-width: 100%; border-radius: var(--radius-sm); margin: 1em 0; border: 1px solid var(--glass-border-soft); }
.prose hr { border: none; border-top: 1px solid var(--glass-border-soft); margin: 2em 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.92rem;
}
.prose th, .prose td {
  border: 1px solid var(--glass-border-soft);
  padding: 10px 14px;
  text-align: left;
}
.prose th { background: var(--glass-strong); color: #fff; }

/* 代码块 */
.prose pre {
  background: #0b0e1a;
  border: 1px solid var(--glass-border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.6;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  color: #f0a6ff;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose .code-lang {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}

/* ---------- 标签云页 ---------- */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 40px;
  border-radius: var(--radius-lg);
}
.tags-cloud a {
  text-decoration: none;
  color: var(--text-0);
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
}
.tags-cloud a:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border);
  box-shadow: var(--shadow-glow);
}
.tags-cloud a .t-name { font-weight: 600; font-size: 1.05rem; }
.tags-cloud a .t-count {
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--glass-strong);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---------- 关于页 ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  margin-bottom: 26px;
}
.about-avatar {
  width: 180px;
  height: 180px;
  border-radius: 28px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 5rem;
  box-shadow: var(--shadow-glow);
}
.about-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.about-hero .role {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.about-hero p { color: var(--text-1); max-width: 560px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.about-card { padding: 28px; border-radius: var(--radius-md); }
.about-card h3 { font-size: 1.15rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.about-card h3 .ic { font-size: 1.3rem; }
.about-card ul { list-style: none; }
.about-card li {
  color: var(--text-1);
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.about-card li:last-child { border-bottom: none; }
.about-card li .k { color: var(--text-2); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-2);
}
.empty .big { font-size: 3rem; margin-bottom: 12px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--glass-border-soft);
  padding: 30px 0 50px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.85rem;
}
.footer a { color: var(--text-1); text-decoration: none; }
.footer a:hover { color: var(--accent-cyan); }

/* ---------- 返回顶部 ---------- */
.totop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 60;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  color: var(--text-0);
}
.totop.show { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav-links a { padding: 8px 11px; font-size: 0.85rem; }
  .about-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-grid { grid-template-columns: 1fr; }
  .hero .stats { gap: 24px; }
  .prose, .article-head, .about-hero, .tags-cloud { padding: 24px; }
}

/* =========================================================
   后台管理 · 追加样式
   ========================================================= */
/* 登录 */
.login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.login-card { width: 100%; max-width: 420px; padding: 40px; border-radius: var(--radius-lg); text-align: center; }
.login-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.login-card p { color: var(--text-2); font-size: 0.9rem; margin-bottom: 24px; }
.login-card input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border-soft);
  color: var(--text-0); font-size: 1rem; font-family: var(--font); outline: none; text-align: center;
}
.login-card input:focus { border-color: var(--accent-cyan); }
.login-card .hint { font-size: 0.78rem; color: var(--text-2); margin-top: 14px; }

/* 后台主体 */
.admin-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 26px;
}
.admin-bar .title { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.admin-bar .spacer { flex: 1; }
.btn {
  cursor: pointer; font-family: var(--font); font-size: 0.88rem; font-weight: 600;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--glass-border-soft);
  background: var(--glass); color: var(--text-0); transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--glass-border); transform: translateY(-1px); }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
.btn-danger { background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.4); color: #ff8da3; }
.btn-ghost { background: transparent; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.tab {
  cursor: pointer; padding: 9px 20px; border-radius: 999px; font-size: 0.9rem;
  color: var(--text-1); background: var(--glass); border: 1px solid var(--glass-border-soft); transition: all 0.2s;
}
.tab.active { color: #fff; background: var(--accent-grad); border-color: transparent; box-shadow: var(--shadow-glow); }

/* 文章行 */
.post-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-md);
  margin-bottom: 12px; transition: all 0.2s;
}
.post-row:hover { border-color: var(--glass-border); }
.post-row .emoji { font-size: 1.8rem; }
.post-row .info { flex: 1; min-width: 0; }
.post-row .info h4 { font-size: 1.02rem; margin-bottom: 4px; }
.post-row .info .meta { color: var(--text-2); font-size: 0.8rem; }
.post-row .info .mini-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.post-row .actions { display: flex; gap: 8px; }

/* 表单 / 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(3,4,10,0.6);
  backdrop-filter: blur(6px); display: none; padding: 24px; overflow-y: auto;
}
.modal-mask.show { display: block; }
.modal-card {
  max-width: 960px; margin: 20px auto; padding: 28px; border-radius: var(--radius-lg);
}
.modal-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; color: var(--text-1); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--glass-border-soft);
  color: var(--text-0); font-family: var(--font); font-size: 0.95rem; outline: none;
}
.field textarea { resize: vertical; min-height: 220px; line-height: 1.6; font-family: var(--mono); font-size: 0.85rem; }
.field input:focus, .field textarea:focus { border-color: var(--accent-cyan); }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.preview-pane {
  border-radius: var(--radius-sm); border: 1px solid var(--glass-border-soft);
  background: var(--bg-1); padding: 16px; overflow-y: auto; max-height: 460px; min-height: 220px;
}
.preview-pane h1, .preview-pane h2, .preview-pane h3 { color: var(--text-0); margin: 0.8em 0 0.4em; }
.preview-pane p { color: var(--text-1); margin: 0.7em 0; }
.preview-pane pre { background: #0b0e1a; padding: 12px; border-radius: 8px; overflow-x: auto; }
.preview-pane code { font-family: var(--mono); color: #f0a6ff; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* 动态行（links / stacks） */
.kv-row { display: flex; gap: 10px; margin-bottom: 8px; }
.kv-row input { flex: 1; }
.kv-row .del { flex: 0 0 auto; }
.add-kv { font-size: 0.82rem; color: var(--accent-cyan); cursor: pointer; background: none; border: none; padding: 4px 0; }

/* 草稿提示 */
.draft-badge {
  position: fixed; left: 24px; bottom: 24px; z-index: 70;
  padding: 10px 16px; border-radius: 999px; font-size: 0.82rem;
  background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.4); color: #fcd34d;
  backdrop-filter: blur(14px); display: flex; align-items: center; gap: 8px;
}
.draft-badge a { color: #fcd34d; }

@media (max-width: 720px) {
  .form-grid, .editor-split { grid-template-columns: 1fr; }
  .modal-card { padding: 20px; }
  .admin-bar { gap: 10px; }
}
