:root{
  --bg:#ffffff;
  --bg-muted:#f7f7f9;
  --text:#1f2937;
  --text-muted:#6b7280;
  --primary:#2563eb;
  --primary-contrast:#ffffff;
  --border:#e5e7eb;
}

/* Base */
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height:1.6;
}
a{color:var(--text);text-decoration:none}
a:hover{color:var(--primary)}

/* Container */
.home,.top,#mainbox{
  max-width:1100px;
  margin-left:auto;margin-right:auto;
  width:100%;
  padding-left:16px; padding-right:16px;
}

/* Header / Nav */
.dh{
  background:#ffffff !important;
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,.03);
  height:auto !important;
  padding:4px;
}
.dh ul{display:flex;gap:6px;flex-wrap:wrap}
.dh li{width:auto !important;line-height:40px;padding:0 10px;color:var(--text);}
.dh li a{color:var(--text);border-radius:8px;padding:0 12px;height:40px;display:flex;align-items:center}
.dh li a:hover{background:var(--primary);color:var(--primary-contrast) !important;font-size:13px}

.fdh{background:var(--bg-muted) !important; border-radius:10px; border:1px solid var(--border);}
#kuang{border-radius:8px; border:1px solid var(--border) !important; padding:0 10px;}
.go{cursor:pointer}

/* Blocks */
.tjnr p,.nrbt,.armk p,.youl p,.image dl{
  background:var(--primary) !important;
  color:var(--primary-contrast) !important;
  border-radius:6px;
}
.nrmk2{background:var(--bg-muted) !important; border:1px solid var(--border); border-radius:10px}
.nrmk3{background:none !important; border:1px solid var(--border); border-radius:10px; padding:6px}
.nrmk3 li{border-bottom:1px dashed var(--border) !important}
.zwlist li a{color:var(--text) !important}
.zwlist li a:hover{color:var(--primary) !important}

/* Footer */
.foot{background:var(--bg-muted); border-top:1px solid var(--border); padding:16px 0}
.foot a{color:var(--primary)}

/* SEO Panel */
.seo-toggle{
  appearance:none; border:none; background:var(--primary); color:#fff; height:32px; padding:0 12px; border-radius:8px; cursor:pointer;
}
.seo-panel{display:none; gap:8px; padding:10px; background:var(--bg-muted); border:1px solid var(--border); border-radius:10px; margin-top:8px}
.seo-panel.active{display:grid}
.seo-panel textarea{min-height:80px; resize:vertical; padding:8px; border:1px solid var(--border); border-radius:8px; font-size:14px}
.seo-panel input[type="text"]{height:36px; padding:0 10px; border:1px solid var(--border); border-radius:8px}
.seo-panel .actions{display:flex; gap:8px}
.seo-panel .btn{appearance:none; border:1px solid var(--border); background:#fff; padding:0 12px; height:36px; border-radius:8px; cursor:pointer}
.seo-badges{display:flex; flex-wrap:wrap; gap:6px; margin-top:6px}
.seo-badges .badge{background:#eef2ff; color:#1e3a8a; border:1px solid #c7d2fe; border-radius:999px; padding:2px 10px; font-size:12px}

/* Responsive */
@media (max-width: 768px){
  .nrmk,.nrmky,.listy,.xlist,.artz2{width:100% !important; float:none !important;}
  .picxn{width:35% !important}
  .zwlist{width:60% !important}
  .dh ul{justify-content:space-between}
}

