home.component.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. /* 首页样式 */
  2. .home-page {
  3. max-width: 414px;
  4. margin: 0 auto;
  5. background: #fff;
  6. min-height: 100vh;
  7. box-shadow: 0 0 30px rgba(0,0,0,0.3);
  8. position: relative;
  9. }
  10. /* 头部导航 */
  11. .header {
  12. background: linear-gradient(45deg, #ff6b6b, #ffa726);
  13. padding: 20px 20px 15px;
  14. color: white;
  15. position: relative;
  16. overflow: hidden;
  17. }
  18. .header::before {
  19. content: '';
  20. position: absolute;
  21. top: -50%;
  22. left: -50%;
  23. width: 200%;
  24. height: 200%;
  25. background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  26. animation: float 20s infinite linear;
  27. }
  28. @keyframes float {
  29. 0% { transform: translate(-50%, -50%) rotate(0deg); }
  30. 100% { transform: translate(-50%, -50%) rotate(360deg); }
  31. }
  32. .header-content {
  33. position: relative;
  34. z-index: 2;
  35. }
  36. .header h1 {
  37. font-size: 28px;
  38. font-weight: 700;
  39. margin-bottom: 5px;
  40. text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  41. }
  42. .header p {
  43. opacity: 0.9;
  44. font-size: 14px;
  45. }
  46. /* 主要内容区域 */
  47. .main-content {
  48. padding-bottom: 100px; /* 增加底部padding确保内容不被底部导航遮挡 */
  49. }
  50. /* 轮播区域 */
  51. .banner-section {
  52. position: relative;
  53. height: 200px;
  54. overflow: hidden;
  55. margin: 20px;
  56. border-radius: 20px;
  57. box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  58. }
  59. .banner-slider {
  60. display: flex;
  61. transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  62. height: 100%;
  63. }
  64. .banner-slide {
  65. min-width: 100%;
  66. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. color: white;
  71. font-size: 18px;
  72. font-weight: 600;
  73. position: relative;
  74. overflow: hidden;
  75. cursor: pointer;
  76. transition: transform 0.3s ease;
  77. }
  78. .banner-slide:hover {
  79. transform: scale(0.98);
  80. }
  81. .banner-slide::before {
  82. content: '';
  83. position: absolute;
  84. top: 0;
  85. left: 0;
  86. right: 0;
  87. bottom: 0;
  88. background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></linearGradient></defs><polygon points="0,0 100,0 0,100" fill="url(%23grad)"/></svg>');
  89. pointer-events: none;
  90. }
  91. .banner-indicators {
  92. position: absolute;
  93. bottom: 15px;
  94. left: 50%;
  95. transform: translateX(-50%);
  96. display: flex;
  97. gap: 8px;
  98. }
  99. .indicator {
  100. width: 8px;
  101. height: 8px;
  102. border-radius: 50%;
  103. background: rgba(255,255,255,0.5);
  104. cursor: pointer;
  105. transition: all 0.3s ease;
  106. }
  107. .indicator.active {
  108. background: white;
  109. transform: scale(1.2);
  110. }
  111. /* 快速设计入口 */
  112. .quick-design {
  113. margin: 20px;
  114. padding: 25px;
  115. background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
  116. border-radius: 20px;
  117. text-align: center;
  118. box-shadow: 0 8px 25px rgba(255, 154, 158, 0.4);
  119. position: relative;
  120. overflow: hidden;
  121. cursor: pointer;
  122. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  123. }
  124. .quick-design:hover {
  125. transform: translateY(-5px);
  126. box-shadow: 0 15px 35px rgba(255, 154, 158, 0.6);
  127. }
  128. .quick-design::before {
  129. content: '✨';
  130. position: absolute;
  131. top: 15px;
  132. right: 20px;
  133. font-size: 24px;
  134. animation: sparkle 2s infinite;
  135. }
  136. @keyframes sparkle {
  137. 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  138. 50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
  139. }
  140. .quick-design h2 {
  141. font-size: 22px;
  142. color: #fff;
  143. margin-bottom: 8px;
  144. text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  145. }
  146. .quick-design p {
  147. color: rgba(255,255,255,0.9);
  148. font-size: 14px;
  149. }
  150. /* 热门作品区 */
  151. .popular-works {
  152. margin: 20px;
  153. }
  154. .section-title {
  155. font-size: 20px;
  156. font-weight: 700;
  157. margin-bottom: 15px;
  158. color: #333;
  159. position: relative;
  160. padding-left: 15px;
  161. }
  162. .section-title::before {
  163. content: '';
  164. position: absolute;
  165. left: 0;
  166. top: 50%;
  167. transform: translateY(-50%);
  168. width: 4px;
  169. height: 20px;
  170. background: linear-gradient(45deg, #ff6b6b, #ffa726);
  171. border-radius: 2px;
  172. }
  173. .works-grid {
  174. display: grid;
  175. grid-template-columns: repeat(2, 1fr);
  176. gap: 15px;
  177. }
  178. .work-item {
  179. background: #fff;
  180. border-radius: 15px;
  181. overflow: hidden;
  182. box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  183. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  184. cursor: pointer;
  185. }
  186. .work-item:hover {
  187. transform: translateY(-8px);
  188. box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  189. }
  190. .work-image {
  191. height: 120px;
  192. background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
  193. position: relative;
  194. display: flex;
  195. align-items: center;
  196. justify-content: center;
  197. font-size: 36px;
  198. }
  199. .work-info {
  200. padding: 12px;
  201. }
  202. .work-title {
  203. font-size: 14px;
  204. font-weight: 600;
  205. margin-bottom: 4px;
  206. color: #333;
  207. }
  208. .work-stats {
  209. display: flex;
  210. justify-content: space-between;
  211. font-size: 12px;
  212. color: #666;
  213. }
  214. /* AI推荐引擎样式 */
  215. .ai-recommend-engine {
  216. margin: 20px;
  217. }
  218. .ai-engine-card {
  219. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  220. border-radius: 20px;
  221. padding: 25px;
  222. color: white;
  223. box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  224. }
  225. .ai-engine-header {
  226. display: flex;
  227. justify-content: space-between;
  228. align-items: center;
  229. margin-bottom: 20px;
  230. }
  231. .ai-brand {
  232. display: flex;
  233. align-items: center;
  234. gap: 12px;
  235. }
  236. .ai-logo {
  237. font-size: 32px;
  238. animation: pulse 2s infinite;
  239. }
  240. .ai-brand-text h3 {
  241. font-size: 20px;
  242. margin: 0 0 4px 0;
  243. font-weight: 700;
  244. }
  245. .ai-brand-text p {
  246. font-size: 14px;
  247. opacity: 0.9;
  248. margin: 0;
  249. }
  250. .ai-status {
  251. display: flex;
  252. align-items: center;
  253. gap: 6px;
  254. font-size: 12px;
  255. opacity: 0.9;
  256. }
  257. .status-dot {
  258. width: 8px;
  259. height: 8px;
  260. background: #4ade80;
  261. border-radius: 50%;
  262. animation: pulse 2s infinite;
  263. }
  264. @keyframes pulse {
  265. 0%, 100% { transform: scale(1); }
  266. 50% { transform: scale(1.1); }
  267. }
  268. .ai-quick-actions {
  269. display: grid;
  270. grid-template-columns: repeat(2, 1fr);
  271. gap: 12px;
  272. margin-bottom: 20px;
  273. }
  274. .quick-action {
  275. background: rgba(255,255,255,0.15);
  276. border-radius: 15px;
  277. padding: 15px 12px;
  278. display: flex;
  279. align-items: center;
  280. gap: 10px;
  281. cursor: pointer;
  282. transition: all 0.3s ease;
  283. backdrop-filter: blur(10px);
  284. min-height: 50px;
  285. text-align: left;
  286. }
  287. .quick-action:hover {
  288. background: rgba(255,255,255,0.25);
  289. transform: translateY(-2px);
  290. box-shadow: 0 5px 15px rgba(255,255,255,0.1);
  291. }
  292. .action-icon {
  293. font-size: 20px;
  294. }
  295. .action-text {
  296. font-size: 14px;
  297. font-weight: 500;
  298. }
  299. /* 移动端适配 */
  300. @media (max-width: 768px) {
  301. .home-page {
  302. max-width: 100%;
  303. }
  304. .works-grid {
  305. grid-template-columns: repeat(2, 1fr);
  306. }
  307. .ai-quick-actions {
  308. grid-template-columns: repeat(2, 1fr);
  309. }
  310. }
  311. @media (max-width: 380px) {
  312. .ai-quick-actions {
  313. grid-template-columns: 1fr;
  314. }
  315. .quick-action {
  316. justify-content: center;
  317. text-align: center;
  318. }
  319. }