base.css 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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-img { display: block; width: auto; height: 34px; }
  138. .footer-brand .logo-img { height: 56px; }
  139. .site-header {
  140. position: sticky;
  141. top: 0;
  142. z-index: 60;
  143. background: rgba(246, 242, 233, 0.82);
  144. backdrop-filter: blur(18px);
  145. -webkit-backdrop-filter: blur(18px);
  146. border-bottom: 1px solid rgba(226, 218, 203, 0.7);
  147. }
  148. .site-header .container {
  149. height: 76px;
  150. display: flex;
  151. align-items: center;
  152. justify-content: space-between;
  153. gap: 30px;
  154. }
  155. .site-nav { display: flex; align-items: center; gap: 34px; }
  156. .site-nav a {
  157. position: relative;
  158. font-size: 13.5px;
  159. font-weight: 550;
  160. color: var(--ink-2);
  161. padding: 6px 0;
  162. }
  163. .site-nav a::after {
  164. content: "";
  165. position: absolute;
  166. left: 0;
  167. bottom: 0;
  168. width: 0;
  169. height: 1.5px;
  170. background: var(--accent);
  171. transition: width 0.3s var(--ease);
  172. }
  173. .site-nav a:hover::after { width: 100%; }
  174. .header-actions { display: flex; align-items: center; gap: 12px; }
  175. .header-link { font-size: 13px; font-weight: 550; color: var(--muted); }
  176. .header-link:hover { color: var(--ink); }
  177. a.header-link { text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
  178. .site-footer {
  179. background: var(--ink);
  180. color: var(--paper-2);
  181. padding: 70px 0 0;
  182. margin-top: 100px;
  183. }
  184. .footer-top {
  185. display: grid;
  186. grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  187. gap: 50px;
  188. padding-bottom: 60px;
  189. }
  190. .footer-brand p {
  191. margin-top: 22px;
  192. max-width: 300px;
  193. color: rgba(255, 253, 248, 0.55);
  194. font-size: 13px;
  195. line-height: 1.8;
  196. }
  197. .footer-col h4 {
  198. font-size: 11px;
  199. font-family: var(--font-mono);
  200. letter-spacing: 0.16em;
  201. color: rgba(255, 253, 248, 0.4);
  202. margin-bottom: 20px;
  203. font-weight: 500;
  204. }
  205. .footer-col a, .footer-col span {
  206. display: block;
  207. font-size: 13px;
  208. color: rgba(255, 253, 248, 0.78);
  209. margin-bottom: 12px;
  210. }
  211. .footer-col a:hover { color: var(--lime); }
  212. .footer-sub {
  213. border: 1px solid rgba(255, 253, 248, 0.16);
  214. border-radius: var(--radius-m);
  215. padding: 22px;
  216. }
  217. .footer-sub p { font-size: 13px; color: rgba(255, 253, 248, 0.6); margin-bottom: 16px; }
  218. .footer-sub .field { display: flex; gap: 8px; }
  219. .footer-sub input {
  220. flex: 1;
  221. height: 42px;
  222. border-radius: 999px;
  223. border: 1px solid rgba(255, 253, 248, 0.16);
  224. background: rgba(255, 253, 248, 0.06);
  225. color: var(--paper-2);
  226. padding: 0 16px;
  227. font-size: 12px;
  228. outline: none;
  229. }
  230. .footer-sub input::placeholder { color: rgba(255, 253, 248, 0.3); }
  231. .footer-sub button {
  232. width: 42px;
  233. height: 42px;
  234. border-radius: 50%;
  235. background: var(--lime);
  236. color: var(--ink);
  237. display: grid;
  238. place-items: center;
  239. }
  240. .footer-bottom {
  241. border-top: 1px solid rgba(255, 253, 248, 0.12);
  242. height: 78px;
  243. display: flex;
  244. align-items: center;
  245. justify-content: space-between;
  246. font-size: 11.5px;
  247. color: rgba(255, 253, 248, 0.4);
  248. font-family: var(--font-mono);
  249. letter-spacing: 0.04em;
  250. }
  251. .footer-bottom-links { display: flex; gap: 24px; }
  252. .footer-bottom a:hover { color: var(--lime); }
  253. .toast {
  254. position: fixed;
  255. left: 50%;
  256. bottom: 36px;
  257. transform: translate(-50%, 20px);
  258. background: var(--ink);
  259. color: var(--paper-2);
  260. padding: 13px 22px;
  261. border-radius: 999px;
  262. font-size: 13px;
  263. box-shadow: var(--shadow-l);
  264. opacity: 0;
  265. pointer-events: none;
  266. transition: opacity 0.3s, transform 0.3s var(--ease);
  267. z-index: 300;
  268. display: flex;
  269. align-items: center;
  270. gap: 9px;
  271. max-width: calc(100vw - 40px);
  272. }
  273. .toast.show { opacity: 1; transform: translate(-50%, 0); }
  274. .toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
  275. .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  276. .fade-up.in { opacity: 1; transform: none; }
  277. ::-webkit-scrollbar { width: 10px; height: 10px; }
  278. ::-webkit-scrollbar-track { background: transparent; }
  279. ::-webkit-scrollbar-thumb { background: #cfc5b4; border-radius: 99px; border: 3px solid var(--paper); }
  280. ::-webkit-scrollbar-thumb:hover { background: #b3a794; }
  281. @media (max-width: 1024px) {
  282. .container { width: calc(100% - 48px); }
  283. .site-nav { display: none; }
  284. .footer-top { grid-template-columns: 1fr 1fr; }
  285. }
  286. @media (max-width: 680px) {
  287. .container { width: calc(100% - 32px); }
  288. .header-actions .header-link { display: none; }
  289. .footer-top { grid-template-columns: 1fr; gap: 32px; }
  290. .footer-bottom { flex-direction: column; justify-content: center; gap: 10px; height: auto; padding: 24px 0; }
  291. .footer-bottom-links { gap: 16px; }
  292. .site-footer { margin-top: 60px; padding-top: 50px; }
  293. }
  294. /* AI 设计师 Agent 聊天窗 */
  295. #plAgentFab {
  296. position: fixed; right: 26px; bottom: 30px; z-index: 70;
  297. display: inline-flex; align-items: center; gap: 8px;
  298. border: 0; cursor: pointer; font-family: inherit;
  299. background: linear-gradient(135deg, #17140f, #3a332a); color: #fffdf8;
  300. border-radius: 999px; padding: 12px 20px; font-size: 13.5px; font-weight: 700;
  301. box-shadow: 0 14px 34px rgba(23,20,15,0.32); transition: transform 0.15s;
  302. }
  303. #plAgentFab:hover { transform: translateY(-2px); }
  304. .pl-agent-panel {
  305. position: fixed; right: 26px; bottom: 88px; z-index: 70; width: 400px; max-width: calc(100vw - 40px);
  306. background: #fffdf8; border: 1px solid #e2dacb; border-radius: 16px;
  307. box-shadow: 0 30px 70px rgba(23,20,15,0.22); display: flex; flex-direction: column;
  308. max-height: min(78vh, 720px); overflow: hidden;
  309. }
  310. .pl-agent-panel[hidden] { display: none; }
  311. .pl-agent-head {
  312. display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  313. border-bottom: 1px solid #efe9dc; background: #fffdf8;
  314. }
  315. .pl-agent-head b { font-size: 14.5px; display: block; }
  316. .pl-agent-head small { font-size: 10.5px; color: #a79d8d; display: block; margin-top: 2px; }
  317. .pl-agent-quota { font-size: 10.5px; color: #7d7466; background: #f6f2e9; border-radius: 999px; padding: 3px 9px; }
  318. .pl-agent-close { margin-left: auto; border: 0; background: none; cursor: pointer; color: #a79d8d; font-size: 14px; }
  319. .pl-agent-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
  320. .pl-agent-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.65; }
  321. .pl-agent-msg.ai { background: #f6f2e9; color: #2c271f; align-self: flex-start; border-bottom-left-radius: 4px; }
  322. .pl-agent-msg.user { background: #ff5c2b; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
  323. .pl-agent-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5c2b; margin-right: 6px; animation: plAgentBlink 1s infinite; }
  324. @keyframes plAgentBlink { 50% { opacity: 0.25; } }
  325. .pl-agent-preview { padding: 0 16px 8px; }
  326. .pl-agent-preview[hidden] { display: none; }
  327. .pl-agent-faces { display: flex; gap: 10px; justify-content: center; }
  328. .pl-agent-face { position: relative; width: 46%; border-radius: 10px; border: 1px solid #efe9dc; background: #fff; overflow: hidden; }
  329. .pl-agent-face svg { width: 100%; height: auto; display: block; }
  330. .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; }
  331. .pl-agent-boxfaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  332. .pl-agent-boxface { position: relative; border-radius: 8px; border: 1px solid #efe9dc; height: 64px; padding: 6px; overflow: hidden; }
  333. .pl-agent-boxface i { font-style: normal; font-size: 9.5px; color: #a79d8d; display: block; }
  334. .pl-agent-boxface b { font-size: 10.5px; color: #2c271f; line-height: 1.4; font-weight: 600; display: block; margin-top: 3px; }
  335. .pl-agent-state { padding: 0 16px 10px; }
  336. .pl-agent-state[hidden] { display: none; }
  337. .pl-agent-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  338. .pl-agent-chips span { font-size: 10.5px; color: #2c271f; background: #ffe0d2; border-radius: 999px; padding: 3px 10px; }
  339. .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; }
  340. .pl-agent-go:hover { background: #ff5c2b; }
  341. .pl-agent-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #efe9dc; }
  342. .pl-agent-input textarea {
  343. flex: 1; border: 1px solid #e2dacb; border-radius: 10px; padding: 9px; font-size: 12.5px;
  344. resize: none; font-family: inherit; background: #fff; color: #2c271f;
  345. }
  346. .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; }
  347. .pl-agent-send[disabled] { opacity: 0.55; }
  348. .pl-agent-step { font-size: 11.5px; color: #4f6b2f; padding: 1px 0; }
  349. .pl-agent-step.pending { color: #a79d8d; }
  350. /* Agent 聊天窗 · 盒 3D 预览 */
  351. .pl-agent-3d {
  352. position: relative; height: 200px; display: grid; place-items: center;
  353. perspective: 640px; cursor: grab; user-select: none; touch-action: none;
  354. border: 1px solid #efe9dc; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #fffdf8, #f6f2e9);
  355. overflow: hidden; outline: none;
  356. }
  357. .pl-agent-3d:active { cursor: grabbing; }
  358. .pl-agent-3d-inner { position: relative; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.05s linear; }
  359. .pl-agent-3d-face {
  360. position: absolute; left: 0; top: 0; transform-style: preserve-3d;
  361. backface-visibility: hidden; border: 1px solid rgba(43,38,32,0.16);
  362. border-radius: 2px; overflow: hidden;
  363. }
  364. .pv-text {
  365. position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  366. font-family: Georgia, "PingFang SC", serif; line-height: 1.3;
  367. }
  368. .pv-logo { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
  369. .pv-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  370. .pl-agent-3d-hint {
  371. position: absolute; bottom: 6px; right: 10px; font-size: 10px; color: #a79d8d;
  372. background: rgba(255,253,248,.85); border-radius: 6px; padding: 2px 8px; pointer-events: none;
  373. }
  374. /* AI 设计师图标(SVG 星芒,替代 emoji) */
  375. #plAgentFab svg { width: 18px; height: 18px; flex: none; }
  376. #plAgentFab span { line-height: 1; }
  377. .pl-agent-head b svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }