* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f5f6f8; color: #22303c; }
.page { max-width: 860px; margin: 0 auto; padding: 12px 12px 60px; }
.card { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.muted { color: #8a97a2; font-size: 12px; }
.stem { white-space: pre-wrap; line-height: 1.7; font-size: 15px; }
.mono { font-family: Consolas, Monaco, monospace; }
.code-editor { width: 100%; min-height: 260px; font-family: Consolas, monospace; font-size: 14px;
  background: #1e1e1e; color: #d4d4d4; border: none; border-radius: 8px; padding: 12px; line-height: 1.5; }
.result-ok { color: #07c160; font-weight: bold; }
.result-bad { color: #ee0a24; font-weight: bold; }
.bar-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.bar-row .label { width: 130px; flex: 0 0 130px; text-align: right; color: #4a5a68; }
.bar-track { flex: 1; height: 14px; background: #eef1f5; border-radius: 7px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg,#1989fa,#07c160); border-radius: 7px; }
.grid-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-menu .g { background: #fff; border-radius: 10px; padding: 16px 8px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); cursor: pointer; }
.grid-menu .g .ico { font-size: 24px; }
.grid-menu .g .t { font-size: 13px; margin-top: 6px; color: #334; }
.check-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.check-item:last-child { border-bottom: none; }
table.simple { width: 100%; border-collapse: collapse; font-size: 13px; }
table.simple th, table.simple td { border: 1px solid #e5e9ef; padding: 6px 8px; text-align: left; }
table.simple th { background: #f0f4f8; }
.opt { display: block; padding: 8px 10px; margin: 6px 0; background: #f7f9fb; border-radius: 8px; }
.timer { font-size: 18px; font-weight: bold; color: #ee0a24; }
textarea.ta { width: 100%; min-height: 100px; border: 1px solid #e5e9ef; border-radius: 8px; padding: 10px; font-size: 14px; }
.kv { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.iframe-preview { width: 100%; height: 320px; border: 1px solid #e5e9ef; border-radius: 8px; background: #fff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e8f1f8; color: #1a3a56; }
/* 测试点表格里的多行文本 */
td.pre { white-space: pre-wrap; word-break: break-all; max-width: 220px; vertical-align: top; }
/* 网页制作素材图 */
.img-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.img-item { width: 96px; text-align: center; }
.img-item img { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e9ef; display: block; margin-bottom: 4px; }
input[type="file"] { font-size: 13px; }
@media (min-width: 768px) { .page { max-width: 980px; } }

/* ---- 分层解析 ---- */
.layer-box { background:#eef4fb; border-left:3px solid #1989fa; padding:8px 10px; margin-top:8px; border-radius:4px; font-size:14px; line-height:1.7; }
.layer-title { font-weight:600; color:#1989fa; font-size:13px; margin-bottom:4px; }
.concept-term { color:#1989fa; border-bottom:1px dashed #1989fa; cursor:pointer; }
