:root {
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --ink: #2b2a28;
  --ink-2: #6b655d;
  --line: #e2dacd;
  --accent: #a2543a;
  --accent-2: #8a4430;
  --ok: #3f7a56;
  --shadow: 0 10px 30px rgba(60, 45, 30, .10);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* 底部留一行备案号：工信部要求首页显著位置展示，微信审核也认这一行。
   body 撑满一屏，.app 吃掉剩余高度，footer 永远贴在最后一行，不额外产生滚动。 */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.app { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

.site-foot {
  flex: 0 0 auto;
  padding: 0 0 env(safe-area-inset-bottom);
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}
/* 字很小，但手指要能点到 44px：用 min-height 撑开可点区，视觉上仍是一行细字 */
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); opacity: .65; }
.nojs { padding: 24px; font-size: 15px; color: var(--ink-2); text-align: center; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--ink-2); font-size: 15px; }

/* ---------- 入口页 ---------- */
.entry {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 24px;
  padding: max(28px, env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  gap: 18px;
  position: relative;
}
.entry__brand {
  font-size: 15px;
  letter-spacing: .32em;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.talk {
  width: 232px; width: min(64vw, 232px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 25%, #bd6a4d 0%, var(--accent) 45%, var(--accent-2) 100%);
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: .06em;
  box-shadow: var(--shadow), inset 0 -6px 18px rgba(0, 0, 0, .12);
  display: grid;
  place-items: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.talk:active { transform: scale(.97); box-shadow: 0 4px 14px rgba(60, 45, 30, .18); }
.talk__hint { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* 录音中：整颗按钮呼吸，秒数在中间跳，手上不用看太细 */
.talk.is-recording {
  animation: talkPulse 1.1s ease-in-out infinite;
  box-shadow: 0 6px 22px rgba(160, 60, 40, .38), inset 0 -6px 18px rgba(0, 0, 0, .14);
}
.talk.is-recording span { font-size: 21px; letter-spacing: .04em; }
.talk:disabled { opacity: .72; }
@keyframes talkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

.entry__row { display: flex; align-items: center; gap: 12px; }
.ghost {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  min-height: 48px;
  font-size: 16px;
}
.ghost:active { background: var(--paper-2); }
/* 「加照片」：首页上唯一往作品里配图的入口，字和加号都放大，别让人找 */
.ghost--lg {
  min-height: 56px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.ghost--lg .ghost__plus {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  margin-right: 4px;
}
/* 区块标题右侧的小号胶囊（文件夹里的「加照片」） */
.ghost--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.ghost--sm .ghost__plus {
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  margin-right: 3px;
}

.entry__text { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
textarea {
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
textarea::placeholder { color: #b6aca0; }

.primary {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 14px 20px;
  min-height: 52px;
  font-size: 17px;
}
.primary:active { opacity: .88; }
.primary[disabled] { opacity: .4; }

.corner {
  position: absolute;
  right: 12px;
  bottom: calc(6px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--ink-2);
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { background: var(--paper-2); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); }

/* ---------- 已加的照片 ---------- */
.pics { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pics--fixed { margin-bottom: 14px; }
.pic { position: relative; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic__x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

/* ---------- 加载页 ---------- */
.loading {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.loading__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
.loading__text { font-size: 18px; letter-spacing: .08em; color: var(--ink-2); }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- 通用页 ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 18px 96px;
  padding: max(20px, env(safe-area-inset-top)) 18px calc(96px + env(safe-area-inset-bottom));
}
.page__title { font-size: 21px; font-weight: 600; margin: 4px 0 4px; }
.page__sub { color: var(--ink-2); font-size: 14px; margin-bottom: 18px; }

/* 作品详情标题：书画题跋风——竖排大字＋落款＋朱印，留白撑开 */
.work-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-height: 168px;
  padding: 8px 4px 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line, rgba(80,60,40,.16));
}
.work-hero__body {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 14px;
}
.work-hero__title {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 6px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.work-hero__seal {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  align-self: flex-end;
  margin-bottom: 2px;
  padding: 6px 3px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: #a4362c;
  border-radius: 2px;
}
.work-hero__sub {
  align-self: flex-start;
  max-width: 74%;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

/* 作品详情：图文 = 视频的静态切片，一镜多帧 + 该镜配文。绝不是"一张图 + 一整段字"。 */
.workbody { display: flex; flex-direction: column; gap: 18px; }
.shotgroup { margin: 0; }
/* 每个身体镜头取样 3 个时刻定格：竖排，像把视频这一镜往回刷了三下 */
.shotgroup__frames { display: flex; flex-direction: column; gap: 8px; }
.slide__img {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(60,40,20,.12);
}
.slide__img img {
  display: block;
  width: 100%;
  height: 100%;
  /* object-fit / object-position / transform 由 JS 按播放器同一套镜头变换注入 */
}
/* 暗角：和视频身体镜头的 .veil 一致，让静态帧看着像从视频里截的 */
.slide__img::after {
  content: "";
  position: absolute;
  top:0;right:0;bottom:0;left:0;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 45%, rgba(0,0,0,0) 55%, rgba(40,26,12,.28) 100%);
}
.slide__cap {
  margin: 8px 2px 0;
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
  color: #2c2620;
}
.workgroup__punch {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--accent);
}

/* 入口页：上一条没做完的提示 */
.resume {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.blocks { display: flex; flex-direction: column; gap: 10px; }
.block {
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.block:active { border-color: var(--accent); }
.block--editing { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(162, 84, 58, .10); }

/* 原话版确认：只标工具与 AI 都判不了怎么处置的词，非阻断，画家觉得有问题才点 */
.flag {
  background: #f7e7cb;
  border-bottom: 2px dotted var(--accent);
  border-radius: 3px;
  padding: 0 2px;
  color: var(--ink);
}
.flag--done {
  background: #e3efe4;
  border-bottom-color: var(--ok);
  color: var(--ok);
}
.block--waiting { color: var(--ink-2); text-align: center; }

/* ---------- 三选一 ---------- */
.groups { display: flex; flex-direction: column; gap: 12px; }
.group__role { font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .5px; }
.group {
  position: relative;
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  font-size: 17px;
  line-height: 1.75;
}
.group:active { border-color: var(--accent); }
.group--on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(162, 84, 58, .12);
}

/* 三版边框差异化：一眼看出是三个不同版本，别让人滑到第三页就放弃 */
.group--control { border-left: 4px solid var(--ink-2); }
.group--image   { border-left: 4px solid #4a7c74; border-radius: 12px 6px 6px 12px; }
.group--emotion { border-left: 4px solid var(--accent); border-radius: 6px 12px 12px 6px; }
.group--control .group__role { color: var(--ink-2); }
.group--image .group__role   { color: #3f6b64; font-weight: 600; }
.group--emotion .group__role { color: var(--accent); font-weight: 600; }
/* 画面版诗紧跟标题、情绪版诗在正文后点题：给两种诗块不同的边框底色 */
.group--image .group__poem   { border-left-color: #4a7c74; }
.group--emotion .group__poem { border-top: 1px dashed var(--accent); border-left-color: var(--accent); font-size: 14px; }
.group__epigraph {
  font-size: 14px;
  color: var(--ink-2);
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 10px;
  margin: 2px 0 12px;
}
.dual-tip {
  font-size: 14px;
  color: #3f6b64;
  background: #eef4f1;
  border: 1px solid #cfe0da;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.group-pick--dual { border-color: #4a7c74; color: #3f6b64; }
.group__title {
  font-size: 26px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0 4px;
}
.group__subtitle { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.group__poem {
  font-size: 15px;
  line-height: 1.9;
  color: var(--accent-2);
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.group__punch {
  font-size: 15px;
  color: var(--accent);
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 10px;
}
.group__text { white-space: pre-wrap; }
.group__tick {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  color: var(--accent);
}
.group--on .group__tick { display: block; }
.group__meta {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.group__meta .ghost { flex: 1; font-size: 14px; padding: 9px 12px; }
.group__meta textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}

/* 三选一里的"重新录一段"：小一号的说话按钮，别抢三组的风头 */
.rerecord-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
}
.talk--small {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-2);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.35;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.talk--small:active { transform: scale(.97); }
.talk--small.is-recording {
  background: var(--accent);
  color: #fff;
  animation: talkPulse 1.1s ease-in-out infinite;
}
.talk--small.is-recording span { font-size: 16px; }



/* 底部操作条：左返回、右下一步，拇指够得着 */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 640px;
  margin: 0 auto;
  z-index: 20;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 78%, rgba(251, 248, 243, 0));
  display: flex;
  gap: 10px;
}
.bar .primary { flex: 1; }
.bar .back-btn {
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 16px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bar .back-btn:active { border-color: var(--accent); color: var(--accent); }
.bar .back-btn:only-child { flex: 1; }

.cards { display: grid; gap: 14px; }
.card-choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: left;
}
.card-choice:active { border-color: var(--accent); }
.card-choice strong { display: block; font-size: 19px; margin-bottom: 4px; }
.card-choice span { color: var(--ink-2); font-size: 14px; }

.list { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.item__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.item__text { font-size: 15px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__copy { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.tag { background: var(--paper-2); border-radius: 6px; padding: 1px 8px; font-size: 12px; color: var(--ink-2); }

.empty { text-align: center; color: var(--ink-2); padding: 60px 20px; }

.note {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink-2);
  font-size: 14px;
}

/* 演示提示：只有本地规则引擎时才出现，接上模型自动消失 */
.demo {
  background: #fff6e8;
  border: 1px dashed #d9b98a;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 14px;
  color: #8a6a3a;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 后台 ---------- */
.admin { max-width: 900px; }
.section__title { font-size: 17px; font-weight: 600; margin: 26px 0 6px; }
.keys { display: grid; gap: 12px; margin: 12px 0 8px; }
.keycard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.keycard--ok { border-color: #cfe3d6; background: #fbfdfb; }
.keycard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.keycard__head b { font-size: 15px; }
.keycard__role { color: var(--ink-2); font-size: 13px; margin: 6px 0 0; line-height: 1.6; }
.keycard__fields { display: grid; gap: 8px; margin: 10px 0; }
.keyfield { display: grid; gap: 4px; }
.keyfield span { font-size: 12px; color: var(--ink-2); }
.keyfield input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}
.keycard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.keycard__foot a { font-size: 13px; color: var(--accent); }
.keycard__time { font-size: 12px; color: var(--ink-2); }

/* 测试连接的结果：通/不通各一种底色，一眼分得出 */
.keycard__result {
  display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; line-height: 1.65; color: var(--ink);
  word-break: break-word;
}
.keycard__result[hidden] { display: none; }
.keycard__result--wait { background: #f7f4ef; color: var(--ink-2); }
.keycard__result--ok { background: #eaf3ec; border-color: #cfe3d6; }
.keycard__result--ok b { color: var(--ok); }
.keycard__result--fail { background: #fdf2ef; border-color: #e8cdc6; }
.keycard__result--fail b { color: #a2402f; }
.keycard__sample { color: var(--ink-2); font-size: 12px; }
.tag--ok { background: #eaf3ec; color: var(--ok); }
.ghost--danger { color: #a2402f; border-color: #e8cdc6; }

.admin__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--ink-2); }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--paper-2); font-weight: 600; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(43, 42, 40, .92);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  max-width: 84vw;
  text-align: center;
  z-index: 50;
  pointer-events: none;   /* 只是个提示，别挡住底下的按钮 */
}

@media (min-width: 700px) {
  .entry { justify-content: center; }
  .talk { width: 240px; }
}

/* ---------- 微信里的提示条 ---------- */
body.wx .app { padding-top: 104px; }

.wx-hint {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 14px;
  background: #fff6e8;
  border-bottom: 1px solid #e8d7bb;
  box-shadow: 0 6px 18px rgba(60, 45, 30, .08);
  animation: wxIn .3s ease;
}
@keyframes wxIn { from { transform: translateY(-100%); } to { transform: none; } }

.wx-hint__arrow {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.wx-hint__body { flex: 1; min-width: 0; }
.wx-hint__title { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: var(--ink); }
.wx-hint__step { margin: 0; font-size: 15px; color: var(--ink-2); }
.wx-hint__step b { color: var(--accent-2); }
.wx-hint__close {
  flex: none;
  align-self: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- 账号：登录 / 注册 / 我的 ----------
   风格沿用纸色底、细边框，不加新颜色。年纪大的人用，输入框做高、字号做大。 */
.corner-group {
  position: absolute;
  right: 12px;
  bottom: calc(6px + env(safe-area-inset-bottom));
  display: flex;
  gap: 4px;
}
.corner-link {
  font-size: 13px;
  color: var(--ink-2);
  padding: 12px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.auth { gap: 6px; }
.auth__brand {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 6px;
}
.auth__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--ink-2); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 17px;
  color: var(--ink);
}
.field input:focus { outline: 2px solid rgba(162, 84, 58, .25); border-color: var(--accent); }

/* 密码框右侧的「显示 / 隐藏」。只切明文密文，不动内容。 */
.field--pw { position: relative; }
.field--pw input { padding-right: 76px; }
.pw-toggle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  min-width: 68px;
  height: 48px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pw-toggle:active { background: var(--paper); }
.auth__err { margin: 0; min-height: 20px; font-size: 14px; color: #a2402f; }
.auth__go { width: 100%; min-height: 52px; }
.auth__switch {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.auth__tip { font-size: 13px; color: var(--ink-2); text-align: center; }
.account__foot { margin: 18px 0 8px; display: flex; gap: 10px; }
.account__foot .ghost { flex: 1; min-height: 46px; }

/* ---------- 后台：邀请码 ---------- */
.invite-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
}
.invite-field { display: flex; flex-direction: column; gap: 4px; width: 104px; }
.invite-field--note { width: 150px; }
.invite-field > span { font-size: 12px; color: var(--ink-2); }
.invite-field input {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}
.invite-bar .primary { min-height: 42px; padding: 0 18px; }
.invite-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.invite-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.invite-item__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
}
.invite-item__meta {
  flex: 1;
  min-width: 140px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
  align-items: center;
}
.invite-item__act { display: flex; gap: 6px; }
.invite-item__act .ghost { min-height: 38px; padding: 6px 12px; font-size: 13px; }

/* 后台表格：窄屏时横向滚动，不把整页撑宽 */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; }
.table-wrap table { min-width: 420px; }

/* 微信提示的第二行：说清"跳出去要重新登一次" */
.wx-hint__step--sub { margin-top: 6px; font-size: 14px; color: #8a8175; }

/* ---------- 底部四个导向标（2026-10-30） ----------
 * 拇指够得着的位置。只出现在首页/素材/作品/我的，操作页不出现。
 * 带毛玻璃是为了往上滚内容时不至于糊成一片。
 */
.tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 640px;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  background: rgba(251, 248, 243, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 0 5px;
  min-height: 58px;
  color: var(--ink-2);
  font-size: 13px;      /* 四个入口天天要点，11px 对四十岁往上的人都偏小 */
  line-height: 1.2;
}
.tab svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tab--on { color: var(--accent); }

/* 首页本来贴着底边，加了导航要往上让开一排 */
body.has-tabs .entry { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- 素材库 ---------- */
.sec { margin-top: 22px; }
.sec__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.link-btn { color: var(--accent); font-size: 14px; padding: 6px 0 6px 8px; }
.page__crumb { font-size: 14px; margin-bottom: 8px; }
.folders { display: flex; flex-direction: column; gap: 8px; }
.folder {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
}
.folder__name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder__n { font-size: 13px; color: var(--ink-2); flex: 0 0 auto; }
.folder__danger { margin: 26px 0 8px; color: var(--ink-2); }
.folder__danger:hover { color: var(--accent); }

.mat {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.mat__main { flex: 1; min-width: 0; padding: 13px 6px 13px 16px; color: var(--ink); }
.mat__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.mat__text {
  font-size: 15px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mat__foot { display: flex; gap: 6px; margin-top: 7px; }
.mat__pics { font-size: 12px; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: 1px 7px; }
.mat__more {
  flex: 0 0 48px;
  font-size: 20px;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}

/* ---------- 底部弹出条 ---------- */
.sheet { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__mask { position: absolute; top:0;right:0;bottom:0;left:0; background: rgba(30, 25, 20, .34); }
.sheet__box {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
}
.sheet__title { font-size: 14px; color: var(--ink-2); margin: 2px 0 12px; text-align: center; }
.sheet__list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }
.sheet__opt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-size: 16px;
  color: var(--ink);
}
.sheet__opt--danger { color: #9d3b28; border-color: #ecd6ce; }
.sheet__input {
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  color: var(--ink);
}
.sheet__ok { width: 100%; }
.sheet__cancel {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- 首页那行「存到 XX」（2026-10-30，10-31 按适老化放大） ----------
 * 放在文字框上面，一眼看到这条会落到哪个文件夹。
 * 默认是当天的（10-30A），不用管；想分开才点。
 * 话是他说的：「存到哪儿图标太小了，画家平均 40 岁以上，资深的 50-70」——
 * 所以这一行不再是一行小蓝字，做成一条正经的胶囊按钮：白底、描边、52 高。
 */
.entry__folder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 12px;
  width: 100%;
  max-width: 420px;
}
.entry__folder-k {
  font-size: 16px;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.folder-pill {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 18px;        /* 五十岁往上，17 以下就吃力了 */
  font-weight: 600;
  color: var(--ink);
  max-width: 62vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-pill:active { background: var(--paper-2); }
.folder-pill::after {
  content: '▾';
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
}

/* 「！」：文件夹规则就这一处说明，不占版面，想知道的人才点。
 * 做成有边框的圆钮——纯字太像标点，没人知道能点。 */
.hint-dot {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-2);
  font-size: 22px;
  font-weight: 600;
  line-height: 50px;
}
.hint-dot:active { background: var(--paper-2); }
.tip { font-size: 15px; line-height: 1.7; color: var(--ink); margin-bottom: 14px; }
.tip p { margin: 0 0 10px; }
.tip b { font-weight: 600; }

/* ---------- 素材条目右侧的「润色」+「⋯」（2026-10-30） ----------
 * 润色放在列表上，不用点进去读一遍再走流程。
 */
.mat__acts {
  flex: 0 0 62px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.mat__act {
  flex: 1;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
}
.mat__more {
  flex: 1;
  min-height: 44px;
  border-left: 0;
}

/* ---------- 文件夹里改名 / 照片（2026-10-30） ---------- */
.renamebar { display: flex; gap: 8px; margin: 14px 0 4px; }
.renamebar__say { flex: 1; color: var(--accent); border-color: #e3d6c6; }
.renamebar__type { flex: 0 0 auto; color: var(--ink-2); }
.pics--grid { justify-content: flex-start; }
.pic--lg { width: 96px; height: 96px; }
.pic--lg a { display: block; width: 100%; height: 100%; }
.pic--lg .pic__x {
  width: 30px;
  height: 30px;
  font-size: 17px;
  line-height: 30px;
}

/* ---------- 录音时不让人被别处带走（2026-10-31） ----------
 * 画家一句话说到一半，手一滑点到"加照片"或底下导航，这段就断了。
 * 录音期间除录音按钮以外的东西一律点不动——不是灰着提醒，是真的按不下去。
 */
body.is-recing .tabs,
body.is-recing .entry__row,
body.is-recing .entry__folder,
body.is-recing .entry__text,
body.is-recing .resume,
body.is-recing .pics,
body.is-recing .mat,
body.is-recing .bar {
  pointer-events: none;
  opacity: .35;
  filter: grayscale(.5);
  transition: opacity .2s ease;
}

/* ---------- 原地等待条（不换页） ---------- */
.hold {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 48px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(43, 42, 40, .92);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .02em;
  box-shadow: 0 10px 26px rgba(40, 30, 20, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 60;
}
.hold.on { opacity: 1; transform: translate(-50%, 0); }
.hold__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0c9a8;
  animation: pulse 1.1s ease-in-out infinite;
  flex: 0 0 auto;
}
body.is-busy .talk { pointer-events: none; opacity: .7; }

/* 作品详情页：图文 + 看视频 */
/* 图文页固定竖窗：图按 9:16 竖版裁切填充，跟视频默认窗口一致；不按原比例，避免竖图横图各显各的。 */
.workcover { width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.workcover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workbody { display: flex; flex-direction: column; gap: 14px; }
.workgroup {
  background: var(--paper-2);
  border-radius: 10px;
  padding: 16px 16px 14px;
}
.workgroup__title { font-size: 17px; font-weight: 600; color: var(--ink); }
.workgroup__sub { font-size: 13px; color: var(--ink-2); margin: 3px 0 10px; }
.workgroup__body { font-size: 15px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; }
.workgroup__punch {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-3, #e2d5bd);
  font-size: 14px;
  color: var(--ink-2);
}
.workactions { margin: 16px 0 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workactions .primary { width: auto; min-height: 46px; flex: 0 0 auto; }
/* 视频窗口比例选择器：极简，不挂说明文字 */
.ar-sel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ar-sel select { font: inherit; font-size: 13px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }

/* 作品页三个输出动作：做成真正的按钮，和「看视频 / 视频比例 / 配乐 / 皮肤」区分开 */
.workacts { display: flex; gap: 10px; flex-wrap: wrap; width: 100%; margin-bottom: 4px; }
.work-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 15px; cursor: pointer;
}
.work-act:active { background: #f1ece3; }
.work-act[disabled] { opacity: .45; cursor: default; }

/* 转发弹窗：预览卡 + 二维码 + 复制链接 + 微信引导（不依赖服务端二维码） */
.share-pop { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.share-pop .share-mask { position: absolute; top:0;right:0;bottom:0;left:0; background: rgba(0,0,0,.45); }
.share-card {
  position: relative; z-index: 1; width: min(86vw, 360px);
  background: var(--paper); border-radius: 18px; padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25); text-align: center;
}
.share-card .share-x { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 24px; color: var(--ink-2); cursor: pointer; line-height: 1; }
.share-cover { width: 100%; aspect-ratio: 9 / 16; max-height: 220px; object-fit: cover; border-radius: 12px; background: var(--line); }
.share-title { font-size: 17px; font-weight: 600; margin: 12px 0 2px; color: var(--ink); }
.share-sub { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.share-qr { width: 168px; height: 168px; margin: 0 auto 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-sizing: border-box; }
.share-qr img { width: 100%; height: 100%; display: block; }
.share-tip { font-size: 13px; color: var(--ink-2); line-height: 1.5; margin: 0 0 14px; }
.share-card .primary { width: 100%; }

/* ---------------- 配乐目录（2026-11-06） ----------------
   入口紧贴「视频比例」，默认只见一个按钮；点开才有曲库、歌单和上传。 */
.bgm-open { cursor: pointer; border: 1px solid var(--line); background: var(--paper);
  border-radius: 8px; padding: 7px 10px; color: var(--ink); font: inherit; font-size: 13px; }
.bgm-open:hover { background: var(--paper-2); }
.bgm-panel { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.bgm-panel__scrim { position: absolute; top:0;right:0;bottom:0;left:0; background: rgba(28, 24, 20, .46); backdrop-filter: blur(2px); }
.bgm-panel__box { position: relative; display: flex; flex-direction: column;
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 760px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24); overflow: hidden; }
.bgm-panel__head { display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.bgm-panel__title { font-size: 18px; letter-spacing: .1em; }
.bgm-panel__cur { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.bgm-panel__x { border: 0; background: none; font-size: 25px; line-height: 1;
  color: var(--ink-2); cursor: pointer; padding: 0 4px; }
.bgm-panel__body { overflow-y: auto; padding: 4px 20px 24px; -webkit-overflow-scrolling: touch; }
.bgm-sec { margin: 20px 0 8px; font-size: 12px; letter-spacing: .16em; color: var(--ink-2); }
.bgm-notice { font-size: 11px; line-height: 1.65; color: var(--ink-2); margin: 8px 0 10px; }
.bgm-row { display: flex; align-items: center; gap: 8px; padding: 10px 0 10px 0;
  border-bottom: 1px solid var(--line); }
.bgm-row.is-on { box-shadow: inset 3px 0 0 var(--ink); padding-left: 11px; }
.bgm-row__main { flex: 1 1 auto; min-width: 0; }
.bgm-row__name { font-size: 15px; color: var(--ink); }
.bgm-row__tag { margin-left: 8px; font-size: 11px; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; }
.bgm-row__note { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.bgm-mini { flex: 0 0 auto; font: inherit; font-size: 12px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--paper);
  color: var(--ink); cursor: pointer; white-space: nowrap; }
.bgm-mini:hover { background: var(--paper-2); }
.bgm-pl { border-bottom: 1px solid var(--line); }
.bgm-pl summary { display: flex; align-items: center; gap: 8px; padding: 11px 0;
  cursor: pointer; list-style: none; }
.bgm-pl summary::-webkit-details-marker { display: none; }
.bgm-pl__tag { font-size: 12px; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.bgm-pl__name { flex: 1; font-size: 13px; color: var(--ink-2); }
.bgm-pl__rec { font-size: 11px; color: #a8342a; white-space: nowrap; }
.bgm-pl__mood { font-size: 12px; color: var(--ink-2); margin: 2px 0 4px; }
.bgm-pl__kw { font-size: 11px; color: var(--ink-2); opacity: .72; margin-bottom: 9px; }
.bgm-pl__track { padding: 6px 0 6px 12px; border-left: 2px solid var(--line); margin-bottom: 7px; }
.bgm-pl__t { font-size: 13px; color: var(--ink); }
.bgm-pl__t span { font-size: 11px; color: var(--ink-2); }
.bgm-pl__c { font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.bgm-upload { display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 17px; border: 1px solid var(--ink);
  border-radius: 8px; font-size: 13px; cursor: pointer; }
.bgm-upload:hover { background: var(--paper-2); }
.bgm-restore { margin-left: 9px; }
@media (max-width: 600px) {
  .bgm-panel__box { width: calc(100vw - 20px); max-height: 86vh; }
  .bgm-panel__body { padding-left: 15px; padding-right: 15px; }
}

/* ===== 作画特征标签卡（风格层 P1：AI 预判 + 画家确认） ===== */
.tagcard { margin: 16px 0 4px; padding: 14px 14px 4px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; }
.taggroup { margin-bottom: 13px; }
.taggroup__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.taggroup__title { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink); }
.tagdim { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.tagdim__label { flex: 0 0 56px; font-size: 12px; color: var(--ink-2); }
.tagchips { display: flex; flex-wrap: wrap; gap: 8px; }
.tagchip { font: inherit; font-size: 13px; padding: 6px 13px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; color: var(--ink-2); cursor: pointer; transition: all .12s; }
.tagchip:hover { border-color: var(--ink); }
.tagchip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tagpredict { font: inherit; font-size: 12px; padding: 5px 12px; border: 1px solid var(--ink);
  border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; }
.tagpredict:disabled { opacity: .5; cursor: default; }
.tagactions { margin: 4px 0 10px; }
#tagSave { width: 100%; }

/* ---------------- 提交时：上传读条 + 风格弹窗 ---------------- */
.overlay { position: fixed; top:0;right:0;bottom:0;left:0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(28,22,16,.5); backdrop-filter: blur(2px); }
.progress-card { width: min(320px, 86vw); background: var(--paper, #f4ecdc); border-radius: 16px;
  padding: 22px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.25); text-align: center; }
.progress-title { font-size: 15px; color: var(--ink, #2c241a); margin-bottom: 14px; }
.progress-bar { height: 8px; border-radius: 6px; background: var(--paper-2, #e7dcc6); overflow: hidden; }
.progress-bar > i { display: block; height: 100%; width: 0; background: var(--ink, #2c241a);
  border-radius: 6px; transition: width .25s ease; }
.progress-pct { margin-top: 10px; font-size: 13px; color: var(--ink-2, #8a7c64); }

/* 后台活儿告示窗：排队位次、进度、能取消——让人分得清在生成还是卡机 */
.task-card { width: min(340px, 88vw); background: var(--paper, #f4ecdc); border-radius: 16px;
  padding: 22px 20px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); text-align: center; }
.task-title { font-size: 16px; color: var(--ink, #2c241a); margin-bottom: 6px; }
.task-stage { font-size: 13px; color: var(--ink-2, #8a7c64); min-height: 20px; margin-bottom: 14px; line-height: 1.5; }
.task-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; min-height: 26px; }
.task-pct { font-size: 12px; color: var(--ink-2, #8a7c64); }
.task-cancel { font: inherit; font-size: 12.5px; color: var(--ink-2, #8a7c64); background: none;
  border: 0; cursor: pointer; padding: 4px 8px; }

/* 首页：开口之前先定是哪一种日记 */
.diary-switch { display: inline-flex; gap: 0; margin: 2px auto 16px; border: 1px solid var(--line, #d9cdb4);
  border-radius: 20px; overflow: hidden; }
.diary-switch button { font: inherit; font-size: 13.5px; padding: 7px 20px; border: 0;
  background: transparent; color: var(--ink-2, #8a7c64); cursor: pointer; }
.diary-switch button.on { background: var(--ink, #2c241a); color: #fff; }

/* 工作日记：转写文案 + 后续步骤占位 */
.worktext { white-space: pre-wrap; line-height: 1.9; font-size: 15px; color: var(--ink, #2c241a);
  background: var(--paper-2, #e7dcc6); border-radius: 12px; padding: 16px; margin: 14px 0 20px; }
.diary-steps { display: flex; flex-direction: column; gap: 8px; }
.diary-step { display: flex; justify-content: space-between; align-items: center; font: inherit;
  font-size: 14.5px; padding: 12px 14px; text-align: left; border: 1px solid var(--line, #d9cdb4);
  border-radius: 12px; background: transparent; color: var(--ink, #2c241a); cursor: pointer; }
.diary-step span { color: var(--ink-2, #8a7c64); }

/* 后台：收敛环雷达图 */
.radar-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  background: var(--paper-2, #e7dcc6); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.radar-side { flex: 1 1 180px; min-width: 170px; }
.radar-side select { width: 100%; margin-top: 8px; font: inherit; font-size: 14px; padding: 8px 10px;
  border: 1px solid var(--line, #d9cdb4); border-radius: 10px; background: var(--paper, #f4ecdc);
  color: var(--ink, #2c241a); }
.radar-meta { margin-top: 14px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2, #8a7c64); }
.radar-svg { flex: 0 0 300px; max-width: 100%; display: flex; justify-content: center; }

.style-card { width: min(440px, 92vw); max-height: 86vh; overflow-y: auto; background: var(--paper, #f4ecdc);
  border-radius: 18px; padding: 22px 20px 16px; box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.style-card__title { font-size: 19px; color: var(--ink, #2c241a); margin: 0 0 4px; }
.style-card__sub { font-size: 12.5px; line-height: 1.6; color: var(--ink-2, #8a7c64); margin: 0 0 14px; }
.style-group { margin-bottom: 14px; }
.style-group__name { font-size: 12px; letter-spacing: .14em; color: var(--ink-2, #8a7c64); margin-bottom: 7px; }
.style-dim { margin-bottom: 11px; }
.style-dim--genre { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--line, #d9cdb4); }
.style-dim__label { font-size: 14px; color: var(--ink, #2c241a); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.style-dim__label .req { color: #b3402f; font-size: 13px; }
.style-hint { font-size: 12.5px; color: var(--ink-2, #8a7c64); padding: 4px 2px; }
.ai-badge { font-size: 10px; background: var(--ink, #2c241a); color: #fff; border-radius: 8px; padding: 1px 6px; }
.ai-hint { font-size: 11px; color: var(--ink-2, #8a7c64); }
.style-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.style-opt { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--line, #d9cdb4);
  border-radius: 14px; background: transparent; color: var(--ink, #2c241a); cursor: pointer; transition: all .12s; }
.style-opt:hover { border-color: var(--ink, #2c241a); }
.style-opt.on { background: var(--ink, #2c241a); color: #fff; border-color: var(--ink, #2c241a); }
/* 问卷题：题干与选项括注照 1.txt 原文；画种只是词库路由，压在顶上一条。 */
.style-genre { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px dashed var(--line, #d9cdb4); }
.style-opt--q { text-align: left; line-height: 1.35; min-width: 132px; }
.opt-note { display: block; font-size: 11.5px; line-height: 1.4; margin-top: 3px; opacity: .72; }
.style-opt.on .opt-note { opacity: .86; }
.style-actions { display: flex; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line, #d9cdb4); }
.btn-primary { flex: 1; font: inherit; font-size: 15px; padding: 11px 0; border: 0; border-radius: 12px;
  background: var(--ink, #2c241a); color: #fff; cursor: pointer; }
.btn-ghost { font: inherit; font-size: 15px; padding: 11px 18px; border: 1px solid var(--line, #d9cdb4);
  border-radius: 12px; background: transparent; color: var(--ink-2, #8a7c64); cursor: pointer; }

/* 九天管理号：镜像作品三版文案切换（画家端不出现） */
.vbox { margin: 0 0 18px; padding: 14px 15px; border: 1px solid var(--line, #e2dacd);
  border-radius: var(--radius, 18px); background: var(--paper-2, #f4efe6); }
.vbox__hd { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 15px; font-weight: 600; color: var(--ink, #2b2a28); }
.vbox__hd span { font-size: 12px; font-weight: 400; color: var(--ink-2, #6b655d); }
.vbtns { display: flex; flex-wrap: wrap; margin: 12px 0 4px; }
.vbtn { font: inherit; font-size: 13px; line-height: 1.5; padding: 7px 13px; margin: 0 8px 8px 0;
  border: 1px solid var(--line, #e2dacd); border-radius: 999px;
  background: transparent; color: var(--ink, #2b2a28); cursor: pointer; }
.vbtn.on { background: var(--ink, #2b2a28); color: #fff; border-color: var(--ink, #2b2a28); }
.vtag { margin-left: 6px; font-size: 11px; color: var(--accent, #a2543a); }
.vbtn.on .vtag { color: #f0c9a0; }
.vfull { border-top: 1px solid var(--line, #e2dacd); padding-top: 12px; }
.vfull__t { font-size: 16px; font-weight: 600; color: var(--ink, #2b2a28); }
.vfull__s { font-size: 12px; color: var(--ink-2, #6b655d); margin-top: 2px; }
.vfull__b { font: inherit; font-size: 13px; line-height: 1.85; white-space: pre-wrap;
  word-break: break-word; max-height: 260px; overflow: auto; margin: 10px 0 0;
  color: var(--ink, #2b2a28); }
.vfull__p { margin-top: 8px; font-size: 13px; color: var(--accent-2, #8a4430); }
