/* ============================================================
   萝卜芽 AI 学习平台 · 原型设计系统
   零外链 / 零构建 / 离线可用
   色板来源：萝卜芽-色板-v1.0
   ============================================================ */

:root {
  /* 品牌色板 */
  --orange: #FA8C16;   /* 活力橙 */
  --blue:   #0066FF;   /* 科技蓝 */
  --cyan:   #00C2FF;   /* 青蓝 */
  --purple: #722ED1;   /* 紫光 */
  --green:  #52C41A;   /* 萝卜绿 */
  --leaf:   #73D13D;   /* 苗绿 */
  --deep:   #389E0D;   /* 深绿 */
  --yellow: #FADB14;   /* 向阳黄 */

  /* 中性（禁纯黑） */
  --ink:  #1F2430;
  --ink2: #4A5261;
  --ink3: #848C9B;
  --line: #E4E7EC;
  --line2:#F0F2F5;
  --bg:   #F5F7FA;
  --card: #FFFFFF;

  --rs: 8px; --r: 12px; --rl: 18px;
  --sh:  0 2px 8px rgba(31,36,48,.05);
  --sh2: 0 4px 16px -2px rgba(31,36,48,.09);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 10px; }
ul { margin: 0 0 10px; padding-left: 20px; }
code { font-family: var(--mono); font-size: .92em; background: var(--line2); padding: 1px 5px; border-radius: 4px; }

