landing.css 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110
  1. /* Fmode 落地页 · 样式层(图标的 @import 必须出现在所有规则之前,故置顶) */
  2. @import url("./assets/icons/phosphor-regular.css");
  3. @import url("./assets/icons/phosphor-bold.css");
  4. @import url("./assets/icons/phosphor-fill.css");
  5. /* =========================================================================
  6. Fmode 落地页 · 样式层
  7. 分层:1 令牌 → 2 基础 → 3 排版与布局原语 → 4 导航 → 5 Hero
  8. → 6 演示窗 → 7 标签墙 → 8 能力 → 9 步骤 → 10 实验室
  9. → 11 产品预览 → 12 数字 / FAQ / CTA / 页脚 → 13 动效与降级
  10. 纪律:不使用背景渐变(唯一例外是 Hero 标题的文字渐变)与 data URI 图片;
  11. 只动 transform / opacity;阴影一律用颜色加不透明度,不用模糊滤镜。
  12. ========================================================================= */
  13. /* ---------- 1. 本地字体与图标(离线可用) ---------- */
  14. @font-face {
  15. font-family: "Geist";
  16. src: url("./assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  17. font-weight: 100 900;
  18. font-style: normal;
  19. font-display: swap;
  20. }
  21. @font-face {
  22. font-family: "Geist Mono";
  23. src: url("./assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  24. font-weight: 100 900;
  25. font-style: normal;
  26. font-display: swap;
  27. }
  28. /* ---------- 令牌 ---------- */
  29. :root {
  30. --f-sans: "Geist", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  31. --f-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  32. /* 间距(8pt 网格 + 4/2 细档) */
  33. --s-0: 0; --s-2: 2px; --s-4: 4px; --s-8: 8px; --s-12: 12px;
  34. --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-40: 40px;
  35. --s-48: 48px; --s-64: 64px; --s-80: 80px; --s-96: 96px;
  36. /* 圆角 */
  37. --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  38. /* 动效 */
  39. --ease: cubic-bezier(0.22, 1, 0.36, 1);
  40. --d-micro: 200ms; --d-base: 500ms; --d-reveal: 700ms;
  41. /* 布局 */
  42. --page-max: 1180px;
  43. --gutter: 24px;
  44. --nav-h: 56px;
  45. /* 色彩(暗色为默认) */
  46. --canvas: #000000;
  47. --surface: #0b0b0c;
  48. --surface-2: #181818;
  49. --surface-3: #1f1f1f;
  50. --surface-4: #272727;
  51. --surface-5: #313131;
  52. --edge: rgba(255, 255, 255, 0.08);
  53. --edge-strong: rgba(255, 255, 255, 0.16);
  54. --ink: #ffffff;
  55. --ink-2: #c9c9c9;
  56. --muted: #8c8c8c;
  57. --faint: #8a8a8a;
  58. --grain: #131209;
  59. --primary: #f5f5f5;
  60. --primary-ink: #0a0a0a;
  61. --accent: #a78bfa;
  62. --success: #4ade80;
  63. --success-soft: rgba(74, 222, 128, 0.12);
  64. --danger: #f87171;
  65. --danger-soft: rgba(248, 113, 113, 0.12);
  66. --warning: #fbbf24;
  67. --code-bg: #08080a;
  68. --sel: rgba(167, 139, 250, 0.24);
  69. }
  70. :root[data-theme="light"] {
  71. --canvas: #ffffff;
  72. --surface: #fafafa;
  73. --surface-2: #f4f4f5;
  74. --surface-3: #ededee;
  75. --surface-4: #e4e4e7;
  76. --surface-5: #d9d9de;
  77. --edge: rgba(0, 0, 0, 0.08);
  78. --edge-strong: rgba(0, 0, 0, 0.16);
  79. --ink: #000000;
  80. --ink-2: #2e2e32;
  81. --muted: #6b6b73;
  82. --faint: #6e6e78;
  83. --grain: #f6f4ec;
  84. --primary: #0a0a0a;
  85. --primary-ink: #ffffff;
  86. --accent: #7c5cf0;
  87. --success: #16a34a;
  88. --success-soft: rgba(22, 163, 74, 0.1);
  89. --danger: #dc2626;
  90. --danger-soft: rgba(220, 38, 38, 0.08);
  91. --warning: #b45309;
  92. --code-bg: #f7f7f8;
  93. --sel: rgba(124, 92, 240, 0.18);
  94. }
  95. /* ---------- 2. 基础 ---------- */
  96. * { box-sizing: border-box; }
  97. ::selection { background: var(--sel); }
  98. html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  99. @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  100. body {
  101. margin: 0;
  102. background: var(--canvas);
  103. color: var(--ink);
  104. font-family: var(--f-sans);
  105. font-size: 16px;
  106. line-height: 1.6;
  107. -webkit-font-smoothing: antialiased;
  108. -moz-osx-font-smoothing: grayscale;
  109. font-feature-settings: "cv11", "ss01";
  110. overflow-x: hidden;
  111. }
  112. h1, h2, h3, h4, p { margin: 0; text-wrap: pretty; }
  113. h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; }
  114. a { color: inherit; text-decoration: none; }
  115. button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
  116. code, pre, kbd { font-family: var(--f-mono); }
  117. :focus-visible {
  118. outline: 2px solid var(--accent);
  119. outline-offset: 3px;
  120. border-radius: var(--r-sm);
  121. }
  122. .skip {
  123. position: fixed; left: var(--s-16); top: -100px; z-index: 100;
  124. padding: var(--s-8) var(--s-12); border-radius: var(--r-sm);
  125. background: var(--primary); color: var(--primary-ink); font-size: 14px;
  126. transition: transform var(--d-micro) var(--ease);
  127. }
  128. .skip:focus { top: var(--s-16); }
  129. .wrap {
  130. width: 100%;
  131. max-width: var(--page-max);
  132. margin-inline: auto;
  133. padding-inline: var(--gutter);
  134. }
  135. /* ---------- 3. 排版与布局原语 ---------- */
  136. .eyebrow {
  137. display: inline-flex; align-items: center; gap: var(--s-8);
  138. font-family: var(--f-mono);
  139. font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  140. color: var(--muted);
  141. }
  142. .eyebrow::before {
  143. content: ""; width: 6px; height: 6px; border-radius: var(--r-full);
  144. background: var(--accent);
  145. }
  146. .h2 { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; }
  147. .lede { color: var(--ink-2); font-size: 18px; line-height: 1.6; max-width: 680px; }
  148. .section-head { display: grid; gap: var(--s-16); max-width: 720px; }
  149. section { padding-block: var(--s-96); position: relative; }
  150. .hr { height: 1px; background: var(--edge); border: 0; margin: 0; }
  151. .btn {
  152. display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  153. min-height: 44px;
  154. padding: var(--s-8) var(--s-12);
  155. border-radius: var(--r-md);
  156. font-size: 16px; font-weight: 600;
  157. transition: transform var(--d-micro) var(--ease),
  158. background-color var(--d-micro) var(--ease),
  159. border-color var(--d-micro) var(--ease),
  160. color var(--d-micro) var(--ease);
  161. }
  162. .btn:active { transform: scale(0.98); }
  163. .btn--primary { background: var(--primary); color: var(--primary-ink); padding-inline: var(--s-24); }
  164. .btn--primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--accent)); }
  165. .btn--ghost { border: 1px solid var(--edge); color: var(--ink-2); }
  166. .btn--ghost:hover { border-color: var(--edge-strong); color: var(--ink); background: var(--surface-2); }
  167. .btn--sm { min-height: 36px; font-size: 14px; padding-inline: var(--s-12); }
  168. .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
  169. .btn i { font-size: 18px; }
  170. .card {
  171. border-radius: var(--r-lg);
  172. background: var(--surface-2);
  173. border: 1px solid var(--edge);
  174. }
  175. .kbd {
  176. display: inline-flex; align-items: center; justify-content: center;
  177. min-width: 20px; height: 20px; padding-inline: var(--s-4);
  178. border-radius: var(--r-sm);
  179. border: 1px solid var(--edge);
  180. background: var(--surface-3);
  181. font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  182. }
  183. /* 卡片/按钮的柔和高光:用颜色层模拟模糊,不用 filter: blur */
  184. .gloss { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  185. :root[data-theme="light"] .gloss { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
  186. /* ---------- 4. 导航 ---------- */
  187. .nav {
  188. position: fixed; top: var(--s-12); left: 50%; z-index: 50;
  189. translate: -50% 0;
  190. width: min(var(--page-max), calc(100% - 32px));
  191. height: var(--nav-h);
  192. display: flex; align-items: center; gap: var(--s-16);
  193. padding-inline: var(--s-8) var(--s-8);
  194. border-radius: var(--r-full);
  195. border: 1px solid transparent;
  196. transition: background-color var(--d-base) var(--ease),
  197. border-color var(--d-base) var(--ease),
  198. box-shadow var(--d-base) var(--ease);
  199. }
  200. .nav[data-scrolled="true"] {
  201. background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  202. border-color: var(--edge);
  203. box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  204. backdrop-filter: blur(20px) saturate(160%);
  205. -webkit-backdrop-filter: blur(20px) saturate(160%);
  206. }
  207. .brand { display: inline-flex; align-items: center; gap: var(--s-8); padding-inline: var(--s-8); font-weight: 600; letter-spacing: -0.01em; }
  208. .brand__mark {
  209. width: 28px; height: 28px; border-radius: 8px;
  210. display: grid; place-items: center;
  211. background: var(--primary); color: var(--primary-ink);
  212. font-family: var(--f-mono); font-size: 15px; font-weight: 700;
  213. }
  214. .nav__links { display: flex; align-items: center; gap: var(--s-4); margin-inline-start: var(--s-16); }
  215. .nav__link {
  216. padding: var(--s-8) var(--s-12); border-radius: var(--r-full);
  217. font-size: 14px; color: var(--muted);
  218. transition: color var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease);
  219. }
  220. .nav__link:hover { color: var(--ink); background: var(--surface-3); }
  221. .nav__link[aria-current="true"] { color: var(--ink); background: var(--surface-3); }
  222. .nav__spacer { flex: 1; }
  223. .nav__actions { display: flex; align-items: center; gap: var(--s-8); }
  224. .icon-btn {
  225. width: 36px; height: 36px; border-radius: var(--r-full);
  226. display: grid; place-items: center;
  227. color: var(--muted); font-size: 18px;
  228. transition: color var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease), transform var(--d-micro) var(--ease);
  229. }
  230. .icon-btn:hover { color: var(--ink); background: var(--surface-3); }
  231. .icon-btn:active { transform: scale(0.94); }
  232. .icon-btn i { transition: transform var(--d-base) var(--ease), opacity var(--d-micro) var(--ease); }
  233. /* 主题切换:两枚图标互相旋转交叠,而不是瞬间替换 */
  234. .theme-toggle { position: relative; }
  235. .theme-toggle i { position: absolute; }
  236. .theme-toggle .i-sun { transform: rotate(-90deg) scale(0.4); opacity: 0; }
  237. .theme-toggle .i-moon { transform: rotate(0) scale(1); opacity: 1; }
  238. :root[data-theme="light"] .theme-toggle .i-sun { transform: rotate(0) scale(1); opacity: 1; }
  239. :root[data-theme="light"] .theme-toggle .i-moon { transform: rotate(90deg) scale(0.4); opacity: 0; }
  240. .nav__toggle { display: none; }
  241. /* 移动菜单:全高面板 */
  242. .menu {
  243. position: fixed; inset: 0; z-index: 49;
  244. background: color-mix(in srgb, var(--canvas) 86%, transparent);
  245. backdrop-filter: blur(28px) saturate(140%);
  246. -webkit-backdrop-filter: blur(28px) saturate(140%);
  247. padding: calc(var(--nav-h) + var(--s-48)) var(--gutter) var(--s-32);
  248. display: grid; align-content: start; gap: var(--s-4);
  249. opacity: 0; pointer-events: none;
  250. transition: opacity var(--d-base) var(--ease);
  251. }
  252. .menu[data-open="true"] { opacity: 1; pointer-events: auto; }
  253. .menu a {
  254. font-size: 30px; font-weight: 600; letter-spacing: -0.02em;
  255. padding: var(--s-8) 0;
  256. opacity: 0; transform: translateY(24px);
  257. transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease);
  258. }
  259. .menu[data-open="true"] a { opacity: 1; transform: none; }
  260. .menu a:nth-child(1) { transition-delay: 60ms; }
  261. .menu a:nth-child(2) { transition-delay: 120ms; }
  262. .menu a:nth-child(3) { transition-delay: 180ms; }
  263. .menu a:nth-child(4) { transition-delay: 240ms; }
  264. .menu a:nth-child(5) { transition-delay: 300ms; }
  265. .menu a:nth-child(6) { transition-delay: 360ms; }
  266. .menu__foot { margin-top: var(--s-32); color: var(--muted); font-size: 14px; }
  267. /* ---------- 5. Hero ---------- */
  268. .hero { padding-top: calc(var(--nav-h) + var(--s-96)); padding-bottom: var(--s-64); }
  269. .hero__inner { display: grid; gap: var(--s-32); justify-items: center; text-align: center; }
  270. .hero__badge {
  271. display: inline-flex; align-items: center; gap: var(--s-8);
  272. height: 32px; padding-inline: var(--s-12) var(--s-16);
  273. border-radius: var(--r-full);
  274. border: 1px solid var(--edge);
  275. background: var(--surface-2);
  276. font-size: 13px; color: var(--ink-2);
  277. }
  278. .hero__badge .dot {
  279. width: 6px; height: 6px; border-radius: var(--r-full);
  280. background: var(--success);
  281. box-shadow: 0 0 0 0 var(--success);
  282. animation: ping 2.4s var(--ease) infinite;
  283. }
  284. .hero__badge b { color: var(--ink); font-weight: 500; }
  285. .hero__badge i { color: var(--faint); }
  286. h1.hero__title {
  287. max-width: 680px;
  288. font-size: 60px;
  289. font-weight: 600;
  290. letter-spacing: -0.045em;
  291. line-height: 1.05;
  292. background: linear-gradient(90deg, #ffffff 0%, #ffffff 40%, #9b9b9b 100%);
  293. -webkit-background-clip: text; background-clip: text;
  294. color: transparent;
  295. }
  296. :root[data-theme="light"] h1.hero__title {
  297. background: linear-gradient(90deg, #000000 0%, #000000 40%, #666666 100%);
  298. -webkit-background-clip: text; background-clip: text;
  299. }
  300. .hero__sub { max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
  301. .hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-12); justify-content: center; }
  302. .hero__proof {
  303. display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-16); justify-content: center;
  304. color: var(--muted); font-size: 13px;
  305. }
  306. .hero__proof span { display: inline-flex; align-items: center; gap: var(--s-4); }
  307. .hero__proof i { color: var(--success); font-size: 15px; }
  308. /* ---------- 6. 演示窗(Codex 版式) ---------- */
  309. .stage {
  310. width: 100%; max-width: 920px;
  311. margin-top: var(--s-16);
  312. border-radius: var(--r-xl);
  313. border: 1px solid var(--edge);
  314. background: var(--surface);
  315. box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.02);
  316. overflow: hidden;
  317. text-align: left;
  318. }
  319. :root[data-theme="light"] .stage { box-shadow: 0 40px 80px -32px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(0, 0, 0, 0.02); }
  320. .stage__bar {
  321. display: flex; align-items: center; gap: var(--s-12);
  322. height: 48px; padding-inline: var(--s-16);
  323. border-bottom: 1px solid var(--edge);
  324. background: var(--surface-2);
  325. }
  326. .dots { display: inline-flex; gap: var(--s-8); }
  327. .dots i { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--surface-5); }
  328. .stage__title { font-family: var(--f-mono); font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  329. .pill i { font-size: 11px; }
  330. .stage__title b { color: var(--ink-2); font-weight: 500; }
  331. .stage__right { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s-8); }
  332. .pill {
  333. display: inline-flex; align-items: center; gap: var(--s-4);
  334. height: 24px; padding-inline: var(--s-8);
  335. border-radius: var(--r-full); font-size: 12px;
  336. background: var(--surface-3); color: var(--ink-2);
  337. font-family: var(--f-mono);
  338. }
  339. .pill--live { background: var(--success-soft); color: var(--success); white-space: nowrap; flex-shrink: 0; }
  340. .pill--mute { color: var(--muted); }
  341. .stage__body {
  342. display: grid;
  343. grid-template-columns: 200px 1fr;
  344. min-height: 460px;
  345. }
  346. .stage__side {
  347. border-right: 1px solid var(--edge);
  348. padding: var(--s-16) var(--s-12);
  349. display: grid; align-content: start; gap: var(--s-4);
  350. background: var(--surface);
  351. }
  352. .side__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); padding: var(--s-8) var(--s-8) var(--s-4); }
  353. .side__item {
  354. display: flex; align-items: center; gap: var(--s-8);
  355. padding: var(--s-8); border-radius: var(--r-md);
  356. font-size: 13px; color: var(--muted);
  357. transition: background-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
  358. }
  359. .side__item:hover { background: var(--surface-2); color: var(--ink-2); }
  360. .side__item[data-on="true"] { background: var(--surface-3); color: var(--ink); }
  361. .side__item i { font-size: 16px; }
  362. .side__item .dot { width: 6px; height: 6px; border-radius: var(--r-full); margin-inline-start: auto; background: var(--success); }
  363. .side__item .dot[data-s="busy"] { background: var(--accent); animation: ping 1.6s var(--ease) infinite; }
  364. .side__item .dot[data-s="idle"] { background: var(--faint); }
  365. .side__item .avatar {
  366. width: 22px; height: 22px; border-radius: var(--r-full);
  367. display: grid; place-items: center;
  368. font-size: 11px; font-weight: 600;
  369. background: var(--surface-5); color: var(--ink);
  370. }
  371. .timeline {
  372. display: grid; align-content: start;
  373. padding: var(--s-16) var(--s-24) var(--s-24);
  374. height: 460px;
  375. overflow-y: auto;
  376. scrollbar-width: thin;
  377. scrollbar-color: var(--surface-5) transparent;
  378. }
  379. .timeline::-webkit-scrollbar { width: 6px; }
  380. .timeline::-webkit-scrollbar-thumb { background: var(--surface-5); border-radius: 3px; }
  381. .stage__body { height: 460px; min-height: 0; }
  382. .stage__side { overflow-y: auto; }
  383. @media (max-width: 1024px) { .timeline, .stage__body { height: 420px; } }
  384. /* 消息行 */
  385. .msg > div { min-width: 0; }
  386. .msg { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-12); padding-block: var(--s-12); border-bottom: 1px dashed var(--edge); }
  387. .msg:last-child { border-bottom: 0; }
  388. .msg__avatar {
  389. width: 28px; height: 28px; border-radius: var(--r-full);
  390. display: grid; place-items: center;
  391. font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  392. background: var(--surface-4); color: var(--ink-2);
  393. }
  394. .msg__avatar[data-a="lead"] { background: var(--primary); color: var(--primary-ink); }
  395. .msg__avatar[data-a="dev"] { background: color-mix(in srgb, var(--accent) 22%, var(--surface-4)); color: var(--ink); }
  396. .msg__avatar[data-a="me"] { background: transparent; border: 1px solid var(--edge-strong); color: var(--muted); }
  397. .msg__head { display: flex; align-items: baseline; gap: var(--s-8); font-size: 13px; }
  398. .msg__name { font-weight: 600; color: var(--ink); }
  399. .msg__role { font-size: 11px; color: var(--faint); font-family: var(--f-mono); }
  400. .msg__time { font-size: 11px; color: var(--faint); font-family: var(--f-mono); margin-inline-start: auto; }
  401. .msg__body { font-size: 14px; line-height: 1.65; color: var(--ink-2); margin-top: var(--s-4); }
  402. .msg__body b { color: var(--ink); font-weight: 600; }
  403. .msg__body .hl { color: var(--accent); }
  404. .msg__enter { animation: msgIn 420ms var(--ease) both; }
  405. @keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  406. /* 流式打字:最后一个字符位置的光标 */
  407. .caret {
  408. display: inline-block; width: 7px; height: 1.05em; margin-left: 1px;
  409. translate: 0 2px;
  410. background: var(--accent); border-radius: 1px;
  411. animation: caret 1s steps(1) infinite;
  412. }
  413. @keyframes caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
  414. /* 选择项(组长确认口径) */
  415. .choice {
  416. display: flex; align-items: center; gap: var(--s-8); flex-wrap: wrap;
  417. margin-top: var(--s-8);
  418. padding: var(--s-8) var(--s-12);
  419. border: 1px solid var(--edge);
  420. border-radius: var(--r-md);
  421. background: var(--surface-2);
  422. font-size: 13px;
  423. }
  424. .choice span { color: var(--muted); }
  425. .choice b {
  426. display: inline-flex; align-items: center; gap: var(--s-4);
  427. padding: 2px var(--s-8); border-radius: var(--r-sm);
  428. background: var(--surface-4); color: var(--ink); font-weight: 500;
  429. }
  430. .choice b[data-pick="true"] { background: var(--primary); color: var(--primary-ink); }
  431. /* ---------- Codex 部件的共用形态 ---------- */
  432. .cx { margin-top: var(--s-8); }
  433. .cx + .cx { margin-top: var(--s-8); }
  434. .cx-think {
  435. border: 1px solid var(--edge);
  436. border-radius: var(--r-md);
  437. background: var(--surface-2);
  438. overflow: hidden;
  439. }
  440. .cx-think__head {
  441. width: 100%;
  442. display: flex; align-items: center; gap: var(--s-8);
  443. padding: var(--s-8) var(--s-12);
  444. font-size: 13px; color: var(--muted);
  445. transition: color var(--d-micro) var(--ease), background-color var(--d-micro) var(--ease);
  446. }
  447. .cx-think__head:hover { color: var(--ink-2); background: var(--surface-3); }
  448. .cx-think__head i.ph { font-size: 16px; transition: transform var(--d-base) var(--ease); }
  449. .cx-think[data-open="false"] .cx-think__head i.ph { transform: rotate(0deg); }
  450. .cx-think[data-open="true"] .cx-think__head i.ph { transform: rotate(90deg); }
  451. .cx-think__head .label { font-family: var(--f-mono); font-size: 12px; }
  452. .cx-think__head .secs { margin-inline-start: auto; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
  453. .cx-think__body {
  454. display: grid; grid-template-rows: 0fr;
  455. transition: grid-template-rows var(--d-base) var(--ease);
  456. }
  457. .cx-think[data-open="true"] .cx-think__body { grid-template-rows: 1fr; }
  458. .cx-think__inner { overflow: hidden; }
  459. .cx-think__text {
  460. border-top: 1px solid var(--edge);
  461. padding: var(--s-12);
  462. font-size: 13px; line-height: 1.7; color: var(--muted);
  463. white-space: pre-wrap;
  464. }
  465. .cx-think__text em { color: var(--ink-2); font-style: normal; }
  466. .cx-tools { display: grid; gap: var(--s-2); }
  467. .cx-tool {
  468. display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: var(--s-8);
  469. padding: var(--s-8) var(--s-12);
  470. border-radius: var(--r-md);
  471. font-size: 13px;
  472. color: var(--ink-2);
  473. transition: background-color var(--d-micro) var(--ease);
  474. }
  475. .cx-tool:hover { background: var(--surface-2); }
  476. .cx-tool > i { font-size: 15px; color: var(--muted); }
  477. .cx-tool > div { min-width: 0; }
  478. .cx-tool .verb { color: var(--muted); }
  479. .cx-tool .target { font-family: var(--f-mono); font-size: 12px; color: var(--ink); }
  480. .cx-tool .meta { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
  481. .cx-tool[data-state="run"] .spinner { width: 12px; height: 12px; }
  482. .cx-tool[data-state="ok"] > .status i { color: var(--success); font-size: 15px; }
  483. .cx-tool[data-state="err"] > .status i { color: var(--danger); font-size: 15px; }
  484. .cx-tool .status { display: grid; place-items: center; width: 18px; }
  485. .spinner {
  486. display: inline-block; width: 14px; height: 14px;
  487. border-radius: var(--r-full);
  488. border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  489. border-top-color: var(--accent);
  490. animation: spin 0.8s linear infinite;
  491. }
  492. @keyframes spin { to { transform: rotate(360deg); } }
  493. /* 代码 diff */
  494. .cx-diff {
  495. border: 1px solid var(--edge);
  496. border-radius: var(--r-md);
  497. background: var(--code-bg);
  498. overflow: hidden;
  499. font-family: var(--f-mono);
  500. font-size: 12.5px;
  501. line-height: 1.75;
  502. }
  503. .cx-diff__bar {
  504. display: flex; align-items: center; gap: var(--s-8);
  505. padding: var(--s-8) var(--s-12);
  506. border-bottom: 1px solid var(--edge);
  507. color: var(--muted); font-size: 12px;
  508. }
  509. .cx-diff__bar i { font-size: 14px; }
  510. .cx-diff__bar .stat { margin-inline-start: auto; display: flex; gap: var(--s-8); }
  511. .cx-diff__bar .add { color: var(--success); }
  512. .cx-diff__bar .del { color: var(--danger); }
  513. .cx-diff__body { padding-block: var(--s-4); overflow-x: auto; }
  514. .dl {
  515. display: grid; grid-template-columns: 40px 16px 1fr;
  516. padding-inline: var(--s-8);
  517. white-space: pre;
  518. animation: lineIn 260ms var(--ease) both;
  519. }
  520. @keyframes lineIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
  521. .dl .n { color: var(--faint); text-align: right; padding-inline-end: var(--s-8); user-select: none; }
  522. .dl .s { color: var(--muted); user-select: none; }
  523. .dl .t { color: var(--ink-2); }
  524. .dl[data-k="add"] { background: var(--success-soft); }
  525. .dl[data-k="add"] .t, .dl[data-k="add"] .s { color: var(--success); }
  526. .dl[data-k="del"] { background: var(--danger-soft); }
  527. .dl[data-k="del"] .t, .dl[data-k="del"] .s { color: var(--danger); }
  528. .dl .k { color: var(--accent); }
  529. .dl .str { color: color-mix(in srgb, var(--warning) 85%, var(--ink-2)); }
  530. .dl .fn { color: #7dd3fc; }
  531. :root[data-theme="light"] .dl .fn { color: #0369a1; }
  532. :root[data-theme="light"] .cx-diff .k { color: #5b3fd6; }
  533. /* 演示控制条 */
  534. .stage__foot {
  535. display: flex; align-items: center; gap: var(--s-8);
  536. min-height: 52px; padding: var(--s-8) var(--s-16);
  537. border-top: 1px solid var(--edge);
  538. background: var(--surface-2);
  539. color: var(--muted); font-size: 13px;
  540. }
  541. .stage__foot .progress {
  542. margin-inline-start: auto; width: 120px; height: 3px;
  543. border-radius: var(--r-full); background: var(--surface-5); overflow: hidden;
  544. }
  545. .stage__foot .progress i {
  546. display: block; height: 100%; width: 0%;
  547. background: var(--accent); border-radius: inherit;
  548. transition: width 300ms linear;
  549. }
  550. .spk { display: inline-flex; align-items: center; gap: var(--s-2); }
  551. .spk i { width: 2px; border-radius: 1px; background: currentColor; animation: wave 1s var(--ease) infinite; }
  552. .spk i:nth-child(1) { height: 6px; animation-delay: 0ms; }
  553. .spk i:nth-child(2) { height: 12px; animation-delay: 120ms; }
  554. .spk i:nth-child(3) { height: 8px; animation-delay: 240ms; }
  555. .spk i:nth-child(4) { height: 14px; animation-delay: 60ms; }
  556. @keyframes wave { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
  557. /* ---------- 7. 标签墙(逐词点亮) ---------- */
  558. .manifesto { padding-block: var(--s-96); }
  559. .manifesto__text {
  560. max-width: 680px;
  561. font-size: 48px;
  562. font-weight: 600;
  563. letter-spacing: -0.035em;
  564. line-height: 1.2;
  565. color: var(--ink);
  566. }
  567. .manifesto__text .w { opacity: 0.26; transition: opacity 600ms var(--ease); }
  568. .manifesto__text .w[data-on="true"] { opacity: 1; }
  569. .manifesto__text .w[data-accent="true"][data-on="true"] { color: var(--accent); }
  570. .manifesto__foot { margin-top: var(--s-32); display: flex; align-items: center; gap: var(--s-16); color: var(--muted); font-size: 14px; }
  571. .manifesto__foot .line { flex: 1; height: 1px; background: var(--edge); }
  572. /* ---------- 8. 问题 → 方案 ---------- */
  573. .compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); margin-top: var(--s-48); }
  574. .compare__col { padding: var(--s-24); border-radius: var(--r-lg); border: 1px solid var(--edge); background: var(--surface); }
  575. .compare__col[data-kind="bad"] { background: var(--surface); }
  576. .compare__col[data-kind="good"] { background: var(--surface-2); border-color: var(--edge-strong); }
  577. .compare__title { display: flex; align-items: center; gap: var(--s-8); font-size: 14px; font-weight: 600; margin-bottom: var(--s-16); }
  578. .compare__title i { font-size: 18px; }
  579. .compare__col[data-kind="bad"] .compare__title i { color: var(--danger); }
  580. .compare__col[data-kind="good"] .compare__title i { color: var(--success); }
  581. .compare__list { display: grid; gap: var(--s-12); list-style: none; padding: 0; margin: 0; }
  582. .compare__list li { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-8); font-size: 14px; color: var(--ink-2); line-height: 1.55; }
  583. .compare__list li i { font-size: 16px; margin-top: 2px; }
  584. .compare__col[data-kind="bad"] li i { color: var(--faint); }
  585. .compare__col[data-kind="good"] li i { color: var(--success); }
  586. /* 三个窗口的拟真(旧做法) */
  587. .win-stack { position: relative; height: 150px; margin-bottom: var(--s-24); }
  588. .win {
  589. position: absolute; width: 62%; height: 110px;
  590. border-radius: var(--r-md); border: 1px solid var(--edge);
  591. background: var(--surface-2);
  592. padding: var(--s-8);
  593. transition: transform var(--d-reveal) var(--ease);
  594. }
  595. .win:nth-child(1) { left: 0; top: 0; transform: rotate(-3deg); }
  596. .win:nth-child(2) { right: 0; top: 16px; transform: rotate(2.5deg); }
  597. .win:nth-child(3) { left: 19%; top: 36px; transform: rotate(-1deg); }
  598. .compare__col[data-kind="bad"]:hover .win:nth-child(1) { transform: rotate(-6deg) translate(-6px, -4px); }
  599. .compare__col[data-kind="bad"]:hover .win:nth-child(2) { transform: rotate(6deg) translate(6px, 4px); }
  600. .win__bar { display: flex; gap: 4px; margin-bottom: var(--s-8); }
  601. .win__bar i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--surface-5); }
  602. .win__l { height: 5px; border-radius: 3px; background: var(--surface-4); margin-bottom: 5px; }
  603. .win__l:nth-child(3) { width: 70%; }
  604. .win__l:nth-child(4) { width: 45%; }
  605. .room-union {
  606. display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8);
  607. padding: var(--s-12);
  608. border-radius: var(--r-md);
  609. border: 1px solid var(--edge-strong);
  610. background: var(--surface-3);
  611. margin-bottom: var(--s-24);
  612. height: 150px; align-content: center;
  613. }
  614. .room-union .m { display: grid; gap: var(--s-4); justify-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
  615. .room-union .m b { width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--surface-5); color: var(--ink); font-size: 11px; }
  616. .room-union .m[data-lead="true"] b { background: var(--primary); color: var(--primary-ink); }
  617. .room-union .thread { grid-column: 1 / -1; height: 1px; background: var(--edge-strong); position: relative; margin-block: var(--s-8); }
  618. .room-union .thread::after {
  619. content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  620. background: var(--accent);
  621. transform-origin: left; transform: scaleX(0);
  622. transition: transform 900ms var(--ease) 200ms;
  623. }
  624. .compare__col[data-kind="good"]:hover .room-union .thread::after,
  625. .reveal.is-in .compare__col[data-kind="good"] .room-union .thread::after { transform: scaleX(1); }
  626. /* ---------- 9. 能力卡 ---------- */
  627. .features { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-16); margin-top: var(--s-48); }
  628. .feat {
  629. border-radius: var(--r-lg);
  630. border: 1px solid var(--edge);
  631. background: var(--surface);
  632. overflow: hidden;
  633. display: grid; grid-template-rows: 200px auto;
  634. transition: border-color var(--d-base) var(--ease), transform var(--d-base) var(--ease), background-color var(--d-base) var(--ease);
  635. }
  636. .feat:hover { border-color: var(--edge-strong); transform: translateY(-3px); background: var(--surface-2); }
  637. .feat__art { position: relative; border-bottom: 1px solid var(--edge); background: var(--surface-2); overflow: hidden; }
  638. .feat__text { padding: var(--s-24); display: grid; gap: var(--s-8); align-content: start; }
  639. .feat__text h3 { font-size: 20px; font-weight: 600; }
  640. .feat__text p { color: var(--muted); font-size: 14px; line-height: 1.6; }
  641. .feat__tag { font-family: var(--f-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.08em; }
  642. /* 艺术图 1:多人在同一房间 */
  643. .art-room { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); padding: var(--s-16); height: 100%; }
  644. .art-room .p {
  645. display: grid; gap: var(--s-8); justify-items: center; align-content: center;
  646. border-radius: var(--r-md); background: var(--surface-3);
  647. padding: var(--s-8);
  648. }
  649. .art-room .p b {
  650. width: 36px; height: 36px; border-radius: var(--r-full);
  651. display: grid; place-items: center; font-size: 12px;
  652. background: var(--surface-5); color: var(--ink-2);
  653. transition: transform var(--d-base) var(--ease), background-color var(--d-base) var(--ease);
  654. }
  655. .art-room .p[data-lead="true"] b { background: var(--primary); color: var(--primary-ink); }
  656. .art-room .p span { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
  657. .art-room .p em { font-size: 10px; color: var(--faint); font-style: normal; }
  658. .feat:hover .art-room .p b { transform: translateY(-2px); }
  659. .feat:hover .art-room .p:nth-child(2) b { transition-delay: 60ms; }
  660. .feat:hover .art-room .p:nth-child(3) b { transition-delay: 120ms; }
  661. .art-room .link { position: absolute; inset: 0; pointer-events: none; }
  662. /* 艺术图 2:运行态流水 */
  663. .art-trace { padding: var(--s-16); display: grid; gap: var(--s-4); align-content: center; font-family: var(--f-mono); font-size: 11.5px; }
  664. .art-trace .r { display: grid; grid-template-columns: 14px 1fr auto; gap: var(--s-8); align-items: center; color: var(--muted); padding: 3px 0; }
  665. .art-trace .r i { font-size: 12px; }
  666. .art-trace .r .ok { color: var(--success); }
  667. .art-trace .r .run { color: var(--accent); }
  668. .art-trace .r .tm { color: var(--faint); }
  669. .art-trace .r:nth-child(even) { opacity: 0.85; }
  670. /* 艺术图 3:成果归档 */
  671. .art-archive { padding: var(--s-16); display: grid; gap: var(--s-8); align-content: center; }
  672. .art-archive .f {
  673. display: grid; grid-template-columns: 26px 1fr auto; gap: var(--s-8); align-items: center;
  674. padding: var(--s-8); border-radius: var(--r-sm);
  675. background: var(--surface-3); font-size: 12px;
  676. transition: transform var(--d-base) var(--ease);
  677. }
  678. .art-archive .f i.ph { font-size: 18px; color: var(--accent); }
  679. .art-archive .f .nm { font-family: var(--f-mono); color: var(--ink-2); }
  680. .art-archive .f .vd { font-family: var(--f-mono); font-size: 10px; color: var(--faint); }
  681. .feat:hover .art-archive .f:nth-child(2) { transform: translateX(4px); transition-delay: 60ms; }
  682. .feat:hover .art-archive .f:nth-child(3) { transform: translateX(8px); transition-delay: 120ms; }
  683. /* 艺术图 4:回环检测 */
  684. .art-loop { padding: var(--s-16); display: grid; gap: var(--s-8); align-content: center; height: 100%; }
  685. .art-loop .b { max-width: 80%; padding: 6px var(--s-8); border-radius: var(--r-sm); font-size: 11px; font-family: var(--f-mono); background: var(--surface-3); color: var(--muted); }
  686. .art-loop .b[data-side="r"] { justify-self: end; }
  687. .art-loop .cut {
  688. justify-self: center; display: inline-flex; align-items: center; gap: var(--s-4);
  689. margin-top: var(--s-4); padding: 2px var(--s-8); border-radius: var(--r-full);
  690. background: var(--danger-soft); color: var(--danger); font-size: 11px; font-family: var(--f-mono);
  691. }
  692. /* ---------- 10. 如何运作 ---------- */
  693. .steps { display: grid; gap: 0; margin-top: var(--s-48); }
  694. .step {
  695. display: grid; grid-template-columns: 96px 1fr; gap: var(--s-24);
  696. padding-block: var(--s-32);
  697. border-top: 1px solid var(--edge);
  698. transition: background-color var(--d-base) var(--ease);
  699. }
  700. .step:last-child { border-bottom: 1px solid var(--edge); }
  701. .step__n { font-family: var(--f-mono); font-size: 14px; color: var(--faint); padding-top: 2px; }
  702. .step__n b { color: var(--accent); font-weight: 500; }
  703. .step__body { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-32); align-items: start; }
  704. .step h3 { font-size: 24px; font-weight: 600; }
  705. .step p { color: var(--muted); font-size: 15px; margin-top: var(--s-8); line-height: 1.65; }
  706. .step__demo {
  707. border-radius: var(--r-md); border: 1px solid var(--edge);
  708. background: var(--surface-2); padding: var(--s-12);
  709. font-size: 13px; color: var(--ink-2); font-family: var(--f-mono);
  710. min-height: 96px; display: grid; align-content: center; gap: var(--s-8);
  711. }
  712. .step__demo .row { display: flex; align-items: center; gap: var(--s-8); }
  713. .step__demo .row i { color: var(--accent); }
  714. .step__demo .chip { padding: 1px var(--s-8); border-radius: var(--r-sm); background: var(--surface-4); font-size: 12px; }
  715. .step__demo .chip[data-on="true"] { background: var(--primary); color: var(--primary-ink); }
  716. .step__demo .dim { color: var(--faint); }
  717. .step__demo .caret-sm { width: 6px; height: 1em; background: var(--accent); display: inline-block; translate: 0 2px; animation: caret 1s steps(1) infinite; }
  718. /* ---------- 11. 实验室(Codex 级输出) ---------- */
  719. .lab { background: var(--surface); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
  720. .lab__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-16); margin-top: var(--s-48); }
  721. .lab__panel {
  722. border-radius: var(--r-lg);
  723. border: 1px solid var(--edge);
  724. background: var(--canvas);
  725. display: grid; grid-template-rows: auto 1fr;
  726. overflow: hidden;
  727. min-height: 320px;
  728. }
  729. .lab__panel > header {
  730. display: flex; align-items: center; gap: var(--s-8);
  731. padding: var(--s-12) var(--s-16);
  732. border-bottom: 1px solid var(--edge);
  733. font-size: 13px; color: var(--muted);
  734. }
  735. .lab__panel > header i { color: var(--accent); font-size: 16px; }
  736. .lab__panel > header .replay { margin-inline-start: auto; }
  737. .lab__panel > .body { padding: var(--s-16); overflow: hidden; }
  738. .lab__panel--wide { grid-column: 1 / -1; }
  739. .lab__note { margin-top: var(--s-16); color: var(--faint); font-size: 13px; display: flex; gap: var(--s-8); align-items: center; }
  740. /* 终端风打字(实验室 1) */
  741. .term { font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: var(--ink-2); white-space: pre-wrap; min-height: 180px; }
  742. .term .u { color: var(--accent); }
  743. .term .c { color: var(--faint); }
  744. /* 步骤流(实验室 2) */
  745. .steps-flow { display: grid; gap: var(--s-2); }
  746. .steps-flow .cx-tool { background: var(--surface); }
  747. /* 思考(实验室 3) */
  748. .reason { display: grid; gap: var(--s-12); }
  749. .reason__meta { display: flex; align-items: center; gap: var(--s-8); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
  750. .reason__text { font-size: 13px; line-height: 1.75; color: var(--muted); white-space: pre-wrap; min-height: 120px; }
  751. .reason__text em { color: var(--ink-2); font-style: normal; }
  752. /* diff(实验室 4) */
  753. /* ---------- 12. 产品预览(可点) ---------- */
  754. .preview { padding-block: var(--s-96); }
  755. .preview__shell {
  756. margin-top: var(--s-48);
  757. display: grid; grid-template-columns: 1fr 280px; gap: var(--s-24);
  758. align-items: start;
  759. }
  760. .device-desktop {
  761. border-radius: var(--r-lg);
  762. border: 1px solid var(--edge-strong);
  763. background: var(--surface);
  764. overflow: hidden;
  765. box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  766. height: 560px;
  767. display: grid; grid-template-rows: 36px 1fr;
  768. }
  769. .dd__bar {
  770. display: flex; align-items: center; gap: var(--s-8);
  771. padding-inline: var(--s-12);
  772. border-bottom: 1px solid var(--edge);
  773. background: var(--surface-2);
  774. }
  775. .urlbar {
  776. flex: 1; max-width: 320px; height: 22px; margin-inline: auto;
  777. display: flex; align-items: center; gap: var(--s-4);
  778. padding-inline: var(--s-8);
  779. border-radius: var(--r-full); background: var(--surface-4);
  780. font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  781. }
  782. .urlbar i { font-size: 11px; color: var(--success); }
  783. .dd__app { display: grid; grid-template-columns: 56px minmax(160px, 200px) minmax(0, 1fr); min-height: 0; }
  784. .appnav {
  785. border-right: 1px solid var(--edge); background: var(--surface-2);
  786. display: grid; align-content: start; gap: var(--s-4); padding: var(--s-8) 6px;
  787. }
  788. .appnav button {
  789. height: 40px; border-radius: var(--r-md);
  790. display: grid; place-items: center;
  791. color: var(--muted); font-size: 18px;
  792. transition: background-color var(--d-micro) var(--ease), color var(--d-micro) var(--ease);
  793. }
  794. .appnav button:hover { color: var(--ink); background: var(--surface-3); }
  795. .appnav button[aria-selected="true"] { color: var(--ink); background: var(--surface-4); }
  796. .applist { border-right: 1px solid var(--edge); display: grid; grid-template-rows: auto 1fr; min-height: 0; min-width: 0; }
  797. .applist__head { padding: var(--s-12); display: grid; gap: var(--s-8); border-bottom: 1px solid var(--edge); }
  798. .applist__head h4 { font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
  799. .applist__head h4 span { font-family: var(--f-mono); font-size: 11px; color: var(--faint); font-weight: 400; }
  800. .applist__head h4 .acts { display: flex; gap: var(--s-2); }
  801. .applist__head h4 .acts button { width: 22px; height: 22px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); font-size: 14px; }
  802. .applist__head h4 .acts button:hover { background: var(--surface-3); color: var(--ink); }
  803. .search {
  804. height: 30px; border-radius: var(--r-sm); border: 1px solid var(--edge);
  805. background: var(--surface-2); display: flex; align-items: center; gap: var(--s-4);
  806. padding-inline: var(--s-8); font-size: 12px; color: var(--faint);
  807. }
  808. .search i { font-size: 13px; }
  809. .applist__items { overflow-y: auto; padding: var(--s-4); display: grid; align-content: start; gap: var(--s-2); }
  810. .applist__items::-webkit-scrollbar { width: 6px; }
  811. .applist__items::-webkit-scrollbar-thumb { background: var(--surface-5); border-radius: 3px; }
  812. .li {
  813. width: 100%; text-align: left;
  814. display: grid; grid-template-columns: 30px 1fr auto; gap: var(--s-8); align-items: center;
  815. padding: var(--s-8); border-radius: var(--r-sm);
  816. transition: background-color var(--d-micro) var(--ease);
  817. }
  818. .li:hover { background: var(--surface-3); }
  819. .li[aria-current="true"] { background: var(--surface-4); }
  820. .li__av { width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--surface-5); color: var(--ink-2); }
  821. .li__av[data-lead="true"] { background: var(--primary); color: var(--primary-ink); }
  822. .li__t { min-width: 0; }
  823. .li__t b { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  824. .li__t span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  825. .li__m { display: grid; justify-items: end; gap: 2px; }
  826. .li__m time { font-family: var(--f-mono); font-size: 10px; color: var(--faint); }
  827. .li__m em { min-width: 16px; height: 16px; padding-inline: 4px; border-radius: var(--r-full); background: var(--accent); color: #fff; font-size: 10px; font-style: normal; display: grid; place-items: center; }
  828. .li__av[data-on] { position: relative; }
  829. .li__av[data-on]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: var(--r-full); background: var(--success); border: 2px solid var(--surface); }
  830. .appmain { display: grid; grid-template-rows: 44px 1fr auto; min-height: 0; min-width: 0; overflow: hidden; background: var(--canvas); }
  831. .appmain__head { display: flex; align-items: center; gap: var(--s-8); padding-inline: var(--s-16); border-bottom: 1px solid var(--edge); }
  832. .appmain__head b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  833. .appmain__head { min-width: 0; }
  834. .appmain__head .pill { flex-shrink: 0; }
  835. .appmain__head .pill { height: 20px; font-size: 10px; }
  836. .appmain__head .acts { margin-inline-start: auto; display: flex; gap: var(--s-2); }
  837. .appmain__head .acts button { width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); font-size: 15px; }
  838. .appmain__head .acts button:hover { background: var(--surface-3); color: var(--ink); }
  839. .appmain__body { overflow-y: auto; overflow-x: hidden; padding: var(--s-16); display: grid; align-content: start; gap: var(--s-12); min-width: 0; }
  840. .appmain__body * { overflow-wrap: anywhere; }
  841. .appmain__body::-webkit-scrollbar { width: 6px; }
  842. .appmain__body::-webkit-scrollbar-thumb { background: var(--surface-5); border-radius: 3px; }
  843. .composer {
  844. margin: var(--s-8) var(--s-16) var(--s-12);
  845. border-radius: var(--r-md); border: 1px solid var(--edge);
  846. background: var(--surface-2);
  847. padding: var(--s-8) var(--s-8) var(--s-4);
  848. }
  849. .composer textarea {
  850. width: 100%; resize: none; border: 0; outline: 0; background: transparent;
  851. color: var(--ink); font-family: var(--f-sans); font-size: 13px; line-height: 1.5;
  852. min-height: 40px; padding: var(--s-4);
  853. }
  854. .composer textarea::placeholder { color: var(--faint); }
  855. .composer__bar { display: flex; align-items: center; gap: var(--s-4); }
  856. .composer__bar button {
  857. width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center;
  858. color: var(--muted); font-size: 14px;
  859. }
  860. .composer__bar button:hover { background: var(--surface-3); color: var(--ink); }
  861. .composer__bar .send {
  862. margin-inline-start: auto; width: 30px; height: 26px; border-radius: var(--r-sm);
  863. background: var(--primary); color: var(--primary-ink);
  864. }
  865. .composer__bar .send:disabled { opacity: 0.35; }
  866. /* 内部视图:成果 / 运行态 / 任务 */
  867. .view { display: grid; gap: var(--s-8); }
  868. .view__title { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: var(--s-8); }
  869. .view__title .pill { margin-inline-start: auto; }
  870. .file-row {
  871. display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-8); align-items: center;
  872. padding: var(--s-8); border-radius: var(--r-sm); background: var(--surface-2);
  873. border: 1px solid var(--edge);
  874. }
  875. .file-row i { font-size: 17px; color: var(--accent); }
  876. .file-row b { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--ink); }
  877. .file-row span { font-size: 11px; color: var(--faint); }
  878. .file-row button { font-size: 14px; color: var(--muted); }
  879. .file-row button:hover { color: var(--ink); }
  880. .metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
  881. .metric {
  882. border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface-2); padding: var(--s-12);
  883. }
  884. .metric span { font-size: 11px; color: var(--muted); display: block; }
  885. .metric b { font-family: var(--f-mono); font-size: 20px; font-weight: 500; display: block; margin-top: var(--s-4); }
  886. .metric em { font-style: normal; font-size: 11px; color: var(--success); font-family: var(--f-mono); }
  887. .metric em[data-down="true"] { color: var(--danger); }
  888. .board { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
  889. .col { display: grid; gap: var(--s-8); align-content: start; }
  890. .col__h { font-size: 11px; color: var(--muted); font-family: var(--f-mono); display: flex; justify-content: space-between; }
  891. .tcard {
  892. border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--surface-2);
  893. padding: var(--s-8); font-size: 11.5px; display: grid; gap: var(--s-4);
  894. }
  895. .tcard b { font-weight: 500; color: var(--ink); font-size: 12px; }
  896. .tcard span { color: var(--faint); font-family: var(--f-mono); font-size: 10px; }
  897. .tcard .tag { justify-self: start; padding: 0 var(--s-4); border-radius: 4px; background: var(--surface-4); font-size: 10px; }
  898. /* 手机样机 */
  899. .phone {
  900. width: 280px; height: 560px; margin-inline: auto;
  901. border-radius: 40px; padding: 10px;
  902. background: var(--surface-4);
  903. border: 1px solid var(--edge-strong);
  904. box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  905. }
  906. .phone__screen {
  907. height: 100%; border-radius: 31px; overflow: hidden;
  908. background: var(--canvas);
  909. display: grid; grid-template-rows: auto 1fr auto;
  910. position: relative;
  911. }
  912. .phone__status { display: flex; justify-content: space-between; padding: 10px var(--s-16) 0; font-size: 10px; font-family: var(--f-mono); color: var(--ink-2); }
  913. .phone__nav { display: flex; align-items: center; justify-content: space-between; padding: var(--s-8) var(--s-16); font-size: 14px; font-weight: 600; }
  914. .phone__body { overflow-y: auto; padding: 0 var(--s-12) var(--s-8); display: grid; gap: var(--s-8); align-content: start; }
  915. .phone__body::-webkit-scrollbar { display: none; }
  916. .phone__tabs {
  917. margin: var(--s-4) var(--s-8) var(--s-8); height: 52px; border-radius: var(--r-full);
  918. background: var(--surface-4); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center;
  919. padding: 0 var(--s-4);
  920. }
  921. .phone__tabs button { display: grid; place-items: center; gap: 1px; font-size: 9px; color: var(--faint); }
  922. .phone__tabs button i { font-size: 18px; }
  923. .phone__tabs button[aria-selected="true"] { color: var(--ink); }
  924. .pcard {
  925. border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface-2);
  926. padding: var(--s-12); display: grid; gap: var(--s-4);
  927. }
  928. .pcard b { font-size: 12px; }
  929. .pcard span { font-size: 11px; color: var(--muted); }
  930. .pcard .row { display: flex; gap: var(--s-4); }
  931. .pcard .row em { font-size: 10px; font-style: normal; font-family: var(--f-mono); padding: 0 var(--s-4); border-radius: 4px; background: var(--surface-4); color: var(--ink-2); }
  932. .phone__hint { text-align: center; color: var(--faint); font-size: 12px; margin-top: var(--s-16); font-family: var(--f-mono); }
  933. /* ---------- 13. 数字 ---------- */
  934. .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-24); margin-top: var(--s-48); }
  935. .stat { display: grid; gap: var(--s-4); }
  936. .stat b { font-family: var(--f-mono); font-size: 48px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
  937. .stat span { color: var(--muted); font-size: 14px; }
  938. .stat em { font-style: normal; color: var(--accent); font-size: 14px; font-family: var(--f-mono); }
  939. /* ---------- 14. FAQ ---------- */
  940. .faq { display: grid; gap: 0; margin-top: var(--s-48); border-top: 1px solid var(--edge); }
  941. .faq details { border-bottom: 1px solid var(--edge); }
  942. .faq summary {
  943. display: flex; align-items: center; gap: var(--s-16);
  944. padding: var(--s-24) 0; cursor: pointer; list-style: none;
  945. font-size: 18px; font-weight: 500;
  946. transition: color var(--d-micro) var(--ease);
  947. }
  948. .faq summary::-webkit-details-marker { display: none; }
  949. .faq summary:hover { color: var(--accent); }
  950. .faq summary i { margin-inline-start: auto; font-size: 18px; color: var(--muted); transition: transform var(--d-base) var(--ease); }
  951. .faq details[open] summary i { transform: rotate(45deg); }
  952. .faq details > p { padding: 0 0 var(--s-24); color: var(--muted); font-size: 15px; max-width: 720px; line-height: 1.7; }
  953. /* ---------- 15. 页尾 CTA / 页脚 ---------- */
  954. .final { text-align: center; padding-block: var(--s-96); }
  955. .final h2 { font-size: 48px; letter-spacing: -0.04em; }
  956. .final p { margin-top: var(--s-16); color: var(--muted); font-size: 18px; }
  957. .final .hero__cta { margin-top: var(--s-32); }
  958. .footer { border-top: 1px solid var(--edge); padding-block: var(--s-48); }
  959. .footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-32); }
  960. .footer h5 { font-size: 13px; font-weight: 600; margin-bottom: var(--s-12); color: var(--ink); }
  961. .footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-8); }
  962. .footer a { color: var(--muted); font-size: 14px; transition: color var(--d-micro) var(--ease); }
  963. .footer a:hover { color: var(--ink); }
  964. .footer__brand p { color: var(--muted); font-size: 14px; margin-top: var(--s-12); max-width: 280px; }
  965. .footer__bottom { margin-top: var(--s-48); padding-top: var(--s-24); border-top: 1px solid var(--edge); display: flex; justify-content: space-between; gap: var(--s-16); flex-wrap: wrap; color: var(--faint); font-size: 13px; }
  966. /* ---------- 16. 通用交互残留 ---------- */
  967. .reveal { opacity: 0; transform: translateY(32px); }
  968. .reveal.is-in { opacity: 1; transform: none; transition: opacity var(--d-reveal) var(--ease), transform var(--d-reveal) var(--ease); }
  969. @keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
  970. .toast-area { position: fixed; right: var(--s-24); bottom: var(--s-24); z-index: 60; display: grid; gap: var(--s-8); }
  971. .toast {
  972. display: flex; align-items: center; gap: var(--s-8);
  973. padding: var(--s-12) var(--s-16); border-radius: var(--r-md);
  974. background: var(--surface-4); border: 1px solid var(--edge-strong);
  975. box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  976. font-size: 14px;
  977. animation: msgIn 300ms var(--ease) both;
  978. }
  979. .toast i { color: var(--success); }
  980. /* ---------- 17. 响应式 ---------- */
  981. @media (max-width: 1024px) {
  982. :root { --gutter: 20px; }
  983. h1.hero__title { font-size: 48px; }
  984. .manifesto__text { font-size: 36px; }
  985. h2.h2, .final h2 { font-size: 30px; }
  986. .preview__shell { grid-template-columns: 1fr; justify-items: center; }
  987. .device-desktop { width: 760px; zoom: calc(min(100%, 760px) / 760); }
  988. .stats { grid-template-columns: repeat(2, 1fr); }
  989. .stage__body { grid-template-columns: 1fr; }
  990. .stage__side { display: none; }
  991. }
  992. @media (max-width: 768px) {
  993. section { padding-block: var(--s-64); }
  994. .hero { padding-top: calc(var(--nav-h) + var(--s-64)); }
  995. h1.hero__title { font-size: 36px; letter-spacing: -0.035em; }
  996. .hero__sub, .lede { font-size: 16px; }
  997. .manifesto__text { font-size: 30px; }
  998. h2.h2, .final h2 { font-size: 24px; }
  999. .nav__links { display: none; }
  1000. .nav__toggle { display: grid; }
  1001. .nav[data-scrolled="false"] { background: color-mix(in srgb, var(--canvas) 66%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--edge); }
  1002. .nav { border-color: var(--edge); }
  1003. .nav__actions .btn--primary { display: none; }
  1004. .compare, .features, .lab__grid, .step__body { grid-template-columns: 1fr; }
  1005. .footer__grid { grid-template-columns: 1fr 1fr; }
  1006. .stage__bar .dots { display: none; }
  1007. .timeline { padding: var(--s-8) var(--s-12) var(--s-16); }
  1008. .cx-diff { font-size: 11px; }
  1009. .step { grid-template-columns: 1fr; gap: var(--s-16); }
  1010. .stats { gap: var(--s-16); }
  1011. .stat b { font-size: 36px; }
  1012. .toast-area { left: var(--s-16); right: var(--s-16); bottom: var(--s-16); }
  1013. }
  1014. @media (max-width: 420px) {
  1015. h1.hero__title { font-size: 30px; }
  1016. .manifesto__text { font-size: 24px; }
  1017. }
  1018. /* ---------- 18. 动效降级 ---------- */
  1019. @media (prefers-reduced-motion: reduce) {
  1020. *, *::before, *::after {
  1021. animation-duration: 1ms !important;
  1022. animation-iteration-count: 1 !important;
  1023. transition-duration: 1ms !important;
  1024. }
  1025. .reveal { opacity: 1; transform: none; }
  1026. .manifesto__text .w { opacity: 1; }
  1027. .caret, .caret-sm { display: none; }
  1028. .menu a { opacity: 1; transform: none; }
  1029. }