/* 销售进阶 · Neo 粗描边（新丑风）：粗黑描边 + 硬投影 + 红白撞色 */
@font-face {
  font-family: "SmileySans";
  src: url("/static/fonts/SmileySans.woff2") format("woff2");
  font-display: swap;
}
:root {
  --ink: #161412; --mut: #6b655e; --line: #161412; --bg: #fff2ea; --card: #ffffff;
  --acc: #e8442e; --acc-dk: #c93420; --ok: #161412; --warn: #161412; --bad: #e8442e;
  --shadow: 4px 4px 0 #161412;
  --shadow-sm: 3px 3px 0 #161412;
  --radius: 6px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, h3, .brand, .wordmark { font-family: "SmileySans", -apple-system, "PingFang SC", sans-serif; letter-spacing: .01em; }
main { max-width: 880px; margin: 0 auto; padding: 20px 16px 60px; }

/* 顶栏：白底 + 粗黑下边框 */
nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: 10px 20px; background: #ffffff; border-bottom: 2px solid var(--line); }
nav .brand { font-weight: 700; text-decoration: none; color: var(--ink); }
nav a { color: var(--mut); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--acc); }
nav .right { margin-left: auto; }
@media (max-width: 720px) {
  nav { gap: 14px; padding: 10px 12px; overflow-x: auto; }
  nav a { white-space: nowrap; font-size: 14px; }
  .rowline { flex-wrap: wrap; }
  .rowline input[type=text] { flex: 1 1 100%; margin-top: 4px; }
  .rowline span { flex: 1 1 100%; }
}

h2 { font-size: 20px; margin: 18px 0 10px; }
h3 { font-size: 16px; margin: 0 0 10px; }
h4 { font-size: 14px; margin: 0 0 6px; color: var(--mut); }
.muted { color: var(--mut); font-size: 13px; }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }

/* 卡片：白底 + 粗描边 + 硬投影 */
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.login { max-width: 380px; margin: 60px auto; text-align: center; }
.login.wide { max-width: 480px; }
.login-logo { font-size: 52px; }
.login h1 { font-size: 26px; margin: 6px 0 18px; }
.sect { text-align: left; font-size: 14px; color: var(--mut); margin: 16px 0 8px; }

label { display: block; text-align: left; font-size: 14px; margin: 12px 0; color: var(--mut); }
input[type=text], input[type=password], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font-size: 16px; /* 16px 防 iOS 聚焦放大 */
  border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 3px 3px 0 var(--acc); }
select { max-width: 100%; }

/* 按钮：实心红 + 黑边 + 硬投影，按下时投影吃掉（挪位） */
button { padding: 12px 22px; min-height: 44px; font-size: 15px; font-weight: 600;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--acc); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .06s ease, box-shadow .06s ease; }
button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #161412; }
button.ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
button.danger { color: var(--bad); }
button.voicedictate { margin: 0 8px 8px 0; }
button.voicedictate.recording { color: var(--bad); }
@media (max-width: 720px) {
  form > button:not(.ghost), .recrow button:first-child { width: 100%; }
}

/* 选项块：白底粗描边，选中变粉底红边 */
.rolepick { display: flex; gap: 12px; justify-content: center; margin-bottom: 8px; flex-wrap: wrap; }
.rolepick.wrap { justify-content: flex-start; }
.roletile { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 22px; cursor: pointer;
  text-align: center; margin: 0; text-decoration: none; color: var(--ink); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .06s, box-shadow .06s, border-color .12s; }
.roletile:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #161412; }
.roletile.on { border-color: var(--acc); color: var(--acc); }
.roletile:has(:checked) { border-color: var(--acc); color: var(--acc); background: #ffe3dc; }
.roletile.small { padding: 10px 18px; min-height: 44px; }
.roletile input { display: none; }
/* 身份选择行：永远一行三个，格子随屏宽缩放 */
.idrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.idrow .roletile { padding: 12px 4px; }
.idrow .ravatar { width: 100%; max-width: 84px; height: auto; aspect-ratio: 1; }
.ravatar { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 6px;
  border: 2px solid var(--line); }
.havatar { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; vertical-align: -8px; margin-right: 6px;
  border: 2px solid var(--line); }
.rname { font-size: 15px; font-weight: 600; }

.picklist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.picktile { display: block; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.picktile:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #161412; }
.pickrow { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.pickrow input { margin-top: 4px; }
.slotrow { padding: 8px 0; border-top: 2px dashed var(--line); }

/* 题目卡 / 记录行 */
.qlist { display: grid; grid-template-columns: 1fr; gap: 10px; }
.qcard { display: block; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .06s, box-shadow .06s; }
.qcard:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #161412; }
.qcard.off { opacity: .55; box-shadow: none; }
.rowcard { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; text-decoration: none; color: var(--ink);
  min-height: 44px; box-shadow: var(--shadow-sm); transition: transform .06s, box-shadow .06s; }
.rowcard:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #161412; }
.rowcard b { flex: 1; }
.qhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qhead b { min-width: 0; }
.qhead .r { margin-left: auto; }
.qcode { font-size: 12px; color: var(--ink); border: 1.5px solid var(--line); border-radius: 4px; padding: 1px 6px; background: #ffe14d; font-weight: 600; }
.scene { background: #fff3d6; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.count { font-size: 13px; color: #fff; background: var(--acc); border: 1.5px solid var(--line); border-radius: 4px; padding: 2px 9px; vertical-align: middle; }

/* 徽章：小方块黑边 */
.badge { font-size: 12px; border-radius: 4px; padding: 3px 9px; background: #f3efe9; color: var(--mut);
  white-space: nowrap; border: 1.5px solid var(--line); font-weight: 600; }
.s-待点评 { background: #ffd9d0; color: var(--acc-dk); }
.s-已点评 { background: #c8f04a; color: #161412; }
.s-失败 { background: #e8442e; color: #fff; }
.s-转写中, .s-已上传 { background: #ffe14d; color: #161412; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }
.block { border-top: 2px dashed var(--line); margin-top: 12px; padding-top: 10px; }
.block.review { background: #eef7dc; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; border-top: 1.5px solid var(--line); margin-top: 12px; }
.block.boss { background: #fff3d6; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-top: 10px; }
.transcript { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.pre { white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
audio { width: 100%; margin: 8px 0; }

/* 连录向导：进度圆点 */
.flowbar { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.flowdot { width: 34px; height: 34px; line-height: 30px; text-align: center; border: 2px solid var(--line);
  border-radius: 50%; background: #fff; font-weight: 700; font-size: 14px; color: var(--mut); }
.flowdot.cur { border-color: var(--acc); color: var(--acc); box-shadow: var(--shadow-sm); }
.flowdot.done { background: #c8f04a; color: var(--ink); }

/* 录音：大圆钮红底黑边硬投影，录音中投影脉冲 */
.recbox { text-align: center; padding: 18px 0 6px; }
.recbtn { width: 128px; height: 128px; border-radius: 50%; font-size: 17px; line-height: 1.4;
  padding: 0; box-shadow: 5px 5px 0 #161412; }
.recbtn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #161412; }
.recbtn.recording { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 5px 5px 0 #161412, 0 0 0 0 rgba(232,68,46,.5); }
  50% { box-shadow: 5px 5px 0 #161412, 0 0 0 18px rgba(232,68,46,0); }
}
.rectime { display: block; font-size: 26px; margin: 12px 0 4px; font-variant-numeric: tabular-nums; font-family: "SmileySans", sans-serif; }
.recrow { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }

.filterbar { display: flex; gap: 10px; margin: 8px 0; }
.filterbar select { width: auto; min-height: 44px; }
/* 自绘下拉：白底粗描边硬投影 */
.wsel { position: relative; display: inline-block; }
.wsel-btn { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: var(--radius); padding: 10px 14px; font-size: 15px; font-weight: 600; }
.wsel-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; display: none;
  min-width: 100%; max-height: 300px; overflow: auto; background: var(--card);
  border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.wsel.open .wsel-list { display: block; }
.wsel-list a { display: block; padding: 11px 14px; white-space: nowrap; color: var(--ink);
  text-decoration: none; font-size: 15px; }
.wsel-list a:active { background: #ffe3dc; }
.wsel-list a.cur { color: var(--acc); font-weight: 700; }

.rowline { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.rowline input[type=text] { width: auto; flex: 1; margin-top: 0; }
.rowline select { width: auto; margin-top: 0; }
/* 管理页门店行：每个字段带可见标签 */
.storeline { flex-wrap: wrap; border-bottom: 2px dashed var(--line); padding-bottom: 10px; }
.storeline:last-child { border-bottom: none; }
.storeline .fld { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; margin: 4px 0; }
.storeline .fld span { font-size: 13px; color: var(--mut); white-space: nowrap; min-width: 60px; font-weight: 600; }
.storeline .fld input { flex: 1; margin-top: 0; }
.storeline .btnrow { display: flex; gap: 8px; }
/* 管理页紧凑模式：小输入框小按钮，门店一店一折 */
.compact button { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.compact input[type=text], .compact select { padding: 7px 9px; font-size: 14px; min-height: 0; }
.storefold form { padding: 4px 0 10px; }
.storefold .fld { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.storefold .fld span { font-size: 12px; color: var(--mut); min-width: 56px; font-weight: 600; white-space: nowrap; }
.storefold .fld input { flex: 1; margin-top: 0; }
.storefold .btnrow { display: flex; gap: 8px; margin-top: 6px; }
.qform label { margin: 8px 0; }

details summary { cursor: pointer; }
details .muted { margin-left: 8px; }
details.qitem { border-top: 2px dashed var(--line); padding: 8px 0; }
details.qitem summary { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
details.qitem summary .qname { flex: 1 1 40%; min-width: 0; font-weight: 600; }
details.qitem summary .qmeta { margin-left: auto; white-space: nowrap; text-align: right; }
details.off summary { opacity: .5; }
details.person { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  margin: 10px 0; padding: 0 16px; box-shadow: var(--shadow); }
details.person summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer;
  list-style: none; min-height: 44px; }
details.person summary::-webkit-details-marker { display: none; }
details.person summary::after { content: "▸"; margin-left: auto; color: var(--ink); font-weight: 700; transition: transform .15s; }
details.person[open] summary::after { transform: rotate(90deg); }
details.person summary b { font-size: 16px; white-space: nowrap; }
details.person .qgroup { border-top: 2px dashed var(--line); padding: 10px 0 12px; }
details.stafffold { margin: 6px 0 10px; background: #fff8f2; box-shadow: var(--shadow-sm); }
details.stafffold summary b { font-size: 15px; }
.guanlist { padding: 2px 0 12px; }
.guanrow { border-top: 2px dashed var(--line); padding: 8px 0; }
details.qfold { border-top: 2px dashed var(--line); padding: 4px 0; }
details.qfold summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0;
  cursor: pointer; list-style: none; min-height: 44px; }
details.qfold summary::-webkit-details-marker { display: none; }
details.qfold summary::after { content: "▸"; margin-left: auto; color: var(--ink); font-weight: 700; transition: transform .15s; }
details.qfold[open] summary::after { transform: rotate(90deg); }
details.takefold { border-top: 2px dashed var(--line); padding: 6px 0; }
details.takefold summary { display: block; padding: 8px 0; cursor: pointer; list-style: none; position: relative; }
details.takefold summary::-webkit-details-marker { display: none; }
details.takefold summary::after { content: "▸"; position: absolute; right: 0; top: 10px; color: var(--ink); font-weight: 700; transition: transform .15s; }
details.takefold[open] summary::after { transform: rotate(90deg); }
details.takefold .takebody { padding: 4px 0 10px; }
/* 遍数行统一两行结构：上行徽章两端对齐，下行时间 */
.tline1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-right: 20px; }
.tline2 { display: block; margin-top: 3px; font-size: 12px; }
.rowcard.takerow { display: block; padding: 10px 14px; }

/* 看板表格（桌面）；手机折成卡片 */
.dtable { border-collapse: collapse; width: 100%; font-size: 13px; background: #fff; }
.dtable th, .dtable td { border: 2px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.dtable th { background: #ffe14d; font-weight: 700; }
.dtable th.grp { background: #ffd9d0; text-align: center; }
.take { white-space: nowrap; margin-bottom: 2px; }
.take .ok { color: #4d7c0f; font-weight: 600; }
.take .todo { color: var(--acc); font-weight: 600; }
.takelink { display: block; text-decoration: none; color: inherit; padding: 3px 6px; margin: 0 -6px 2px;
  border-radius: var(--radius); border: 1.5px dashed transparent; }
.takelink:hover { border-color: var(--acc); }
@media (max-width: 720px) {
  main { padding: 14px 12px 80px; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .dtable thead { display: none; }
  .dtable { border: none; background: none; }
  .dtable tr { border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
  .dtable td { border: none; border-top: 2px dashed var(--line); padding: 8px 10px; }
  .dtable td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--mut); margin-bottom: 3px; }
  .dtable td.staffname { font-weight: 700; border-top: none; background: #ffe14d; }
  .dtable td.staffname::before { content: none; }
  .take { white-space: normal; }
}
