/* 首页前五张功能卡：每张只取一处界面切片，构图与色调各不相同。
   切片以 em 绘制，随右侧画幅（cqw）整体缩放；公共零件（.ui-*）在 home.css。 */

.home-page .fx-card {
  --card-ink: #14171c;
  --card-muted: #4a515c;
  --card-accent: var(--blue);
  --cover: 0;
  --fade: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.375fr) minmax(0, 0.625fr);
  top: max(5.5rem, calc(50vh - 18rem));
  margin-bottom: 14vh;
  border: 1px solid rgba(20, 26, 38, 0.08);
  background: var(--card-bg);
  color: var(--card-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px -20px rgba(20, 34, 66, 0.16),
    0 44px 80px -48px rgba(20, 34, 66, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* 被下一张盖住时由脚本写入 --cover / --fade：略微收小、渐隐，像一叠卡片。 */
  transform: scale(calc(1 - var(--cover) * 0.06));
  opacity: var(--fade);
  transition: none;
}

.home-page .fx-card::before {
  display: none;
}

/* ---------- 文案 ---------- */

.fx-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 3rem 0 3rem clamp(2rem, 5vw, 3.5rem);
}

.fx-eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--card-accent);
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
}

.fx-title {
  color: var(--card-ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* 按语义断行：放得下时并排，放不下时整句换行。 */
.fx-title > span,
.fx-text > span {
  display: inline-block;
}

.fx-title > span {
  white-space: nowrap;
}

/* 全角逗号的右半是空白：并排时收紧，换行时不受影响。 */
.fx-comma {
  margin-right: -0.38em;
}

.fx-text {
  margin-top: 1.25rem;
  color: var(--card-muted);
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.9;
}

.fx-copy > * {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.fx-copy > :nth-child(2) { transition-delay: 0.08s; }
.fx-copy > :nth-child(3) { transition-delay: 0.16s; }
.fx-copy > :nth-child(4) { transition-delay: 0.26s; }

.js .fx-card:not(.is-in) .fx-copy > * {
  opacity: 0;
  transform: translateY(1rem);
}

/* ---------- 画面：40em × 35em 的画布，按可用宽度等比缩放 ---------- */

.fx-stage {
  position: relative;
  align-self: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 8 / 7;
  container-type: inline-size;
}

.fx-scene {
  position: absolute;
  inset: 0;
  font-size: min(1rem, 2.5cqw);
  font-family: var(--ui);
}

/* 每块切片：入场上浮一次；translate 留给指针视差，rotate 留给摆放角度。 */
.fx-scene > * {
  position: absolute;
  translate: calc(var(--px, 0) * var(--depth, 0) * 1px) calc(var(--py, 0) * var(--depth, 0) * 1px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), translate 0.6s var(--ease-out), rotate 0.7s var(--ease-out);
}

.fx-scene > :nth-child(2) { transition-delay: 0.1s, 0.1s, 0s, 0s; }
.fx-scene > :nth-child(3) { transition-delay: 0.18s, 0.18s, 0s, 0s; }
.fx-scene > :nth-child(4) { transition-delay: 0.26s, 0.26s, 0s, 0s; }
.fx-scene > :nth-child(5) { transition-delay: 0.34s, 0.34s, 0s, 0s; }
.fx-scene > :nth-child(n + 6) { transition-delay: 0.42s, 0.42s, 0s, 0s; }

.js .fx-card:not(.is-in) .fx-scene > * {
  opacity: 0;
  transform: translateY(1.75em);
}

/* ==========================================================================
   01 TALK · 雾蓝：一句话 → 执行 → 一个做好的网页
   ========================================================================== */

.home-page .fx-card--talk {
  --card-bg:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(150deg, #f3f7fc 0%, #e6eef8 100%);
}

/* 生成的作品集网页：从右侧探入，被卡片边缘裁去一角。 */
.talk-page {
  top: 3.25em;
  left: 21em;
  width: 22em;
  height: 35em;
  overflow: hidden;
  border: 1px solid rgba(20, 26, 38, 0.1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 30, 60, 0.05), 0 30px 60px -30px rgba(30, 60, 120, 0.35);
}

.talk-page__bar {
  display: flex;
  align-items: center;
  gap: 0.35em;
  height: 2.1em;
  padding: 0 0.85em;
  border-bottom: 1px solid rgba(20, 26, 38, 0.07);
}

.talk-page__bar i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #dfe3e8;
}

.talk-page__bar span {
  margin-left: 0.9em;
  color: #9aa1ab;
  font: 400 0.625em/1 var(--mono);
  letter-spacing: 0.04em;
}

.talk-page__cover {
  position: relative;
  height: 14em;
  margin: 0.85em;
  overflow: hidden;
  background: linear-gradient(180deg, #b6c9dc 0%, #dbe2e8 44%, #f3e6d3 76%, #f7eee2 100%);
}

.talk-page__sun {
  position: absolute;
  top: 16%;
  left: 60%;
  width: 4.5em;
  height: 4.5em;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0 22%, rgba(255, 248, 232, 0.55) 40%, rgba(255, 248, 232, 0) 70%);
}

.talk-page__ridge {
  position: absolute;
  inset: 40% -4% 0;
  background: #aabbc8;
  clip-path: polygon(0 58%, 16% 30%, 30% 54%, 49% 10%, 66% 50%, 81% 26%, 100% 60%, 100% 100%, 0 100%);
}

.talk-page__ridge:nth-of-type(3) {
  inset: 55% -4% 0;
  background: linear-gradient(180deg, #7f97a5, #6b8492);
  clip-path: polygon(0 44%, 14% 60%, 31% 18%, 47% 58%, 63% 28%, 79% 60%, 100% 30%, 100% 100%, 0 100%);
}

.talk-page__ridge:nth-of-type(4) {
  inset: 72% -4% 0;
  background: linear-gradient(180deg, #4a6670, #3a525b);
  clip-path: polygon(0 26%, 21% 56%, 41% 16%, 58% 58%, 75% 30%, 100% 56%, 100% 100%, 0 100%);
}

/* 山腰的一层薄雾 */
.talk-page__cover::after {
  content: '';
  position: absolute;
  inset: 46% 0 22%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5) 50%, transparent);
}

.talk-page__caption {
  position: absolute;
  bottom: 0.9em;
  left: 1.1em;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 12px rgba(30, 50, 60, 0.45);
}

.talk-page__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.9em;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
}

.talk-page__caption span {
  display: block;
  margin-top: 0.5em;
  font-size: 0.625em;
  letter-spacing: 0.2em;
  opacity: 0.9;
}

.talk-page__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5em;
  margin: 0 0.85em;
}

.talk-page__grid i {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 4;
  padding: 0.5em 0.6em;
  background: linear-gradient(165deg, #d3e3c6, #8db489);
  color: #fff;
  font: 500 0.75em/1 var(--serif);
}

.talk-page__grid i:nth-child(2) { background: linear-gradient(165deg, #c3e2ec, #5d9dbd); }
.talk-page__grid i:nth-child(3) { background: linear-gradient(165deg, #f1dab7, #c88c4e); }
.talk-page__grid i:nth-child(4) { background: linear-gradient(165deg, #e6eaf0, #97a6b9); }

.talk-page__lines {
  margin: 1.2em 0.85em 0;
}

.talk-page__lines i {
  display: block;
  width: 72%;
  height: 0.45em;
  margin-bottom: 0.6em;
  background: #eef0f3;
}

.talk-page__lines i:nth-child(2) { width: 94%; }
.talk-page__lines i:nth-child(3) { width: 46%; }

/* 对话：气泡 → 执行记录 → 一句答复 → 输入框 */
.talk-flow {
  top: 5.75em;
  bottom: 5.25em;
  left: 2.25em;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 17.5em;
}

.talk-bubble {
  align-self: flex-end;
}

.talk-task {
  position: relative;
  margin-top: 1.5em;
}

.ui-task {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 2.75em;
  padding: 0.4em 0.95em;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #6b7079;
  font-size: 0.75em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ui-task b {
  color: #23262b;
  font-weight: 600;
}

.ui-task__diff {
  display: inline-flex;
  gap: 0.5em;
}

.ui-task__diff em { color: #3f7a55; }
.ui-task__diff s { color: #a8605b; }

/* 运行中的任务卡：点阵思考球在转。 */
.ui-task--live {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15em 0.95em;
  width: 21em;
  min-height: 4.9em;
  padding: 0.9em 1.15em;
  background: linear-gradient(115deg, rgba(226, 234, 244, 0.7), rgba(255, 255, 255, 0) 75%), #fff;
  box-shadow: 0 14px 30px -16px rgba(30, 60, 120, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5em);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), visibility 0s 0.35s;
}

.ui-orb {
  grid-row: 1 / 3;
  align-self: center;
  width: 1.9em;
  height: 1.9em;
}

.ui-task__target {
  overflow: hidden;
  font: 400 0.95em/1.4 var(--mono);
  text-overflow: ellipsis;
}

.ui-task--done,
.talk-answer,
.talk-bubble {
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.talk-answer {
  margin-top: 0.95em;
  color: #2f333a;
  font-size: 0.875em;
  line-height: 1.75;
  transition-delay: 0.15s;
}

.talk-answer strong {
  font-weight: 600;
}

.talk-composer {
  width: 21.5em;
  margin-top: auto;
  transition: border-color 0.4s ease;
}

.talk-typed {
  white-space: nowrap;
}

/* 演出的五个阶段：0 待输入 · 1 打字 · 2 发出 · 3 运行 · 完成后移除 data-step。 */
.talk[data-step] .talk-page {
  opacity: 0;
  transform: translateX(2.5em);
}

.talk[data-step] .ui-task--done,
.talk[data-step] .talk-answer,
.talk:is([data-step="0"], [data-step="1"]) .talk-bubble {
  opacity: 0;
  transform: translateY(0.6em);
}

.talk[data-step="3"] .ui-task--live {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.talk[data-step="3"] .talk-composer {
  border-color: rgba(52, 106, 215, 0.55);
}

.talk:not([data-step="0"], [data-step="1"]) .talk-composer .ui-caret,
.talk:not([data-step="1"]) .talk-typed,
.talk[data-step="1"] .ui-placeholder {
  display: none;
}

/* ==========================================================================
   02 OPEN · 暖白：划掉的命令之上，只有一个输入框
   ========================================================================== */

.home-page .fx-card--open {
  --card-accent: #9a8468;
  --card-bg: linear-gradient(180deg, #fdfcfa 0%, #f6f2eb 100%);
  grid-template-columns: minmax(0, 1fr);
}

.fx-card--open .fx-copy {
  padding: 3.5rem 2rem 0;
  text-align: center;
}

.fx-card--open .fx-text {
  margin-inline: auto;
}

.fx-card--open .fx-stage {
  margin: 2.25rem 0 2.5rem;
  aspect-ratio: 64 / 15;
}

/* 画布 64em × 15em */
.fx-card--open .fx-scene {
  font-size: min(1rem, 1.5625cqw);
}

.open-ghost {
  inset: 0 2em auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55em 3.25em;
  color: rgba(74, 64, 50, 0.34);
  font: 400 0.875em/2 var(--mono);
  white-space: nowrap;
  -webkit-mask-image: radial-gradient(ellipse 50% 78% at 50% 46%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 78% at 50% 46%, #000 55%, transparent 100%);
}

.open-ghost b {
  margin-right: 0.3em;
  font-weight: 400;
  opacity: 0.6;
}

/* 逐行划去 */
.open-ghost span {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 54% / 100% 1px;
  transition: background-size 0.55s var(--ease-out), color 0.8s ease 0.9s;
  transition-delay: calc(var(--i) * 85ms), calc(1.1s + var(--i) * 30ms);
}

.js .fx-card:not(.is-in) .open-ghost span {
  background-size: 0 1px;
  color: rgba(74, 64, 50, 0.72);
}

.open-front {
  top: 5.2em;
  left: 50%;
  width: 30em;
  margin-left: -15em;
}

.open-composer {
  box-shadow:
    0 1px 2px rgba(60, 46, 20, 0.05),
    0 18px 36px -16px rgba(60, 46, 20, 0.22),
    0 50px 90px -40px rgba(60, 46, 20, 0.3);
}

.open-composer .ui-composer__text {
  min-height: 3.6em;
}

.js .fx-card--open:not(.is-in) .fx-scene > .open-front {
  transform: translateY(1.5em) scale(0.97);
}

.fx-card--open.is-in .fx-scene > .open-front {
  transition-delay: 1.25s, 1.25s, 0s, 0s;
}

/* ==========================================================================
   03 MODELS · 淡紫与一丝光谱：只画模型菜单
   ========================================================================== */

.home-page .fx-card--models {
  --card-accent: #6a5bd0;
  --card-bg:
    radial-gradient(ellipse 45% 50% at 8% 12%, rgba(118, 152, 255, 0.24), transparent 70%),
    radial-gradient(ellipse 40% 45% at 58% 6%, rgba(196, 148, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 45% 50% at 50% 100%, rgba(255, 176, 150, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 45% at 0% 92%, rgba(120, 214, 206, 0.2), transparent 70%),
    linear-gradient(160deg, #f8f7fd, #f1f0f9);
  grid-template-columns: minmax(0, 0.625fr) minmax(0, 0.375fr);
}

.fx-card--models .fx-copy {
  padding: 3rem clamp(2rem, 5vw, 3.5rem) 3rem 0;
}

.models-menu {
  top: 5.25em;
  left: 7.5em;
  width: 19.5em;
  font-size: 0.875em;
}

.models-menu__search {
  display: flex;
  align-items: center;
  gap: 0.65em;
  height: 2.9em;
  padding: 0 1em;
  border-bottom: 1px solid var(--line);
  color: #9299a3;
}

.models-menu__search span {
  flex: 1;
}

.models-menu__filters {
  display: flex;
  gap: 0.4em;
  padding: 0.65em 0.8em 0.5em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 98%);
}

.models-menu__filters span {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.35em;
  height: 2.05em;
  padding: 0 0.65em;
  border: 1px solid var(--line);
  color: #5b616b;
  font-size: 0.8em;
}

.models-menu__filters .is-on {
  border-color: rgba(52, 106, 215, 0.45);
  background: rgba(52, 106, 215, 0.07);
  color: var(--blue);
}

.models-menu__list {
  padding: 0.25em 0 0.55em;
}

.models-menu__list li {
  display: flex;
  align-items: center;
  gap: 0.75em;
  height: 2.6em;
  padding: 0 1em;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.models-menu__list .ui-icon {
  width: 1.15em;
  height: 1.15em;
}

.models-menu__list b {
  font-weight: 500;
}

.models-menu__list small {
  margin-left: auto;
  color: #a0a6af;
  font-size: 0.8em;
}

.models-menu .ui-tick,
.models-effort .ui-tick {
  color: var(--blue);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.models-menu__list > .is-on {
  background: #eef3fb;
  box-shadow: inset 2px 0 var(--blue);
}

.models-menu__list > .is-on .ui-tick,
.models-effort > .is-on .ui-tick {
  opacity: 1;
}

.models-effort {
  top: 24.5em;
  left: 25em;
  width: 11.5em;
  padding-bottom: 0.4em;
  font-size: 0.875em;
}

.models-effort strong {
  display: block;
  padding: 0.85em 1em 0.45em;
  color: #9299a3;
  font-size: 0.8em;
  font-weight: 500;
}

.models-effort div {
  display: flex;
  align-items: center;
  gap: 0.8em;
  height: 2.45em;
  padding: 0 1em;
  color: #5b616b;
}

.models-effort div span:nth-child(2) {
  flex: 1;
}

.models-effort > .is-on {
  background: #eef3fb;
  color: #23262b;
}

.models-effort > .is-on .ui-meter {
  color: var(--blue);
}

/* 散落的服务商图标：近处清晰，远处略虚。 */
.models-tile {
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(20, 26, 38, 0.08);
  background: #fff;
  box-shadow: 0 16px 32px -16px rgba(40, 40, 110, 0.32);
}

.models-tile .ui-icon {
  width: 50%;
  height: 50%;
}

.models-tile--anthropic { --size: 4.2em; top: 2.75em; left: 1.75em; rotate: -8deg; filter: blur(1.2px); opacity: 0.88; }
.models-tile--google { --size: 4.8em; top: 3em; left: 30.25em; rotate: 6deg; }
.models-tile--deepseek { --size: 3.6em; top: 12em; left: 33.75em; rotate: -5deg; }
.models-tile--openai { --size: 5.2em; top: 21.5em; left: 1.5em; rotate: 5deg; }
.models-tile--github { --size: 3.8em; top: 28.75em; left: 11em; rotate: -6deg; filter: blur(1px); opacity: 0.9; }
.models-tile--radius { --size: 4.4em; top: 29.25em; left: 30.5em; rotate: 9deg; filter: blur(1.8px); opacity: 0.75; }

/* ==========================================================================
   04 NOTES · 暖杏纸色：一页手记与一张清单叠在桌面上
   ========================================================================== */

.home-page .fx-card--notes {
  --card-accent: #a97632;
  --card-bg:
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(255, 255, 255, 0.55), transparent 65%),
    linear-gradient(150deg, #fbf6ec 0%, #f3e8d6 100%);
}

.notes-paper {
  top: 3.25em;
  left: 3.5em;
  width: 21.5em;
  height: 46em;
  padding: 2.5em 2.3em;
  border: 1px solid rgba(120, 96, 60, 0.14);
  background: #fffdf9;
  box-shadow: 0 1px 2px rgba(90, 70, 40, 0.06), 0 28px 56px -24px rgba(90, 70, 40, 0.34);
  color: #54514a;
  font-size: 0.8125em;
  line-height: 1.9;
  rotate: -3deg;
}

.notes-paper__meta {
  display: block;
  color: #aaa091;
  font-size: 0.8em;
  letter-spacing: 0.08em;
}

.notes-paper__title {
  display: block;
  margin: 0.35em 0 0.75em;
  color: #1c1b19;
  font-family: var(--serif);
  font-size: 1.95em;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.notes-paper p + p {
  margin-top: 0.75em;
}

.notes-paper mark {
  background: linear-gradient(transparent 58%, rgba(255, 208, 92, 0.55) 58%);
  color: inherit;
}

.notes-paper__heading {
  display: block;
  margin-top: 1.4em;
  color: #1c1b19;
  font-weight: 600;
}

.notes-paper blockquote {
  margin-top: 1.3em;
  padding-left: 0.95em;
  border-left: 2px solid #e6dcc8;
  color: #958b7a;
}

.notes-tasks {
  top: 14.25em;
  left: 19em;
  width: 19.5em;
  padding: 1.35em 1.45em 0.8em;
  border: 1px solid rgba(20, 26, 38, 0.1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 46, 20, 0.05), 0 30px 60px -26px rgba(60, 46, 20, 0.42);
  color: #2a2d33;
  font-size: 0.8125em;
  rotate: 2.5deg;
}

.notes-tasks__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.notes-tasks__head strong {
  font-size: 1.08em;
  font-weight: 600;
}

.notes-tasks__count {
  display: inline-flex;
  color: #8c929b;
  font: 400 0.85em/1.4 var(--mono);
  white-space: pre;
}

/* 两个数字叠放，勾选后交替。 */
.notes-tasks__count b {
  display: inline-grid;
  font-weight: 400;
  transition: opacity 0.4s ease 0.3s;
}

.notes-tasks__count b:first-child {
  width: 0;
  opacity: 0;
}

.notes-tasks__bar {
  height: 3px;
  margin: 0.85em 0 0.5em;
  background: #eef0f2;
}

.notes-tasks__bar i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--card-accent);
  transition: width 0.9s var(--ease-out) 0.25s;
}

.notes-tasks li {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.68em 0;
}

.notes-tasks li + li {
  border-top: 1px solid rgba(20, 26, 38, 0.06);
}

.notes-tasks li span {
  flex: 1;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 54% / 0 1px;
  transition: color 0.4s ease 0.2s, background-size 0.5s var(--ease-out) 0.2s;
}

.notes-tasks li small {
  color: #9aa0a9;
  font-size: 0.85em;
}

.ui-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid #b4bac3;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ui-box .ui-tick {
  width: 0.95em;
  height: 0.95em;
  color: #fff;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.4s ease 0.15s;
}

.notes-tasks .is-done .ui-box {
  border-color: #2b2f36;
  background: #2b2f36;
}

.notes-tasks .is-done .ui-tick {
  stroke-dashoffset: 0;
}

.notes-tasks .is-done span {
  width: fit-content;
  flex: 0 1 auto;
  margin-right: auto;
  background-size: 100% 1px;
  color: #a3a8b0;
}

/* 入场前：第二项尚未勾选，进度停在 1 / 4。 */
.notes[data-step] .is-fresh .ui-box {
  border-color: #b4bac3;
  background: transparent;
}

.notes[data-step] .is-fresh .ui-tick {
  stroke-dashoffset: 16;
}

.notes[data-step] .is-fresh span {
  background-size: 0 1px;
  color: inherit;
}

.notes[data-step] .notes-tasks__bar i {
  width: 25%;
}

.notes[data-step] .notes-tasks__count b:first-child {
  width: auto;
  opacity: 1;
}

.notes[data-step] .notes-tasks__count b:nth-child(2) {
  width: 0;
  opacity: 0;
}

@media (hover: hover) {
  .fx-card--notes:hover .notes-paper { rotate: -5deg; transform: translate(-0.9em, -0.2em); }
  .fx-card--notes:hover .notes-tasks { rotate: 4deg; transform: translate(0.9em, 0.4em); }
}

/* ==========================================================================
   05 FREE · 全页唯一的深墨蓝：一个被裁切的 ¥0
   ========================================================================== */

.home-page .fx-card--free {
  --card-ink: #f3f6fc;
  --card-muted: rgba(214, 223, 240, 0.72);
  --card-accent: #8fb0ff;
  --card-bg:
    radial-gradient(ellipse 62% 72% at 84% 110%, rgba(52, 106, 215, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(96, 140, 235, 0.16), transparent 70%),
    linear-gradient(160deg, #0f1728 0%, #090e19 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 44px 80px -44px rgba(8, 16, 40, 0.75);
}

/* 极淡的网格，只在右下亮起。 */
.home-page .fx-card--free::before {
  display: block;
  inset: 0;
  height: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 3rem 3rem,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 3rem 3rem;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 85% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 85% 100%, #000, transparent 75%);
}

.free-zero {
  right: 0.07em;
  bottom: -0.17em;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(175deg, #fff 18%, rgba(160, 190, 255, 0.72) 52%, rgba(120, 160, 255, 0.08) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 200 39em/0.86 var(--serif);
  letter-spacing: -0.03em;
}

.free-zero span {
  margin: 0.3em 0.06em 0 0;
  font-size: 0.3em;
  line-height: 1;
  letter-spacing: 0;
}

.fx-scene.free > .free-zero {
  transition-duration: 1.5s, 1.5s, 0.6s, 0.7s;
}

.js .fx-card:not(.is-in) .fx-scene > .free-zero {
  transform: translateY(4em);
}

/* 一张等宽字的小票 */
.free-receipt {
  width: min(100%, 17rem);
  margin-top: 2.25rem;
  color: rgba(214, 223, 240, 0.6);
  font: 400 0.8125rem/1 var(--mono);
}

.free-receipt div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.72rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.free-receipt div:last-child {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.free-receipt div::after {
  content: '';
  flex: 1;
  order: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  transform: translateY(-0.2em);
}

.free-receipt dd {
  order: 2;
  color: #fff;
}

/* ==========================================================================
   窄屏：上下排布，不再吸顶；画布改为 25em 宽，切片保持可读的字号
   ========================================================================== */

@media (max-width: 767px) {
  .home-page .fx-card,
  .home-page .build-card {
    position: relative;
    top: auto;
    margin-bottom: 1.25rem;
  }

  .home-page .fx-card,
  .home-page .fx-card--models {
    grid-template-columns: minmax(0, 1fr);
  }

  .fx-copy,
  .fx-card--models .fx-copy {
    padding: 2.25rem 1.5rem 0;
  }

  .fx-title {
    font-size: clamp(1.75rem, 7.6vw, 2.25rem);
  }

  .fx-text {
    margin-top: 0.875rem;
    font-size: 1rem;
    line-height: 1.8;
  }

  /* 画布固定 25em 宽：字号随卡片宽度变化，各卡只需给出以 em 计的高度。 */
  .fx-stage {
    aspect-ratio: auto;
    height: 27em;
    overflow: hidden;
    font-size: min(calc((100vw - 2rem - 2px) / 25), 20px);
  }

  .fx-scene,
  .fx-card--open .fx-scene {
    left: 50%;
    width: 25em;
    margin-left: -12.5em;
    font-size: 1em;
  }

  .talk-page {
    top: 1.75em;
    left: 13.75em;
    width: 14.5em;
    height: 30em;
  }

  .talk-page__cover { height: 10em; }

  .talk-flow {
    top: 3.5em;
    bottom: 1.75em;
    left: 1.25em;
    width: 11.75em;
  }

  .talk-composer { width: 20em; }
  .talk-composer .ui-chip--effort { display: none; }

  .fx-card--open .fx-copy {
    padding: 2.25rem 1.5rem 0;
  }

  .fx-card--open .fx-stage {
    height: 16em;
    margin: 0.5rem 0 0;
  }

  .open-ghost {
    inset: 1em -6em auto;
    gap: 0.2em 2.5em;
    max-height: 13.5em;
    overflow: hidden;
  }

  .open-front {
    top: 6em;
    width: 22em;
    margin-left: -11em;
  }

  .open-composer .ui-chip--effort { display: none; }

  .fx-card--models .fx-stage {
    height: 25em;
  }

  .fx-card--models .fx-copy {
    padding: 0 1.5rem 2.25rem;
  }

  .models-menu { top: 2em; left: 1.5em; width: 18.5em; }
  .models-effort { top: 14.75em; left: 13.5em; width: 11em; }
  .models-tile--anthropic,
  .models-tile--openai,
  .models-tile--github,
  .models-tile--radius { display: none; }
  .models-tile--google { top: 1em; left: 19.5em; }
  .models-tile--deepseek { top: 7.5em; left: 21em; }

  .fx-card--notes .fx-stage {
    height: 26em;
  }

  .notes-paper { top: 2em; left: 1.25em; width: 17.5em; height: 30em; padding: 2em 1.8em; }
  .notes-tasks { top: 12em; left: 8em; width: 21.5em; }

  .fx-card--free .fx-stage {
    height: 17em;
  }

  .free-zero {
    font-size: 23em;
  }

  .free-receipt {
    margin-top: 1.75rem;
  }
}

/* 矮窗口放不下一整张吸顶卡时，改为随页面滚动。 */
@media (max-height: 720px) {
  .home-page .fx-card,
  .home-page .build-card {
    position: relative;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-copy > *,
  .fx-scene > *,
  .fx-scene *,
  .fx-scene *::after {
    transition: none !important;
  }
}
