faq.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. /* pages/faq/faq.wxss */
  2. .container {
  3. padding: 20rpx;
  4. background-color: #f7f7f7;
  5. min-height: 100vh;
  6. }
  7. .header {
  8. display: flex;
  9. flex-direction: column;
  10. align-items: center;
  11. margin-bottom: 30rpx;
  12. }
  13. .header-image {
  14. width: 100%;
  15. border-radius: 16rpx;
  16. margin-bottom: 20rpx;
  17. }
  18. .title {
  19. font-size: 36rpx;
  20. font-weight: bold;
  21. color: #333;
  22. }
  23. .search-bar {
  24. display: flex;
  25. margin: 20rpx 0 30rpx;
  26. }
  27. .search-input {
  28. flex: 1;
  29. background-color: #fff;
  30. padding: 20rpx;
  31. border-radius: 8rpx 0 0 8rpx;
  32. font-size: 28rpx;
  33. }
  34. .search-btn {
  35. width: 160rpx;
  36. background-color: #1a73e8;
  37. color: white;
  38. border-radius: 0 8rpx 8rpx 0;
  39. font-size: 28rpx;
  40. display: flex;
  41. align-items: center;
  42. justify-content: center;
  43. }
  44. .faq-category {
  45. margin-bottom: 30rpx;
  46. background-color: #fff;
  47. border-radius: 16rpx;
  48. overflow: hidden;
  49. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
  50. }
  51. .category-title {
  52. padding: 20rpx 30rpx;
  53. font-size: 32rpx;
  54. font-weight: bold;
  55. color: #1a73e8;
  56. background-color: #f0f7ff;
  57. }
  58. .faq-item {
  59. padding: 0 30rpx;
  60. border-bottom: 1rpx solid #eee;
  61. }
  62. .faq-item:last-child {
  63. border-bottom: none;
  64. }
  65. .question {
  66. display: flex;
  67. justify-content: space-between;
  68. align-items: center;
  69. padding: 25rpx 0;
  70. font-size: 28rpx;
  71. color: #333;
  72. }
  73. .arrow {
  74. width: 30rpx;
  75. height: 30rpx;
  76. }
  77. .answer {
  78. padding: 0 0 25rpx;
  79. font-size: 26rpx;
  80. color: #666;
  81. line-height: 1.6;
  82. }
  83. .contact-us {
  84. text-align: center;
  85. margin: 40rpx 0;
  86. font-size: 28rpx;
  87. color: #666;
  88. }
  89. .contact-btn {
  90. width: 200rpx;
  91. margin-top: 20rpx;
  92. background-color: #1a73e8;
  93. color: white;
  94. font-size: 28rpx;
  95. }
  96. /* pages/faq/faq.wxss */
  97. .modal {
  98. z-index: 9999;
  99. }
  100. .modal-content {
  101. padding: 30rpx;
  102. font-size: 30rpx;
  103. line-height: 1.6;
  104. color: #333;
  105. }
  106. /* 保持原有样式 */
  107. .container {
  108. padding: 20rpx;
  109. }
  110. .faq-item {
  111. margin-bottom: 20rpx;
  112. padding: 25rpx;
  113. background: #fff;
  114. border-radius: 12rpx;
  115. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
  116. }
  117. .question {
  118. font-size: 30rpx;
  119. color: #333;
  120. }
  121. .category-title {
  122. font-size: 32rpx;
  123. font-weight: bold;
  124. margin: 40rpx 0 20rpx;
  125. color: #1a73e8;
  126. }
  127. /* pages/faq/faq.wxss */
  128. /* 新增模态框样式 */
  129. .modal-mask {
  130. position: fixed;
  131. top: 0;
  132. left: 0;
  133. right: 0;
  134. bottom: 0;
  135. background: rgba(0, 0, 0, 0.5);
  136. z-index: 999;
  137. }
  138. .modal-container {
  139. position: fixed;
  140. top: 50%;
  141. left: 50%;
  142. transform: translate(-50%, -50%);
  143. width: 80%;
  144. background: #fff;
  145. border-radius: 16rpx;
  146. z-index: 1000;
  147. box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.2);
  148. }
  149. .modal-header {
  150. padding: 30rpx;
  151. border-bottom: 1rpx solid #eee;
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. }
  156. .modal-title {
  157. font-size: 32rpx;
  158. font-weight: bold;
  159. color: #333;
  160. }
  161. .modal-close {
  162. font-size: 40rpx;
  163. color: #999;
  164. }
  165. .modal-content {
  166. padding: 30rpx;
  167. max-height: 60vh;
  168. overflow-y: auto;
  169. font-size: 28rpx;
  170. line-height: 1.6;
  171. color: #666;
  172. }
  173. .modal-footer {
  174. padding: 20rpx;
  175. display: flex;
  176. justify-content: center;
  177. border-top: 1rpx solid #eee;
  178. }
  179. .modal-btn {
  180. width: 80%;
  181. background: #1a73e8;
  182. color: #fff;
  183. border-radius: 8rpx;
  184. }
  185. /* 保持原有样式 */
  186. .container {
  187. padding: 20rpx;
  188. }
  189. .faq-item {
  190. margin-bottom: 20rpx;
  191. padding: 25rpx;
  192. background: #fff;
  193. border-radius: 12rpx;
  194. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
  195. }
  196. .question {
  197. font-size: 30rpx;
  198. color: #333;
  199. }
  200. .category-title {
  201. font-size: 32rpx;
  202. font-weight: bold;
  203. margin: 40rpx 0 20rpx;
  204. color: #1a73e8;
  205. }