/* ---------- 布局 ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  height: 56px; flex: 0 0 56px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 18px; position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), #FFB74D); color: #fff;
}
.brand-mark svg { width: 15px; height: 15px; }
.topbar .sp { flex: 1; }
.rolechip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: #FFF4E6; color: #A8440E; font-size: 12px; font-weight: 600;
  border: 1px solid #FFE0BF;
}
.rolechip.blue { background: #E8F1FF; color: #0B4FCC; border-color: #CFE0FF; }
.rolechip.green { background: #EDF9E6; color: #2F7A12; border-color: #D5EFC6; }
.rolechip svg { width: 13px; height: 13px; }

/* ---------- 端选择器（可切换 学生端 / 老师端 / 家长端） ---------- */
.rolepick {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 30px 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: #E8F1FF; color: #0B4FCC; border: 1px solid #CFE0FF; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.rolepick:hover { box-shadow: 0 0 0 3px rgba(0,102,255,.10); }
.rolepick.orange { background: #FFF4E6; color: #A8440E; border-color: #FFE0BF; }
.rolepick.orange:hover { box-shadow: 0 0 0 3px rgba(250,140,22,.12); }
.rolepick.green { background: #EDF9E6; color: #2F7A12; border-color: #D5EFC6; }
.rolepick.green:hover { box-shadow: 0 0 0 3px rgba(82,196,26,.12); }
.rolepick .rp-ico { display: inline-flex; }
.rolepick .rp-ico svg { width: 13px; height: 13px; }
.rolepick .rp-sel {
  appearance: none; -webkit-appearance: none; background: transparent; border: 0; outline: 0;
  color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit;
  cursor: pointer; padding: 0;
}
.rolepick .rp-sel option { color: var(--ink); background: #fff; font-weight: 500; }
.rolepick::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-72%) rotate(45deg); opacity: .55; pointer-events: none;
}

.layout { flex: 1; display: grid; grid-template-columns: 208px 1fr; align-items: start; }
.side {
  position: sticky; top: 56px; align-self: start; height: calc(100dvh - 56px);
  background: var(--card); border-right: 1px solid var(--line); padding: 14px 12px; overflow-y: auto;
}
.side-title { font-size: 11px; letter-spacing: .8px; color: var(--ink3); font-weight: 600; padding: 10px 8px 6px; }
.navitem {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--rs);
  color: var(--ink2); cursor: pointer; font-size: 13.5px; font-weight: 500; margin-bottom: 2px;
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.navitem:hover { background: var(--bg); color: var(--ink); }
.navitem.on { background: #FFF4E6; color: #A8440E; font-weight: 600; border-color: #FFE0BF; }
.navitem svg { width: 15px; height: 15px; flex: none; }
.navitem .cnt { margin-left: auto; font-size: 11px; color: var(--ink3); background: var(--line2); padding: 1px 6px; border-radius: 999px; }

.main { padding: 20px 24px 56px; max-width: 1320px; }

/* ---------- 页头 ---------- */
.pagehead { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead h1 { font-size: 21px; }
.pagehead .sub { color: var(--ink3); font-size: 13px; margin-top: 3px; }
.pagehead .sp { flex: 1; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.card-h { padding: 13px 16px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 9px; }
.card-h h3 { font-size: 14px; }
.card-h .sp { flex: 1; }
.card-b { padding: 16px; }
.card-b.tight { padding: 12px; }

.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 760px)  { .g2, .g3, .g4 { grid-template-columns: 1fr; } .layout { grid-template-columns: 1fr; } .side { display: none; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--rs); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--ink3); }
.btn svg { width: 14px; height: 14px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: #E8870F; border-color: #E8870F; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: #0057DB; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.green:hover { background: #46AE16; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; background: var(--line2); color: var(--ink2); white-space: nowrap;
}
.tag svg { width: 11px; height: 11px; }
.tag.orange { background: #FFF4E6; color: #A8440E; }
.tag.blue   { background: #E8F1FF; color: #0B4FCC; }
.tag.green  { background: #EDF9E6; color: #2F7A12; }
.tag.purple { background: #F3EDFB; color: #531BA8; }
.tag.cyan   { background: #E4F7FF; color: #00699E; }
.tag.gray   { background: var(--line2); color: var(--ink3); }
.tag.red    { background: #FDECEC; color: #A82020; }

/* ---------- 弹窗标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tabs .tab {
  border: 0; background: transparent; padding: 8px 13px; font-size: 13px; font-weight: 600;
  color: var(--ink3); cursor: pointer; font-family: inherit; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.on { color: #A8440E; border-bottom-color: var(--orange); }

/* ---------- 键值表 ---------- */
.kv { display: grid; grid-template-columns: 96px 1fr; row-gap: 8px; column-gap: 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--ink3); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------- 数据表 ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; color: var(--ink3); font-size: 11.5px; letter-spacing: .4px;
  padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--bg);
}
table.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr.clickable { cursor: pointer; }
table.tbl tr.clickable:hover td { background: var(--bg); }

/* ---------- 步骤条 ---------- */
.stepper { display: flex; gap: 0; overflow-x: auto; padding: 2px 0 8px; }
.step {
  flex: 1 1 0; min-width: 128px; position: relative; padding: 9px 10px 9px 26px;
  border-top: 3px solid var(--line); color: var(--ink3); font-size: 12.5px; cursor: pointer;
}
.step .no { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; opacity: .75; }
.step .nm { font-weight: 600; color: var(--ink2); }
.step.done { border-top-color: var(--green); }
.step.done .nm { color: var(--ink2); }
.step.on { border-top-color: var(--orange); }
.step.on .nm { color: #A8440E; }
.step::before {
  content: ""; position: absolute; top: 11px; left: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--line); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line);
}
.step.done::before { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.step.on::before  { background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }

/* ---------- 黑板（Markdown 渲染） ---------- */
.board { font-size: 14px; line-height: 1.72; color: var(--ink); }
.board h1 { font-size: 19px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--orange); }
.board h2 { font-size: 15.5px; margin: 20px 0 8px; color: var(--ink); }
.board h3 { font-size: 14px; margin: 14px 0 6px; }
.board p { margin: 0 0 9px; }
.board strong { font-weight: 700; }
.board blockquote {
  margin: 10px 0; padding: 9px 13px; background: #FFF9F0; border-radius: var(--rs);
  border-left: 3px solid var(--orange); color: #7A4A12; font-size: 13.5px;
}
.board table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13px; }
.board th { background: var(--bg); text-align: left; padding: 7px 10px; border: 1px solid var(--line); font-weight: 600; }
.board td { padding: 7px 10px; border: 1px solid var(--line2); }
.board hr { border: 0; border-top: 1px dashed var(--line); margin: 16px 0; }
.board ul { margin: 0 0 10px; }
.board li { margin-bottom: 3px; }

/* ---------- 创作沙盒 ---------- */
.sandbox { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
@media (max-width: 1000px) { .sandbox { grid-template-columns: 1fr; } }
.sb-pane { min-width: 0; display: flex; flex-direction: column; }
.sb-pane + .sb-pane { border-left: 1px solid var(--line); }
@media (max-width: 1000px) { .sb-pane + .sb-pane { border-left: 0; border-top: 1px solid var(--line); } }
.sb-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; }
.sb-head .sp { flex: 1; }
.filetab {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--ink3); border: 1px solid transparent; font-family: var(--mono);
}
.filetab.on { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--sh); }
.codearea {
  width: 100%; flex: 1; min-height: 520px; border: 0; outline: 0; resize: none; padding: 12px 14px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: var(--ink); background: var(--card);
  tab-size: 2;
}
.preview-frame { width: 100%; flex: 1; min-height: 560px; border: 0; background: #fff; }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot.r { background: #FF5F57; } .dot.y { background: #FEBC2E; } .dot.g { background: #28C840; }

/* ---------- AI Coding 侧栏 ---------- */
.ai-panel { border-left: 1px solid var(--line); background: #FBFCFE; display: flex; flex-direction: column; }
.ai-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 3px; }
.msg.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 3px; }
.msg.ai .label { font-size: 10.5px; font-weight: 700; color: var(--orange); letter-spacing: .5px; margin-bottom: 4px; }
.ai-input { border-top: 1px solid var(--line); padding: 10px; background: var(--card); }
.ai-input textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--rs); padding: 8px 10px; resize: none;
  font-family: inherit; font-size: 13px; line-height: 1.55; outline: 0; min-height: 66px;
}
.ai-input textarea:focus { border-color: var(--blue); }
.diff { background: #F6FBF6; border: 1px solid #D7EFD0; border-radius: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; white-space: pre; overflow-x: auto; margin-top: 6px; }
.diff .add { color: #237804; }

/* ---------- 作品卡 ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform .18s, box-shadow .18s; }
.work:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
.work-shot { height: 116px; background: linear-gradient(135deg,#FFF4E6,#FFE7C2); display: grid; place-items: center; position: relative; }
.work-shot.cover { background: #FFF8F0; display: block; overflow: hidden; }
.work-shot.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-shot.blue { background: linear-gradient(135deg,#E8F1FF,#D4E5FF); }
.work-shot.green { background: linear-gradient(135deg,#EDF9E6,#D8F0CB); }
.work-shot svg { width: 34px; height: 34px; color: rgba(168,68,14,.55); }
.work-shot.blue svg { color: rgba(11,79,204,.5); }
.work-shot.green svg { color: rgba(47,122,18,.5); }
.work-meta { padding: 10px 12px; }
.work-meta .t { font-weight: 600; font-size: 13.5px; margin-bottom: 3px; }
.work-meta .m { font-size: 11.5px; color: var(--ink3); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.work-tags { padding: 0 12px 11px; display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- 雷达图 ---------- */
.radar-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.radar-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.radar-legend .row { display: flex; align-items: center; gap: 8px; }
.radar-legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.radar-legend .lv { margin-left: auto; color: var(--ink3); font-size: 11.5px; }

/* ---------- 进度条 ---------- */
.bar { height: 6px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width .3s; }
.bar.blue > i { background: var(--blue); }
.bar.green > i { background: var(--green); }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); }
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline .when { font-size: 11.5px; color: var(--ink3); }
.timeline .what { font-weight: 600; font-size: 13.5px; margin: 1px 0 2px; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink3); }
.empty svg { width: 36px; height: 36px; margin-bottom: 10px; opacity: .45; }
.empty p { font-size: 13px; }

