/* 首屏输入框可以真的输入：输入框盖在自动打字的示例文字上面；
   点进去或输入了内容后，示例文字和假光标藏起来，显示真正的输入。 */
.hero .prompt-line { position: relative; }
.hero .prompt-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: inherit;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  resize: none;
  overflow: hidden;
  cursor: text;
}
.hero .prompt-input::placeholder { color: transparent; }
.hero .prompt-line.is-editing .prompt-input { position: relative; color: #10182a; caret-color: transparent; }
.hero .prompt-line.is-editing .prompt-input::placeholder { color: rgb(16 24 42 / 38%); }
.hero .prompt-line.is-editing > :not(.prompt-input) { display: none; }
/* 输入时文字位置和示例文字完全一致，不上下跳 */
.hero .prompt-line.is-editing .prompt-input { display: block; padding: 0; }
/* 最多 4 行（高度由 prompt-input.js 控制），超出的往上藏起来、可以滚动查看；不显示滚动条 */
.hero .prompt-line.is-editing .prompt-input { overflow-y: auto; scrollbar-width: none; }
.hero .prompt-line.is-editing .prompt-input::-webkit-scrollbar { display: none; }
/* 真正输入时输入框外观保持不变：不加蓝色描边和外发光 */
.hero .prompt-entry:focus-within { outline: none; }

/* 语言菜单：不显示国旗；15 种语言，列表太长时可以滚动；还没有页面的语言显示「即将推出」 */
.home-figma-hero .language-flag { display: none; }
.home-figma-hero .language-options { min-width: 220px; }
.home-figma-hero .language-options .language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgb(0 0 0 / 38%);
  cursor: default;
  white-space: nowrap;
}
.home-figma-hero .language-soon { color: rgb(0 0 0 / 30%); font-size: 11px; }
.home-figma-hero .language-options a { white-space: nowrap; }

/* 自动打字的示例文字用和占位提示一样的浅灰色：看起来是「可以点这里输入」的引导，而不是已经填好的内容 */
.hero .prompt-line:not(.is-editing) { color: rgb(16 24 42 / 38%); }

/* 真正输入时的光标：系统光标只有 1px 太细，换成和示例光标同样粗细、同样颜色的光标 */
.hero .prompt-line.is-editing > .prompt-input-caret { display: block; }
.hero .prompt-input-caret {
  position: absolute;
  z-index: 2;
  display: none;
  width: max(2.5px, calc(3 * var(--u)));
  height: calc(20 * var(--u));
  border-radius: 99px;
  background: #0388ff;
  pointer-events: none;
}
.hero .prompt-input-caret[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .hero .prompt-input-caret.is-blinking { animation: prompt-caret-blink 1.1s step-end infinite; }
}
@media (max-width: 700px) {
  .hero .prompt-input-caret { width: 2.5px; height: 1em; }
}

/* 点进输入框、还没输入时：提示文字和示例文字左边对齐（不再缩进），光标挂在文字左边的留白里（见 prompt-input.js） */

/* 官网 → Studio 交接用的表单：只是包一层，不参与布局 */
.hero .prompt-form { display: contents; }
/* 提交按钮从 <a> 换成了 <button>：只去掉按钮的默认外观（:where 让它不会盖过 hero-layout.css 里原有的按钮样式） */
:where(.hero button.prompt-submit) {
  margin: 0;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* 手机：首屏输入框的字 16px——iPhone 上点进小于 16px 的输入框，Safari 会把整个页面自动放大；示例文字跟着一起 16px，前后一致 */
@media (max-width: 700px) {
  /* 文字区固定两行高：没点之前（示例一行）和点进去（提示文字两行）一样高，卡片不变、标题区域不跳 */
  .home-figma-hero .hero .prompt-line { font-size: 16px; min-height: calc(3em + 4px); }
}
