xinindex.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. /* 基础样式设置 */
  2. page {
  3. font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  4. position: relative;
  5. height: 100%;
  6. background-color: #fff5f5; /* 红色基调背景增强 */
  7. }
  8. .page-container {
  9. position: relative;
  10. min-height: 100vh;
  11. padding-bottom: 300rpx;
  12. overflow-x: hidden;
  13. }
  14. /* 搜索框样式 - 位置上移,为核心区域腾出空间 */
  15. .sousuo {
  16. background-color: rgba(255, 255, 255, 0.9);
  17. backdrop-filter: blur(10rpx);
  18. border: 2rpx solid #FFCDD2;
  19. display: flex;
  20. height: 80rpx;
  21. margin: 20rpx 30rpx 10rpx; /* 减少底部距离 */
  22. border-radius: 40rpx;
  23. align-items: center;
  24. padding: 0 20rpx;
  25. position: relative;
  26. z-index: 2;
  27. box-shadow: 0 4rpx 12rpx rgba(211, 47, 47, 0.15);
  28. }
  29. /* 红途定制核心区域 - 居中放大突出 */
  30. .red-custom-core {
  31. /* 居中放大布局 */
  32. width: calc(100% - 60rpx); /* 几乎全屏宽度 */
  33. margin: 20rpx auto 40rpx; /* 居中显示,增加底部距离 */
  34. padding: 40rpx 30rpx; /* 增加内边距 */
  35. background: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
  36. border-radius: 24rpx; /* 更大圆角 */
  37. box-shadow: 0 10rpx 30rpx rgba(211, 47, 47, 0.15); /* 强化阴影 */
  38. position: relative;
  39. overflow: hidden;
  40. z-index: 3; /* 提高层级 */
  41. }
  42. /* 装饰元素增强 */
  43. .red-custom-core::before {
  44. content: '';
  45. position: absolute;
  46. top: -50rpx;
  47. right: -50rpx;
  48. width: 250rpx;
  49. height: 250rpx;
  50. background: url('/images/star-pattern.png') no-repeat;
  51. background-size: contain;
  52. opacity: 0.15;
  53. z-index: 1;
  54. }
  55. .red-custom-core::after {
  56. content: '';
  57. position: absolute;
  58. bottom: -30rpx;
  59. left: -30rpx;
  60. width: 200rpx;
  61. height: 200rpx;
  62. background: url('/images/red-pattern.png') no-repeat;
  63. background-size: contain;
  64. opacity: 0.1;
  65. z-index: 1;
  66. }
  67. /* 核心区域标题强化 */
  68. .custom-header {
  69. display: flex;
  70. align-items: center;
  71. margin-bottom: 35rpx; /* 增加间距 */
  72. position: relative;
  73. z-index: 2;
  74. }
  75. .custom-icon {
  76. width: 100rpx; /* 放大图标 */
  77. height: 100rpx;
  78. margin-right: 25rpx;
  79. background-color: rgba(255, 255, 255, 0.8);
  80. border-radius: 20rpx;
  81. padding: 15rpx;
  82. box-shadow: 0 4rpx 10rpx rgba(211, 47, 47, 0.2);
  83. }
  84. .custom-title {
  85. font-size: 44rpx; /* 放大标题 */
  86. font-weight: bold;
  87. color: #D32F2F;
  88. line-height: 1.3;
  89. }
  90. .custom-subtitle {
  91. font-size: 28rpx;
  92. color: #792828;
  93. margin-top: 8rpx;
  94. opacity: 0.9;
  95. }
  96. /* 定制选项卡增强 */
  97. .custom-tabs {
  98. display: flex;
  99. margin-bottom: 35rpx; /* 增加间距 */
  100. border-radius: 18rpx;
  101. overflow: hidden;
  102. background: rgba(255, 255, 255, 0.7);
  103. backdrop-filter: blur(8rpx);
  104. }
  105. .custom-tab {
  106. flex: 1;
  107. padding: 20rpx 0; /* 增加高度 */
  108. font-size: 30rpx; /* 放大文字 */
  109. font-weight: 500;
  110. }
  111. .custom-tab.active {
  112. background-color: #D32F2F;
  113. color: white;
  114. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15) inset;
  115. }
  116. /* 定制选项内容区 */
  117. .custom-options {
  118. display: flex;
  119. flex-wrap: wrap;
  120. gap: 15rpx;
  121. margin-bottom: 35rpx;
  122. z-index: 2;
  123. position: relative;
  124. }
  125. .custom-option-item {
  126. background-color: rgba(255, 255, 255, 0.8);
  127. border: 1rpx solid #FFCDD2;
  128. border-radius: 15rpx;
  129. padding: 12rpx 20rpx;
  130. font-size: 26rpx;
  131. color: #666;
  132. }
  133. .custom-option-item.active {
  134. background-color: #D32F2F;
  135. color: white;
  136. border-color: #D32F2F;
  137. }
  138. /* 主按钮强化 */
  139. .quick-custom-btn {
  140. background-color: #D32F2F;
  141. color: white;
  142. border-radius: 35rpx; /* 更大圆角 */
  143. padding: 22rpx 0; /* 增加高度 */
  144. font-size: 32rpx; /* 放大文字 */
  145. font-weight: bold;
  146. text-align: center;
  147. margin-top: 10rpx;
  148. box-shadow: 0 6rpx 20rpx rgba(211, 47, 47, 0.3);
  149. transition: all 0.3s;
  150. position: relative;
  151. z-index: 2;
  152. }
  153. .quick-custom-btn::after {
  154. content: '→';
  155. margin-left: 10rpx;
  156. font-size: 28rpx;
  157. animation: arrowMove 1.5s infinite;
  158. }
  159. @keyframes arrowMove {
  160. 0%, 100% { transform: translateX(0); }
  161. 50% { transform: translateX(5rpx); }
  162. }
  163. .quick-custom-btn:active {
  164. background-color: #b71c1c;
  165. transform: scale(0.98);
  166. box-shadow: 0 4rpx 15rpx rgba(211, 47, 47, 0.25);
  167. }
  168. /* 菜单容器下移 */
  169. .menu {
  170. margin: 10rpx 30rpx 30rpx; /* 减少顶部距离 */
  171. }
  172. /* 菜单项调整 - 红途定制相关突出 */
  173. .item {
  174. width: 170rpx;
  175. height: 170rpx;
  176. margin-bottom: 20rpx;
  177. }
  178. /* 红途定制菜单项特殊样式 */
  179. .item.red-custom {
  180. /* 显著放大 */
  181. width: 185rpx;
  182. height: 185rpx;
  183. background: linear-gradient(135deg, #fff0f0 0%, #ffebee 100%);
  184. border: 2rpx solid #FFCDD2;
  185. box-shadow: 0 6rpx 20rpx rgba(211, 47, 47, 0.15);
  186. transform: translateY(-5rpx); /* 轻微上浮 */
  187. }
  188. .item.red-custom::before {
  189. content: "热门";
  190. position: absolute;
  191. top: 10rpx;
  192. right: 10rpx;
  193. background-color: #ff4d4f;
  194. color: white;
  195. font-size: 20rpx;
  196. padding: 3rpx 10rpx;
  197. border-radius: 10rpx;
  198. z-index: 2;
  199. box-shadow: 0 2rpx 5rpx rgba(0, 0, 0, 0.1);
  200. }
  201. .item.red-custom .img {
  202. background: rgba(211, 47, 47, 0.2);
  203. transform: scale(1.1);
  204. }
  205. .item.red-custom .title {
  206. color: #D32F2F;
  207. font-weight: bold;
  208. font-size: 28rpx;
  209. }
  210. /* 其他区域样式弱化处理 */
  211. .background-overlay {
  212. opacity: 0.8; /* 降低背景强度 */
  213. }
  214. /* 故事会区域下移并弱化 */
  215. .story-container {
  216. margin: 20rpx 30rpx 0;
  217. opacity: 0.95;
  218. }
  219. .section-title {
  220. font-size: 34rpx;
  221. margin: 15rpx 0 25rpx 20rpx;
  222. }
  223. /* VR容器弱化 */
  224. .vr-container {
  225. margin: 20rpx 0;
  226. opacity: 0.95;
  227. }
  228. /* 动态特征区域下移 */
  229. .dynamic-features {
  230. margin: 20rpx 30rpx 30rpx;
  231. }
  232. /* 悬浮按钮关联红途定制 */
  233. .float-container {
  234. position: fixed;
  235. right: 30rpx;
  236. bottom: 120rpx;
  237. }
  238. .float-btn.custom-btn {
  239. width: 120rpx;
  240. height: 120rpx;
  241. background-color: #D32F2F;
  242. border-radius: 50%;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. box-shadow: 0 6rpx 20rpx rgba(211, 47, 47, 0.4);
  247. animation: pulse 2s infinite;
  248. }
  249. .float-btn.custom-btn .icon {
  250. color: white;
  251. font-size: 60rpx;
  252. }
  253. @keyframes pulse {
  254. 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  255. 70% { box-shadow: 0 0 0 20rpx rgba(211, 47, 47, 0); }
  256. 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
  257. }
  258. /* 其他原有样式保持不变 */
  259. .hero-gradient {
  260. background: linear-gradient(
  261. to bottom,
  262. transparent 0%,
  263. rgba(255,255,255,0.3) 30%,
  264. rgba(255,255,255,0.7) 70%,
  265. #FFFFFF 100%
  266. );
  267. }
  268. .story-scroll {
  269. width: 100%;
  270. white-space: nowrap;
  271. }
  272. .story-list {
  273. display: inline-flex;
  274. }
  275. .story-card {
  276. display: inline-flex;
  277. width: 400rpx;
  278. height: 300rpx;
  279. margin-right: 24rpx;
  280. position: relative;
  281. overflow: hidden;
  282. border-radius: 12rpx;
  283. box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.08);
  284. transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  285. }
  286. .vr-scroll {
  287. width: 100%;
  288. white-space: nowrap;
  289. margin-top: 20rpx;
  290. }
  291. .vr-list {
  292. display: inline-flex;
  293. }
  294. .vr-card {
  295. display: inline-block;
  296. width: 280rpx;
  297. margin-right: 20rpx;
  298. border-radius: 12rpx;
  299. overflow: hidden;
  300. box-shadow: 0 4rpx 12rpx rgba(0,0,0,0.1);
  301. background: #fff;
  302. }
  303. .custom-modal {
  304. position: fixed;
  305. top: 0;
  306. left: 0;
  307. right: 0;
  308. bottom: 0;
  309. background: rgba(0,0,0,0.8);
  310. z-index: 1000;
  311. display: flex;
  312. justify-content: center;
  313. align-items: center;
  314. }