/* ---------- 模态 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(31,36,48,.42); display: grid; place-items: center;
  z-index: 60; padding: 20px;
}
.modal { background: var(--card); border-radius: var(--rl); box-shadow: 0 20px 60px rgba(31,36,48,.25); width: min(560px, 100%); max-height: 86dvh; overflow: auto; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line2); display: flex; align-items: center; gap: 9px; }
.modal-h h3 { font-size: 15px; flex: 1; }
.modal-b { padding: 18px 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line2); display: flex; gap: 8px; justify-content: flex-end; background: var(--bg); }

/* ---------- 提示条 ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; }
.toast {
  background: var(--ink); color: #fff; padding: 10px 15px; border-radius: var(--rs); font-size: 13px;
  box-shadow: 0 8px 24px rgba(31,36,48,.25); animation: tin .22s ease; max-width: 340px;
}
.toast.ok { background: var(--deep); }
.toast.warn { background: #A8440E; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 答题 ---------- */
.quiz-q { margin-bottom: 16px; }
.quiz-q .qt { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.opt {
  display: flex; gap: 9px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--rs); margin-bottom: 6px; cursor: pointer; font-size: 13px; transition: all .15s; background: var(--card);
}
.opt:hover { border-color: var(--blue); background: #F7FAFF; }
.opt.on { border-color: var(--blue); background: #EDF4FF; }
.opt .k {
  width: 19px; height: 19px; border-radius: 5px; background: var(--line2); flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink2);
}
.opt.on .k { background: var(--blue); color: #fff; }
.opt.right { border-color: var(--green); background: #F3FBEF; }
.opt.wrong { border-color: #E04B4B; background: #FDF0F0; }
.expl { margin-top: 7px; padding: 9px 12px; background: var(--bg); border-radius: var(--rs); font-size: 12.5px; color: var(--ink2); white-space: pre-wrap; }

/* ---------- 三档打分 ---------- */
.levels { display: inline-flex; border: 1px solid var(--line); border-radius: var(--rs); overflow: hidden; }
.levels button {
  border: 0; background: var(--card); padding: 4px 11px; font-size: 12px; font-weight: 600;
  cursor: pointer; color: var(--ink3); font-family: inherit; border-right: 1px solid var(--line);
}
.levels button:last-child { border-right: 0; }
.levels button.on[data-lv="2"] { background: var(--green); color: #fff; }
.levels button.on[data-lv="1"] { background: var(--orange); color: #fff; }
.levels button.on[data-lv="0"] { background: #E04B4B; color: #fff; }

/* ---------- 登录页 ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 12% -10%, #FFF3E2 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #E8F1FF 0%, transparent 50%), var(--bg); }
.login-box { width: min(880px, 100%); }
.login-head { text-align: center; margin-bottom: 22px; }
.login-head .mk { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--orange), #FFB74D); color: #fff; box-shadow: 0 8px 22px rgba(250,140,22,.32); }
.login-head .mk svg { width: 24px; height: 24px; }
.login-head h1 { font-size: 23px; margin-bottom: 5px; }
.login-head p { color: var(--ink3); font-size: 13px; margin: 0; }
.rolecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .rolecards { grid-template-columns: 1fr; } }
.rolecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--rl); padding: 20px;
  cursor: pointer; transition: all .18s; box-shadow: var(--sh); }
.rolecard:hover { transform: translateY(-3px); box-shadow: var(--sh2); border-color: var(--orange); }
.rolecard .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; }
.rolecard .ic svg { width: 19px; height: 19px; }
.rolecard h3 { font-size: 15px; margin-bottom: 5px; }
.rolecard p { font-size: 12.5px; color: var(--ink3); margin: 0 0 12px; line-height: 1.6; }
.rolecard .go { font-size: 12px; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 4px; }
.rolecard .go svg { width: 13px; height: 13px; }

/* ---------- 杂项 ---------- */
.muted { color: var(--ink3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 9px; }
.wrap { flex-wrap: wrap; }
.hr { height: 1px; background: var(--line2); margin: 14px 0; border: 0; }
.notice { padding: 10px 13px; border-radius: var(--rs); font-size: 12.5px; line-height: 1.6; }
.notice.info { background: #EDF4FF; color: #0B4FCC; border: 1px solid #D3E3FF; }
.notice.warn { background: #FFF7E8; color: #8A5A10; border: 1px solid #FFE4BC; }
.notice.ok   { background: #F1FAEC; color: #2F7A12; border: 1px solid #D8EFCB; }
.notice.gray { background: var(--bg); color: var(--ink2); border: 1px solid var(--line); }
.notice svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
