/* 第一讲重构 · 沿用 cx 的白色产品窗、原有课程纸色与 Codex 场景配色。 */
.fce { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vh, 38px); }
.fce .head { max-width: 940px; }
.fce-compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 46px); align-items: start; }
.fce-label { font-size: 1.05rem; font-weight: 600; margin-bottom: 12px; }
.fce-route .note { margin-top: 14px; max-width: 560px; }
.fce-window, .fce-browser { box-shadow: 0 0 0 1px var(--line), 0 16px 36px -26px rgba(0, 0, 0, .35); }
.fce-tree { padding: 22px clamp(18px, 2.6vw, 36px); font-size: 1rem; color: #17171a; }
.fce-tree > p { padding: 10px 0 16px; border-bottom: 1px solid #e6e6ea; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.fce-tree small { font-size: .82rem; color: #74747c; }
.fce-tree > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.fce-tree > div p { display: grid; gap: 8px; }
.fce-tree span { font-size: .9rem; color: #5d5d63; }
.fce-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.fce-foot p { max-width: 820px; color: var(--text-2); font-size: .88rem; line-height: 1.7; }
.fce-foot b { display: block; color: var(--text); margin-bottom: 4px; }
.fce-foot .btn { flex-shrink: 0; }
.fct { display: grid; grid-template-columns: minmax(285px, .62fr) minmax(0, 1.38fr); gap: clamp(24px, 3vw, 48px); align-items: center; }
.fct-copy { align-self: start; }
.fct .head .t { font-size: clamp(2rem, 2.7vw, 3.1rem); }
.fct-detail { margin-top: 19px; min-height: 11em; padding: 17px 19px; border-radius: 16px; background: rgba(12, 14, 50, .22); }
.fct-count { font: 600 .78rem/1.3 var(--mono); color: var(--mark); margin-bottom: 8px; }
.fct-detail .sub { font-size: 1.15rem; }
.fct-detail > p:not(.fct-count) { font-size: .92rem; line-height: 1.7; margin-top: 7px; color: rgba(246, 246, 252, .94); }
.fct-detail small { display: block; font-size: .77rem; line-height: 1.6; margin-top: 8px; color: rgba(246, 246, 252, .75); }
.fct-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; margin-top: 13px; }
.fct-stations button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 2px; color: rgba(246, 246, 252, .85); font-size: .85rem; }
.fct-stations i { display: grid; place-items: center; font: 600 .74rem/1 var(--mono); font-style: normal; width: 23px; height: 23px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); flex: none; }
.fct-stations button[aria-pressed="true"] { color: #fff; font-weight: 600; }
.fct-stations button[aria-pressed="true"] i { background: var(--mark); color: var(--ink); box-shadow: none; }
.fct-step { display: flex; gap: 8px; margin-top: 15px; }
.fct-step .btn { font-size: .84rem; }
.fct-simulation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; font-size: .75rem; color: rgba(246, 246, 252, .85); }
.fct-simulation b { background: var(--mark); color: var(--ink); padding: 4px 9px; border-radius: 6px; }
.fct-filetray, .fct-projecttray { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 11px; font-size: .69rem; }
.fct-filetray > span, .fct-projecttray > span { color: rgba(246, 246, 252, .8); }
.fct-filetray button, .fct-projecttray button { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .94); color: #45454b; border-radius: 6px; padding: 5px 7px; cursor: grab; }
.fct-filetray .ic, .fct-projecttray .ic { width: 12px; height: 12px; }
.fct-filetray[hidden], .fct-projecttray[hidden] { display: none; }
.fct-app { height: clamp(490px, 65vh, 640px); display: flex; flex-direction: column; }
.fct-app .cx-body { flex: 1; min-height: 0; }
.fct-app .cx-side { width: 180px; }
.fct-side .cx-brandrow { justify-content: space-between; }
.fct-side .cx-brandrow span { color: #8e8e94; font-size: 11px; font-weight: 400; }
.fct-sidebutton { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 8px; width: 100%; text-align: left; border-radius: 8px; }
.fct-sidebutton span { overflow-wrap: anywhere; min-width: 0; }
.fct-sidebutton:hover { background: #ececef; }
.fct-project { border-radius: 10px; }
.fct-recent { font-size: 11.5px; white-space: normal !important; }
.fct-sidebottom { margin-top: auto; padding-top: 20px; }
.fct-sidebottom > p { font-size: 10.5px; line-height: 1.5; color: #8e8e94; white-space: normal; }
.fct-main { padding: 12px 15px 17px; gap: 12px; }
.fct-toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: center; min-width: 0; color: #8e8e94; font-size: 11px; }
.fct-toolbar > span { min-width: 0; overflow-wrap: anywhere; }
.fct-toolbar .cx-chip { flex-shrink: 0; }
.fct-thread { flex: 1; min-height: 70px; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 14px 8px; }
.fct-goal-slot:empty { display: none; }
.fct-widget { display: block; }
.fct-widget .fct-app { height: clamp(455px, 58vh, 560px); }
.fct-empty { text-align: center; color: #8e8e94; line-height: 1.7; padding: 12px; }
.fct-feedback { font-size: 11.5px; line-height: 1.6; color: #455b4a; margin-top: auto; min-height: 1.6em; }
.fct-feedback:empty { min-height: 0; }
.fct-evidence { background: #f7f7f8; padding: 17px; border-radius: 10px; }
.fct-evidence > span { display: block; font-size: 10.5px; color: #8e8e94; }
.fct-evidence h3 { font-size: 15px; margin: 8px 0; }
.fct-evidence p { font-size: 12px; line-height: 1.6; color: #6b6b72; }
.fct-evidence button { display: flex; align-items: center; gap: 7px; font-size: 11.5px; padding-top: 10px; }
.fct-composer .cx-ctop { font-size: 11.5px; }
.fct-composer .cx-chip { font-size: 11.5px; padding: 0 5px; }
.fct-composer .cx-cbot { flex-wrap: wrap; }
.fct-composer .cx-right { margin-left: auto; }
.fct-files { border-radius: 15px; padding: 7px 5px 2px; transition: box-shadow .25s, background-color .25s; }
.fct-files textarea { display: block; width: 100%; min-height: 77px; border: 0; resize: vertical; max-height: 180px; background: transparent; padding: 7px 10px 3px; font-size: 13px; line-height: 1.65; color: #17171a; }
.fct-files textarea::placeholder { color: #a2a2a8; }
.fct-file-methods { display: flex; flex-wrap: wrap; gap: 3px; padding: 2px 5px 6px; }
.fct-file-methods button { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 4px 6px; border-radius: 5px; color: #74747c; }
.fct-file-methods button:hover { background: #f1f1f4; color: #17171a; }
.fct-file-methods .ic { width: 12px; height: 12px; }
.fct-attachments { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 10px; }
.fct-attachments:empty { padding: 0; }
.fct-attachment { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; background: #f1f1f4; padding: 4px 5px 4px 7px; font-size: 10.5px; }
.fct-attachment button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; }
.fct-attachment button:hover { background: #e4e4e9; }
.fct-attachment .ic { width: 12px; height: 12px; }
.fct-focus { position: relative; box-shadow: 0 0 0 2px var(--mark), 0 0 0 5px rgba(255, 216, 77, .27); border-radius: 9px; z-index: 1; }
.fct-files.fct-over { background: #fff8db; }
.fct-caption { margin-top: 11px; font-size: .74rem; line-height: 1.6; color: rgba(246, 246, 252, .82); }
.fct-layer { position: absolute; inset: 34px 0 0; z-index: 8; background: rgba(33, 33, 42, .2); display: flex; align-items: center; justify-content: center; padding: 18px; }
.fct-layer[hidden], .fct-evidence[hidden] { display: none; }
.fct-panel { width: min(100%, 560px); max-height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 18px 40px -12px rgba(10, 14, 50, .4); border-radius: 14px; overflow: hidden; }
.fct-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px 12px; border-bottom: 1px solid #ececef; }
.fct-panel header small { display: block; font-size: 10px; color: #8e8e94; margin-bottom: 3px; }
.fct-panel header h2 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.fct-panel header button { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; flex-shrink: 0; }
.fct-panel header button:hover { background: #f1f1f4; }
.fct-panel-body { padding: 16px 17px 18px; overflow: auto; font-size: 12px; line-height: 1.7; }
.fct-panel-feedback { font-size: 10.5px; line-height: 1.5; color: #455b4a; padding: 0 17px 12px; }
.fct-panel-feedback:empty { display: none; }
.fct-panel-body > p + *, .fct-panel-body > * + p { margin-top: 12px; }
.fct-panel-body .cx-menu { box-shadow: none; border: 1px solid #ececef; min-width: 0; }
.fct-panel-body .cx-mi { min-height: 43px; }
.fct-panel-body .cx-mi small { font-size: 11px; line-height: 1.5; margin-top: 4px; }
.fct-panel-label { color: #74747c; font-size: 10.5px; }
.fct-panel-note { color: #74747c; font-size: 10.5px; line-height: 1.6; }
.fct-panel-body .btn { background: #0d0d0f !important; color: #fff !important; min-height: 32px; font-size: 11.5px; padding: 0 12px; margin-top: 12px; }
.fct-field { display: block; color: #45454b; }
.fct-field input, .fct-field textarea { display: block; width: 100%; color: #17171a; background: #f7f7f8; border: 1px solid #e4e4e8; border-radius: 7px; padding: 8px 10px; font: inherit; margin-top: 6px; resize: vertical; }
.fct-samplefiles { display: grid; gap: 6px; }
.fct-samplefiles > div { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; background: #f4f4f6; }
.fct-samplefiles > div > span { display: grid; gap: 2px; flex: 1; }
.fct-samplefiles small { font-size: 10px; color: #8e8e94; }
.fct-samplefiles button { padding: 5px 8px; border-radius: 6px; background: #fff; font-size: 10.5px; }
.fct-efforts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fct-efforts button { display: grid; gap: 3px; text-align: left; padding: 8px 10px; border-radius: 8px; background: #f4f4f6; }
.fct-efforts small { color: #8e8e94; font-size: 10px; }
.fct-efforts button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #1b1b1f; background: #fff; }
.fct-settings-tabs, .fct-tool-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 13px; }
.fct-settings-tabs button, .fct-tool-tabs button { display: inline-flex; gap: 5px; align-items: center; padding: 6px 9px; border-radius: 7px; background: #f4f4f6; font-size: 11px; }
.fct-settings-tabs button[aria-pressed="true"], .fct-tool-tabs button[aria-pressed="true"] { background: #1b1b1f; color: #fff; }
.fct-summary { display: grid; gap: 0; }
.fct-summary > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #ececef; }
.fct-summary dt { font-weight: 600; color: #45454b; }
.fct-summary dd { margin: 0; color: #74747c; }
.fct-toggle { display: inline-block; padding: 8px 12px; border-radius: 8px; background: #f4f4f6; }
.fct-toggle[aria-checked="true"] { background: #e8f4ec; color: #247849; }
.fct-preview { padding: 14px 15px; background: #f8f7f3; border: 1px solid #ece9e1; border-radius: 9px; }
.fct-preview p { margin-top: 8px; }
.fct-preview small, .fct-tool-result small { display: block; margin-top: 10px; font-size: 10px; color: #8e8e94; }
.fct-tool-result { padding: 14px 15px; background: #f7f7f8; border-radius: 9px; }
.fct button:focus-visible, .fct input:focus-visible, .fct textarea:focus-visible { outline: 2px solid #4c5bd8; outline-offset: 2px; }
.fct button, .fct input, .fct textarea { font-family: var(--sans); }
@media (max-width: 1100px) {
  .fct { grid-template-columns: 1fr; gap: 24px; }
  .fct-copy .head .t br { display: none; }
  .fct-detail { min-height: 0; }
  .fct-stations { grid-template-columns: repeat(4, 1fr); }
  .fct-app { height: 580px; }
}
@media (max-width: 760px) {
  .fce-compare { grid-template-columns: 1fr; gap: 24px; }
  .fce-foot { flex-direction: column; align-items: start; }
  .fct-stations { grid-template-columns: 1fr 1fr; }
  .fct-app { height: auto; min-height: 560px; }
  .fct-widget .fct-app { height: auto; }
  .fct-app .cx-body { flex-direction: column; }
  .fct-app .cx-side { display: flex; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 7px 12px; border-right: 0; border-bottom: 1px solid #e6e6ea; padding: 9px; }
  .fct-side .cx-brandrow { width: 100%; margin: 0; padding: 3px 8px !important; }
  .fct-project { display: flex; align-items: center; flex: 1; min-width: 210px; }
  .fct-project .cx-sh, .fct-side > .cx-sh, .fct-recent, .fct-sidebottom > p { display: none; }
  .fct-project .fct-sidebutton { width: auto; }
  .fct-sidebottom { margin: 0; padding: 0; }
  .fct-main { min-height: 440px; padding: 12px; }
  .fct-layer { padding: 11px; }
  .fct-efforts { grid-template-columns: 1fr 1fr; }
  .fct-summary > div { grid-template-columns: 90px 1fr; gap: 10px; }
  .fct-composer .cx-chip { font-size: 10.5px; }
  .fct-toolbar .cx-chip { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fct * { transition: none !important; } }
