* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f4f5f7;
  color: #1f2329;
  line-height: 1.6;
}
.container { max-width: 860px; margin: 0 auto; padding: 20px 16px 60px; }
header.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e6eb;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
header.topbar h1 { font-size: 18px; }
header.topbar nav a { margin-left: 14px; color: #3370ff; text-decoration: none; font-size: 14px; }
.stats {
  display: flex;
  gap: 12px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 120px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .label { font-size: 13px; color: #86909c; }
.stat-card.tagged .num { color: #00b42a; }
.stat-card.untagged .num { color: #ff7d00; }

.card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
}
.canvas-wrap canvas { display: block; max-width: 100%; height: auto; }
/* 透明遮罩层，阻止直接对 canvas 长按/拖拽取图 */
.canvas-wrap .shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: default;
}
/* 图片框背景切换 */
.canvas-wrap.bg-white { background: #ffffff; }
.canvas-wrap.bg-dark { background: #1b1b1f; }
.canvas-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bg-btn {
  background: #f2f3f5; color: #1f2329;
  padding: 5px 14px; font-size: 13px; border-radius: 6px;
}
.bg-btn:hover { background: #e5e6eb; }
.bg-btn.active { background: #3370ff; color: #fff; }
.bg-progress { margin-top: 8px; color: #ff7d00; }
.bg-progress.done { color: #00b42a; }

/* 激励条 */
.reward-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff7e8; border-color: #ffd591;
}
.reward-bar b { color: #ff7d00; font-size: 18px; }

/* 设计模式单选 */
.mode-row .radio {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; cursor: pointer; width: auto; padding: 0;
  border: none;
}
.mode-row .radio input { width: auto; }

/* 弹层通用 */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 50; align-items: center; justify-content: center;
  display: flex;
}

/* 问豆包引导（显眼） */
.doubao-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #eaf1ff, #f0f7ff);
  border: 1px solid #b9d2ff; border-radius: 10px;
  padding: 12px 14px; margin: 14px 0;
}
.doubao-tip-text { font-size: 14px; color: #1f2329; flex: 1; min-width: 180px; }
.doubao-tip-text b { color: #3370ff; }
.doubao-btn {
  background: #3370ff; color: #fff; font-size: 15px; font-weight: 600;
  padding: 10px 22px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(51,112,255,.35);
  display: inline-flex; align-items: center; gap: 8px;
}
.doubao-btn:hover { background: #2860e0; }
.doubao-icon { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }

/* 屏蔽列表 */
#blockList { margin-top: 12px; }
.block-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-bottom: 1px solid #eef0f2;
}
.block-row .thumb {
  width: 56px; height: 56px; object-fit: contain;
  background: #f2f3f5; border-radius: 6px;
}
.block-row .bid { font-size: 13px; color: #86909c; flex: 1; }
textarea {
  width: 100%;
  min-height: 90px;
  padding: 10px 12px;
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
input[type=text], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d3d9;
  border-radius: 8px;
  font-size: 15px;
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button {
  background: #3370ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
}
button:hover { background: #2860e0; }
button.ghost { background: #f2f3f5; color: #1f2329; }
button.ghost:hover { background: #e5e6eb; }
button.danger { background: #f53f3f; }
button.danger:hover { background: #d92c2c; }
button.ok { background: #00b42a; }
button.ok:hover { background: #009a24; }
button:disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: 13px; color: #86909c; margin-top: 6px; }
.msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.msg.ok { color: #00b42a; }
.msg.err { color: #f53f3f; }
label.field { display: block; font-size: 14px; margin-bottom: 6px; color: #4e5969; }
.mt { margin-top: 14px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
th { color: #86909c; font-weight: 600; }
.thanks-list { list-style: none; }
.thanks-list li {
  display: flex; justify-content: space-between;
  padding: 10px 4px; border-bottom: 1px solid #eef0f2;
}
.thanks-list .rank { color: #86909c; width: 40px; }
.badge { background: #eaf1ff; color: #3370ff; border-radius: 20px; padding: 2px 10px; font-size: 13px; }

/* 全局禁止图片区域文本选择 */
.noselect { user-select: none; -webkit-user-select: none; }
