base.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. :root {
  2. --paper: #f6f2e9;
  3. --paper-2: #fbf8f1;
  4. --paper-3: #efe9dc;
  5. --ink: #17140f;
  6. --ink-2: #2c271f;
  7. --muted: #7d7466;
  8. --muted-2: #a79d8d;
  9. --line: #e2dacb;
  10. --line-2: #d3c9b7;
  11. --accent: #ff5c2b;
  12. --accent-dark: #e64718;
  13. --accent-soft: #ffe0d2;
  14. --lime: #d9f07c;
  15. --lime-dark: #b9d24e;
  16. --sage: #1e3a2c;
  17. --blue: #bfe3f2;
  18. --white: #fffdf8;
  19. --radius-s: 10px;
  20. --radius-m: 16px;
  21. --radius-l: 24px;
  22. --radius-xl: 34px;
  23. --shadow-s: 0 2px 10px rgba(32, 24, 12, 0.06);
  24. --shadow-m: 0 14px 40px rgba(32, 24, 12, 0.1);
  25. --shadow-l: 0 30px 80px rgba(32, 24, 12, 0.16);
  26. --font: "SF Pro SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  27. --font-serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  28. --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  29. --font-latin: "Helvetica Neue", "Arial", sans-serif;
  30. --ease: cubic-bezier(0.22, 1, 0.36, 1);
  31. }
  32. * { box-sizing: border-box; }
  33. html {
  34. scroll-behavior: smooth;
  35. -webkit-text-size-adjust: 100%;
  36. }
  37. body {
  38. margin: 0;
  39. background: var(--paper);
  40. color: var(--ink);
  41. font-family: var(--font);
  42. font-size: 15px;
  43. line-height: 1.6;
  44. -webkit-font-smoothing: antialiased;
  45. text-rendering: optimizeLegibility;
  46. }
  47. body.no-scroll { overflow: hidden; }
  48. a { color: inherit; text-decoration: none; }
  49. button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
  50. input, select, textarea { font: inherit; color: inherit; }
  51. img, svg { display: block; max-width: 100%; }
  52. h1, h2, h3, h4, p, figure { margin: 0; }
  53. ul, ol { margin: 0; padding: 0; list-style: none; }
  54. ::selection { background: var(--accent); color: #fff; }
  55. .container {
  56. width: min(1280px, calc(100% - 88px));
  57. margin: 0 auto;
  58. }
  59. .btn {
  60. display: inline-flex;
  61. align-items: center;
  62. justify-content: center;
  63. gap: 9px;
  64. height: 50px;
  65. padding: 0 26px;
  66. border-radius: 999px;
  67. font-size: 14px;
  68. font-weight: 650;
  69. letter-spacing: 0.01em;
  70. white-space: nowrap;
  71. transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
  72. }
  73. .btn:hover { transform: translateY(-2px); }
  74. .btn:active { transform: translateY(0); }
  75. .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(255, 92, 43, 0.26); }
  76. .btn-primary:hover { background: var(--accent-dark); box-shadow: 0 14px 32px rgba(255, 92, 43, 0.32); }
  77. .btn-ink { background: var(--ink); color: var(--paper-2); }
  78. .btn-ink:hover { background: #2c271f; }
  79. .btn-ghost { border: 1px solid var(--line-2); background: transparent; }
  80. .btn-ghost:hover { background: var(--white); border-color: var(--ink); }
  81. .btn-lime { background: var(--lime); color: var(--ink); }
  82. .btn-lime:hover { background: #e5f79a; }
  83. .btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
  84. .btn-lg { height: 58px; padding: 0 34px; font-size: 15px; }
  85. .btn[disabled] { opacity: 0.45; pointer-events: none; }
  86. .icon {
  87. width: 18px;
  88. height: 18px;
  89. stroke: currentColor;
  90. stroke-width: 1.7;
  91. fill: none;
  92. stroke-linecap: round;
  93. stroke-linejoin: round;
  94. flex: none;
  95. }
  96. .eyebrow {
  97. display: inline-flex;
  98. align-items: center;
  99. gap: 10px;
  100. font-family: var(--font-mono);
  101. font-size: 11px;
  102. letter-spacing: 0.18em;
  103. text-transform: uppercase;
  104. color: var(--muted);
  105. }
  106. .eyebrow::before {
  107. content: "";
  108. width: 26px;
  109. height: 1px;
  110. background: currentColor;
  111. opacity: 0.5;
  112. }
  113. .tag {
  114. display: inline-flex;
  115. align-items: center;
  116. gap: 6px;
  117. height: 26px;
  118. padding: 0 11px;
  119. border: 1px solid var(--line);
  120. border-radius: 999px;
  121. background: var(--paper-2);
  122. font-size: 11px;
  123. font-weight: 550;
  124. color: var(--ink-2);
  125. white-space: nowrap;
  126. }
  127. .tag-accent { background: var(--accent-soft); border-color: rgba(255, 92, 43, 0.25); color: var(--accent-dark); }
  128. .tag-lime { background: var(--lime); border-color: transparent; }
  129. .tag-dark { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
  130. .logo {
  131. display: inline-flex;
  132. align-items: center;
  133. gap: 11px;
  134. font-weight: 800;
  135. letter-spacing: -0.02em;
  136. }
  137. .logo-mark {
  138. width: 36px;
  139. height: 36px;
  140. border-radius: 11px;
  141. background: var(--accent);
  142. display: grid;
  143. place-items: center;
  144. flex: none;
  145. box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  146. }
  147. .logo-mark svg { width: 21px; height: 21px; }
  148. .logo-type { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
  149. .logo-type b { font-size: 17px; letter-spacing: 0.02em; }
  150. .logo-type span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.22em; color: var(--muted); }
  151. .site-header {
  152. position: sticky;
  153. top: 0;
  154. z-index: 60;
  155. background: rgba(246, 242, 233, 0.82);
  156. backdrop-filter: blur(18px);
  157. -webkit-backdrop-filter: blur(18px);
  158. border-bottom: 1px solid rgba(226, 218, 203, 0.7);
  159. }
  160. .site-header .container {
  161. height: 76px;
  162. display: flex;
  163. align-items: center;
  164. justify-content: space-between;
  165. gap: 30px;
  166. }
  167. .site-nav { display: flex; align-items: center; gap: 34px; }
  168. .site-nav a {
  169. position: relative;
  170. font-size: 13.5px;
  171. font-weight: 550;
  172. color: var(--ink-2);
  173. padding: 6px 0;
  174. }
  175. .site-nav a::after {
  176. content: "";
  177. position: absolute;
  178. left: 0;
  179. bottom: 0;
  180. width: 0;
  181. height: 1.5px;
  182. background: var(--accent);
  183. transition: width 0.3s var(--ease);
  184. }
  185. .site-nav a:hover::after { width: 100%; }
  186. .header-actions { display: flex; align-items: center; gap: 12px; }
  187. .header-link { font-size: 13px; font-weight: 550; color: var(--muted); }
  188. .header-link:hover { color: var(--ink); }
  189. a.header-link { text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
  190. .site-footer {
  191. background: var(--ink);
  192. color: var(--paper-2);
  193. padding: 70px 0 0;
  194. margin-top: 100px;
  195. }
  196. .footer-top {
  197. display: grid;
  198. grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  199. gap: 50px;
  200. padding-bottom: 60px;
  201. }
  202. .footer-brand .logo-mark { background: var(--accent); }
  203. .footer-brand .logo-type span { color: rgba(255, 253, 248, 0.45); }
  204. .footer-brand p {
  205. margin-top: 22px;
  206. max-width: 300px;
  207. color: rgba(255, 253, 248, 0.55);
  208. font-size: 13px;
  209. line-height: 1.8;
  210. }
  211. .footer-col h4 {
  212. font-size: 11px;
  213. font-family: var(--font-mono);
  214. letter-spacing: 0.16em;
  215. color: rgba(255, 253, 248, 0.4);
  216. margin-bottom: 20px;
  217. font-weight: 500;
  218. }
  219. .footer-col a, .footer-col span {
  220. display: block;
  221. font-size: 13px;
  222. color: rgba(255, 253, 248, 0.78);
  223. margin-bottom: 12px;
  224. }
  225. .footer-col a:hover { color: var(--lime); }
  226. .footer-sub {
  227. border: 1px solid rgba(255, 253, 248, 0.16);
  228. border-radius: var(--radius-m);
  229. padding: 22px;
  230. }
  231. .footer-sub p { font-size: 13px; color: rgba(255, 253, 248, 0.6); margin-bottom: 16px; }
  232. .footer-sub .field { display: flex; gap: 8px; }
  233. .footer-sub input {
  234. flex: 1;
  235. height: 42px;
  236. border-radius: 999px;
  237. border: 1px solid rgba(255, 253, 248, 0.16);
  238. background: rgba(255, 253, 248, 0.06);
  239. color: var(--paper-2);
  240. padding: 0 16px;
  241. font-size: 12px;
  242. outline: none;
  243. }
  244. .footer-sub input::placeholder { color: rgba(255, 253, 248, 0.3); }
  245. .footer-sub button {
  246. width: 42px;
  247. height: 42px;
  248. border-radius: 50%;
  249. background: var(--lime);
  250. color: var(--ink);
  251. display: grid;
  252. place-items: center;
  253. }
  254. .footer-bottom {
  255. border-top: 1px solid rgba(255, 253, 248, 0.12);
  256. height: 78px;
  257. display: flex;
  258. align-items: center;
  259. justify-content: space-between;
  260. font-size: 11.5px;
  261. color: rgba(255, 253, 248, 0.4);
  262. font-family: var(--font-mono);
  263. letter-spacing: 0.04em;
  264. }
  265. .footer-bottom-links { display: flex; gap: 24px; }
  266. .footer-bottom a:hover { color: var(--lime); }
  267. .toast {
  268. position: fixed;
  269. left: 50%;
  270. bottom: 36px;
  271. transform: translate(-50%, 20px);
  272. background: var(--ink);
  273. color: var(--paper-2);
  274. padding: 13px 22px;
  275. border-radius: 999px;
  276. font-size: 13px;
  277. box-shadow: var(--shadow-l);
  278. opacity: 0;
  279. pointer-events: none;
  280. transition: opacity 0.3s, transform 0.3s var(--ease);
  281. z-index: 300;
  282. display: flex;
  283. align-items: center;
  284. gap: 9px;
  285. max-width: calc(100vw - 40px);
  286. }
  287. .toast.show { opacity: 1; transform: translate(-50%, 0); }
  288. .toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
  289. .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  290. .fade-up.in { opacity: 1; transform: none; }
  291. ::-webkit-scrollbar { width: 10px; height: 10px; }
  292. ::-webkit-scrollbar-track { background: transparent; }
  293. ::-webkit-scrollbar-thumb { background: #cfc5b4; border-radius: 99px; border: 3px solid var(--paper); }
  294. ::-webkit-scrollbar-thumb:hover { background: #b3a794; }
  295. @media (max-width: 1024px) {
  296. .container { width: calc(100% - 48px); }
  297. .site-nav { display: none; }
  298. .footer-top { grid-template-columns: 1fr 1fr; }
  299. }
  300. @media (max-width: 680px) {
  301. .container { width: calc(100% - 32px); }
  302. .header-actions .header-link { display: none; }
  303. .footer-top { grid-template-columns: 1fr; gap: 32px; }
  304. .footer-bottom { flex-direction: column; justify-content: center; gap: 10px; height: auto; padding: 24px 0; }
  305. .footer-bottom-links { gap: 16px; }
  306. .site-footer { margin-top: 60px; padding-top: 50px; }
  307. }
  308. /* AI 设计师 Agent 聊天窗 */
  309. #plAgentFab {
  310. position: fixed; right: 26px; bottom: 30px; z-index: 70;
  311. display: inline-flex; align-items: center; gap: 8px;
  312. border: 0; cursor: pointer; font-family: inherit;
  313. background: linear-gradient(135deg, #17140f, #3a332a); color: #fffdf8;
  314. border-radius: 999px; padding: 12px 20px; font-size: 13.5px; font-weight: 700;
  315. box-shadow: 0 14px 34px rgba(23,20,15,0.32); transition: transform 0.15s;
  316. }
  317. #plAgentFab:hover { transform: translateY(-2px); }
  318. .pl-agent-panel {
  319. position: fixed; right: 26px; bottom: 88px; z-index: 70; width: 400px; max-width: calc(100vw - 40px);
  320. background: #fffdf8; border: 1px solid #e2dacb; border-radius: 16px;
  321. box-shadow: 0 30px 70px rgba(23,20,15,0.22); display: flex; flex-direction: column;
  322. max-height: min(78vh, 720px); overflow: hidden;
  323. }
  324. .pl-agent-panel[hidden] { display: none; }
  325. .pl-agent-head {
  326. display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  327. border-bottom: 1px solid #efe9dc; background: #fffdf8;
  328. }
  329. .pl-agent-head b { font-size: 14.5px; display: block; }
  330. .pl-agent-head small { font-size: 10.5px; color: #a79d8d; display: block; margin-top: 2px; }
  331. .pl-agent-quota { font-size: 10.5px; color: #7d7466; background: #f6f2e9; border-radius: 999px; padding: 3px 9px; }
  332. .pl-agent-close { margin-left: auto; border: 0; background: none; cursor: pointer; color: #a79d8d; font-size: 14px; }
  333. .pl-agent-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
  334. .pl-agent-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.65; }
  335. .pl-agent-msg.ai { background: #f6f2e9; color: #2c271f; align-self: flex-start; border-bottom-left-radius: 4px; }
  336. .pl-agent-msg.user { background: #ff5c2b; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
  337. .pl-agent-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5c2b; margin-right: 6px; animation: plAgentBlink 1s infinite; }
  338. @keyframes plAgentBlink { 50% { opacity: 0.25; } }
  339. .pl-agent-preview { padding: 0 16px 8px; }
  340. .pl-agent-preview[hidden] { display: none; }
  341. .pl-agent-faces { display: flex; gap: 10px; justify-content: center; }
  342. .pl-agent-face { position: relative; width: 46%; border-radius: 10px; border: 1px solid #efe9dc; background: #fff; overflow: hidden; }
  343. .pl-agent-face svg { width: 100%; height: auto; display: block; }
  344. .pl-agent-face i { position: absolute; left: 8px; bottom: 6px; font-style: normal; font-size: 10px; color: #a79d8d; background: rgba(255,253,248,.8); border-radius: 6px; padding: 1px 6px; }
  345. .pl-agent-boxfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  346. .pl-agent-boxface { position: relative; border-radius: 8px; border: 1px solid #efe9dc; height: 64px; padding: 6px; overflow: hidden; }
  347. .pl-agent-boxface i { font-style: normal; font-size: 9.5px; color: #a79d8d; display: block; }
  348. .pl-agent-boxface b { font-size: 10.5px; color: #2c271f; line-height: 1.4; font-weight: 600; display: block; margin-top: 3px; }
  349. .pl-agent-state { padding: 0 16px 10px; }
  350. .pl-agent-state[hidden] { display: none; }
  351. .pl-agent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  352. .pl-agent-chips span { font-size: 10.5px; color: #2c271f; background: #ffe0d2; border-radius: 999px; padding: 3px 10px; }
  353. .pl-agent-go { display: block; text-align: center; margin-top: 8px; background: #17140f; color: #fffdf8; border-radius: 10px; padding: 9px; font-size: 12.5px; font-weight: 700; text-decoration: none; }
  354. .pl-agent-go:hover { background: #ff5c2b; }
  355. .pl-agent-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #efe9dc; }
  356. .pl-agent-input textarea {
  357. flex: 1; border: 1px solid #e2dacb; border-radius: 10px; padding: 9px; font-size: 12.5px;
  358. resize: none; font-family: inherit; background: #fff; color: #2c271f;
  359. }
  360. .pl-agent-send { border: 0; background: #ff5c2b; color: #fff; border-radius: 10px; padding: 0 16px; cursor: pointer; font-weight: 700; font-size: 13px; font-family: inherit; }
  361. .pl-agent-send[disabled] { opacity: 0.55; }
  362. .pl-agent-step { font-size: 11.5px; color: #4f6b2f; padding: 1px 0; }
  363. .pl-agent-step.pending { color: #a79d8d; }
  364. /* Agent 聊天窗 · 盒 3D 预览 */
  365. .pl-agent-3d {
  366. position: relative; height: 200px; display: grid; place-items: center;
  367. perspective: 640px; cursor: grab; user-select: none; touch-action: none;
  368. border: 1px solid #efe9dc; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #fffdf8, #f6f2e9);
  369. overflow: hidden; outline: none;
  370. }
  371. .pl-agent-3d:active { cursor: grabbing; }
  372. .pl-agent-3d-inner { position: relative; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.05s linear; }
  373. .pl-agent-3d-face {
  374. position: absolute; left: 0; top: 0; transform-style: preserve-3d;
  375. backface-visibility: hidden; border: 1px solid rgba(43,38,32,0.16);
  376. border-radius: 2px; overflow: hidden;
  377. }
  378. .pv-text {
  379. position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  380. font-family: Georgia, "PingFang SC", serif; line-height: 1.3;
  381. }
  382. .pv-logo { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
  383. .pv-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  384. .pl-agent-3d-hint {
  385. position: absolute; bottom: 6px; right: 10px; font-size: 10px; color: #a79d8d;
  386. background: rgba(255,253,248,.85); border-radius: 6px; padding: 2px 8px; pointer-events: none;
  387. }
  388. /* AI 设计师图标(SVG 星芒,替代 emoji) */
  389. #plAgentFab svg { width: 18px; height: 18px; flex: none; }
  390. #plAgentFab span { line-height: 1; }
  391. .pl-agent-head b svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }