.studio-preview #questions {
  --talk-paper: #e6e5d5;
  --talk-rail: clamp(300px, 38vw, 485px);
  --talk-tail: clamp(67px, 8vw, 104px);
  scroll-margin-top: 0;
}
.studio-preview #questions > .wrap {
  width: min(calc(100% - 2 * var(--gutter)), 1360px);
  min-height: max(calc(100svh - var(--bar)), 570px);
  padding-top: clamp(190px, 41svh, 465px);
  justify-content: flex-start;
}
.studio-preview .qa-opening, .talk-visitor, .studio-preview #questions .page-foot {
  opacity: var(--studio-voice-opacity, 1);
}
.studio-preview .qa-opening { width: var(--talk-rail); }
.studio-preview #qa-title {
  margin: 0 0 clamp(19px, 3svh, 32px);
  color: #eeeadd;
  font: 520 clamp(42px, 4.5vw, 68px)/1.16 var(--display);
  letter-spacing: -.055em;
}
.studio-preview #qa-title .title-stop { color: inherit; }
.studio-preview #buddy > .wrap { min-height: calc(100svh - var(--bar)); }
.studio-preview #qa-scope {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.studio-preview #question-panel { position: static; margin: 0; }
.talk-visitor { width: var(--talk-rail); max-width: 100%; }
.talk-options { display: grid; justify-items: start; gap: 3px; }
.talk-option {
  position: relative; display: block; max-width: 100%; min-height: 44px;
  padding: 8px 1px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: 420 clamp(16px, 1.44vw, 22px)/1.5 var(--text); letter-spacing: .014em;
  color: #d3dcd1;
}
.talk-option span {
  padding-bottom: 4px;
  background: linear-gradient(93deg, #7eaa91, #cbd9bd 78%, transparent) left bottom / 0 1px no-repeat;
  transition: background-size 180ms ease-out, color 180ms ease-out;
}
.talk-option:is(:hover,:focus-visible,.is-selected) span { background-size: 100% 1px; color: #f5f0dd; }
.talk-dialog:not([data-phase="idle"]) .talk-option:not(.is-selected):not(:hover):not(:focus-visible) { color: #a2b4a7; }
.talk-option:disabled { cursor: default; }
.talk-utterance {
  margin: 11px 0 0; padding-left: 12px; border-left: 1px solid #b3c5a8;
  font: 430 16px/1.55 var(--text); color: #e6eadf;
  overflow-wrap: anywhere; max-height: 6.5em; overflow-y: auto;
}
.talk-composer { margin-top: clamp(17px, 2.7svh, 31px); max-width: 390px; }
.talk-form {
  display: flex; align-items: center; border-bottom: 1px solid #586c5f;
  transition: border-color .16s ease;
}
.talk-form:focus-within { border-color: #ced9b9; }
.talk-input { flex: 1; min-width: 0; background: none; border: 0; padding: 11px 0; color: #eeeee2; font: 400 16px/1.5 var(--text); }
.talk-input:focus-visible { outline: none; }
.talk-input::placeholder { color: #a5b5a9; }
.talk-form button,.talk-dismiss {
  display: grid; place-items: center; width: 44px; height: 44px;
  flex: none; border: 0; padding: 0; background: transparent; color: #abbeb0; cursor: pointer;
}
.talk-form button:disabled { color: #627669; cursor: default; }
.talk-form button:enabled:hover, .talk-form button[aria-pressed="true"] { color: #f1eddb; }
.talk-mic .icon { width: 17px; height: 17px; }
.talk-status { margin-top: 7px; color: #bfd0bd; font-size: 13px; }
.talk-status button,.talk-related button { border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.talk-reply {
  position: absolute; z-index: 2;
  opacity: var(--studio-voice-opacity, 1);
  right: calc(100% - var(--studio-mouth-x) + var(--talk-tail));
  top: calc(var(--studio-mouth-y) - 4px);
  width: min(345px, 37vw); padding: 14px 35px 13px 18px;
  transform: translateY(-75%); color: #1c3024;
  background: var(--talk-paper); border-radius: 13px 13px 3px 13px;
  box-shadow: 0 7px 24px #01080540;
}
.talk-reply::before {
  content: ''; position: absolute; pointer-events: none;
  left: calc(100% - 1px); top: calc(75% - 12px);
  width: calc(var(--talk-tail) - 9px); height: 20px; background: var(--talk-paper);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 Q35 13 100 16 Q44 18 0 13Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.talk-reply-body { overflow-y: auto; max-height: clamp(105px, 21svh, 205px); scrollbar-width: thin; scrollbar-color: #9aad98 transparent; }
.talk-dismiss { position: absolute; top: 0; right: 0; width: 33px; height: 35px; color: #536551; }
.talk-dismiss .icon { width: 15px; height: 15px; }
.talk-dismiss:hover { color: #0d2718; }
.talk-answer { font: 480 clamp(15px, 1.13vw, 18px)/1.65 var(--text); margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.talk-sources,.talk-related { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 9px; font: 400 13px/1.6 var(--text); color: #405e49; }
.talk-sources a,.talk-related button { text-decoration-color: #8c9f8d; }
.talk-sources a .icon { width: .9em; height: .9em; margin-left: 3px; }
.talk-related button { padding: 0; text-align: left; }
.talk-reply:focus-visible { outline: none; }
.talk-reply :focus-visible { outline-color: #395d43; outline-offset: 1px; }
.studio-preview #questions .page-foot { margin-top: auto; padding-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .talk-reply { animation: talk-voice .18s ease-out both; }
  @keyframes talk-voice { from { opacity: 0; translate: 4px 0; } to { opacity: var(--studio-voice-opacity, 1); translate: none; } }
}
@media (max-width: 700px) {
  .studio-preview #questions { --talk-rail: 100%; }
  .studio-preview #questions > .wrap {
    min-height: calc(100svh - var(--bar)); padding-top: calc(var(--studio-actor-top) + var(--studio-actor-w) * 1.06 + 19px);
  }
  .studio-preview #qa-title { margin-bottom: 9px; font-size: clamp(34px, 7.6vw, 46px); }
  .talk-options { gap: 0; }
  .talk-composer { margin-top: 11px; }
  .talk-reply {
    top: calc(var(--studio-mouth-y) + 34px); right: calc(100% - var(--studio-mouth-x) - 86px);
    width: min(365px, var(--studio-mouth-x) + 86px - var(--gutter)); padding: 11px 34px 11px 14px;
    transform: none; border-radius: 11px 4px 11px 11px;
  }
  .talk-reply::before {
    top: -27px; left: auto; right: 86px;
    width: 25px; height: 28px; mask: none;
    clip-path: polygon(100% 0,78% 65%,72% 100%,0 100%,48% 66%);
  }
  .talk-reply-body { max-height: calc(var(--studio-actor-w) * .57 - 37px); min-height: 65px; }
  .talk-answer { font-size: 15px; line-height: 1.55; }
  .studio-preview #questions .page-foot { margin-top: max(24px,calc((100svh - 755px) * .45)); }
}
@media (min-width: 701px) and (max-height: 610px) {
  .studio-preview #questions > .wrap { padding-top: 35svh; min-height: max(475px, calc(100svh - var(--bar))); }
  .studio-preview #qa-title { font-size: 36px; margin-bottom: 9px; }
  .talk-composer { margin-top: 8px; }
}

/* 阅读区出现时左栏内容变高，浏览器默认会「滚动锚定」把页面往下推，导致问题和回答顶部被导航遮住；这里关掉 */
.studio-preview #questions { overflow-anchor: none; }
html:has(.talk-dialog[data-reading]) { overflow-anchor: none; }
/* ---- 长回答的阅读区（2026-11-26）----
   回答较长时，气泡只放第一句，完整内容显示在左栏：标题和预设问题收起，
   左栏上移，按「你的问题 → 回答 → 出处 → 输入框」从上往下读。直角、细线，不加底色和阴影。 */
.studio-preview #questions:has(.talk-dialog[data-reading]) > .wrap { padding-top: clamp(28px, 7svh, 72px); }
.studio-preview #questions:has(.talk-dialog[data-reading]) #qa-title,
.talk-dialog[data-reading] .talk-options { display: none; }
.talk-dialog[data-reading] .talk-utterance { margin-top: 0; color: #b9c8bc; }
.talk-sheet {
  margin-top: 16px; padding: 2px 6px 2px 16px; border-left: 1px solid #b3c5a8;
  /* 固定高度而不是最大高度：回答长短不同时，下面的输入框位置保持不动 */
  height: calc(100svh - var(--bar) - 360px); min-height: 120px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #6f8577 transparent;
}
.talk-sheet:focus-visible { outline: 1px solid #ced9b9; outline-offset: 4px; }
.talk-sheet-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font: 400 clamp(15px, 1.1vw, 17px)/1.8 var(--text); color: #e6eadf; }
.talk-sheet .talk-sources { margin-top: 14px; color: #a9bcae; }
.talk-sheet .talk-sources a { color: #d3dcd1; }
.talk-more { margin: 6px 0 0; font: 400 12px/1.5 var(--text); color: #536551; }
@media (prefers-reduced-motion: no-preference) {
  .talk-sheet { animation: talk-sheet-in .24s ease-out both; }
  @keyframes talk-sheet-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: none; } }
}
@media (max-width: 700px) {
  .studio-preview #questions:has(.talk-dialog[data-reading]) > .wrap { padding-top: calc(var(--studio-actor-top) + var(--studio-actor-w) * 1.06 + 19px); }
  .talk-sheet { height: max(140px, calc(100svh - var(--studio-actor-top) - var(--studio-actor-w) * 1.06 - 270px)); }
  .talk-more { display: none; }
}

/* 翻页滑动、这一页没停在正位时，嘴边的气泡先隐藏（人物图和气泡此时会错位），停稳后淡入 */
.talk-dialog[data-away] .talk-reply { visibility: hidden; }

/* ---- 主题入口（2026-11-26）----
   一排纯文字的小标签，点一个只显示这个主题的问题，再点一次回到随机推荐。
   沿用左栏的细线语言：不加底色、圆角和边框，选中时文字变亮、下方出现细线。 */
.talk-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(10px, 1.6svh, 16px); }
/* tag 形态：直角细线框，不加底色和阴影；选中时线和字都变亮 */
.talk-topics button {
  border: 1px solid #34483d; background: none; padding: 5px 12px; cursor: pointer; border-radius: 0;
  font: 400 13px/1.4 var(--text); letter-spacing: .04em; color: #a9bcae;
  transition: color .16s ease, border-color .16s ease;
}
.talk-topics button:hover, .talk-topics button:focus-visible { color: #e6eadf; border-color: #6f8577; outline: none; }
.talk-topics button[aria-pressed="true"] { color: #f1eddb; border-color: #cbd9bd; }
.talk-dialog[data-reading] .talk-topics { display: none; }
/* 加了主题入口、预设问题从 2 句变 4 句后左栏变高，标题整体上移一些，保证输入框和翻页提示仍在一屏内 */
@media (min-width: 701px) { .studio-preview #questions > .wrap { padding-top: clamp(140px, 30svh, 360px); } }
.studio-preview #questions .talk-option { min-height: 40px; padding: 6px 1px; }
/* 标题换成「我们聊点儿什么？」后比「请讲。」长，缩小字号并保持一行 */
.studio-preview #qa-title { white-space: nowrap; font-size: clamp(30px, 3.3vw, 50px); }
@media (max-width: 700px) { .talk-topics { gap: 6px; } .talk-topics button { padding: 4px 8px; font-size: 12.5px; letter-spacing: .02em; } }

/* 阅读回答时回到主题和问题列表的入口：放在问题上方，一眼能看到 */
.talk-back {
  display: inline-flex; gap: 8px; align-items: center; margin: 0 0 16px; padding: 8px 16px;
  border: 1px solid #8fa395; border-radius: 0; background: none; cursor: pointer;
  font: 500 15px/1.4 var(--text); letter-spacing: .04em; color: #e6eadf;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.talk-back:hover, .talk-back:focus-visible { color: #f1eddb; border-color: #e6e5d5; background: #ffffff0d; outline: none; }
