/* moleworld.net 站点皮肤覆盖 —— 叠在作者 styles.css 之上,只换配色/圆角/字体/加顶栏,
   不动其布局(grid/flex 结构原样保留)。与落地页 landing.html 同一套设计 token。 */

:root {
  /* 把编辑器的变量重映射到站点调色板,大部分观感自动统一 */
  --bg: #f3faf3;
  --panel: #ffffff;
  --panel-2: #eef7ef;          /* 站点 --soft */
  --ink: #2b3a2f;              /* 站点 --ink */
  --muted: #6b7d70;            /* 站点 --muted */
  --line: #d7e4da;            /* 站点输入边框 */
  --accent: #469256;          /* 站点 --green-d:主强调全部变绿 */
  --accent-2: #2b82bd;        /* 站点 --blue-d */
  --shadow: 0 4px 16px rgba(70, 146, 86, 0.10);
}

body {
  font-family: -apple-system, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 站点天空→草地渐变,fixed 让长页滚动时背景稳定 */
  background: linear-gradient(180deg, #bfe6ff 0%, #dff3e4 30%, #f3faf3 60%, #eef7ef 100%) fixed;
}

/* ── 站点顶栏(品牌 + 返回首页),宽度对齐 app-shell ── */
.site-bar {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.site-bar .brand {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-bar .back {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0.42rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 1px 6px #0001;
  transition: background 0.15s, transform 0.12s;
}
.site-bar .back:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* ── 卡片圆角加大到站点的 16px ── */
.toolbar,
.sidebar,
.workbench,
.map-panel,
.blob-tools,
.data-panel,
.json-block,
.stat,
.table-wrap,
.paste-dialog,
.map-edit-bar,
.object-picker-popover {
  border-radius: 16px !important;
}

/* ── 按钮胶囊化 + 站点绿 hover ── */
button,
.file-button {
  border-radius: 999px !important;
  min-height: 40px;
}
button:not(.danger):hover,
.file-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 主操作(导出/加载/载入示例)= 站点绿渐变胶囊 */
#exportPlayerBtn,
#exportMapBtn,
#loadMapBase64Btn,
#sampleBtn,
#addObjectBtn {
  background: linear-gradient(180deg, #5bb56a, #469256);
  border-color: #469256;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(70, 146, 86, 0.30);
}
#exportPlayerBtn:hover,
#exportMapBtn:hover,
#loadMapBase64Btn:hover,
#sampleBtn:hover,
#addObjectBtn:hover {
  filter: brightness(1.05);
  color: #fff;
}

/* 侧栏标签 active / 预览动作 active = 站点绿 */
.tab.active {
  background: var(--panel-2);
  border-color: #bcd8c4;
  color: var(--accent);
}
.preview-actions button.active,
.segmented button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 标题用站点绿 */
.toolbar h1,
.panel-head h2 {
  color: var(--accent);
}

/* 输入聚焦光圈用站点绿 */
input:focus,
textarea:focus {
  outline: 2px solid rgba(70, 146, 86, 0.22);
  border-color: var(--accent);
}

/* 危险按钮保持红色(站点 #d23c3c 调性) */
.danger {
  background: #d23c3c !important;
  border-color: #d23c3c !important;
  color: #fff !important;
}

/* 页脚链接用站点绿 */
footer a {
  color: var(--accent) !important;
}
