PlansSection.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <template>
  2. <section class="plans-section">
  3. <div class="plans-cards">
  4. <div class="plan-card">
  5. <div class="plan-name">Lite Plan</div>
  6. <div class="plan-desc">适合项目上线初期集成</div>
  7. <div class="old-price">
  8. <del>$1500</del>
  9. <span>节省20.04%</span>
  10. </div>
  11. <div class="plan-price">$999</div>
  12. <div class="plan-actions">
  13. <button class="btn-primary">立即选择</button>
  14. </div>
  15. <div class="plan-title">
  16. <div class="plan-cs">详细参数</div>
  17. <ul class="plan-features">
  18. <li>防护目标数:3个</li>
  19. <li>峰值设备数:200</li>
  20. <li>智能BGP线路</li>
  21. <li>带宽峰值:20M</li>
  22. <li>DDoS防御:无上限</li>
  23. <li>CC防御:100%</li>
  24. </ul>
  25. </div>
  26. </div>
  27. <div class="plan-card">
  28. <div class="plan-name">Basic Plan</div>
  29. <div class="plan-desc">最经济实惠的个人开发者套餐</div>
  30. <div class="old-price">
  31. <del>$2500</del>
  32. <span>节省20.04%</span>
  33. </div>
  34. <div class="plan-price">$1999</div>
  35. <div class="plan-actions">
  36. <button class="btn-primary">立即选择</button>
  37. </div>
  38. <div class="plan-title">
  39. <div class="plan-cs">详细参数</div>
  40. <ul class="plan-features">
  41. <li>防护目标数:10个</li>
  42. <li>峰值设备数:2000</li>
  43. <li>智能CN2/BGP线路</li>
  44. <li>带宽峰值:50M</li>
  45. <li>DDoS防御:无上限</li>
  46. <li>CC防御:100%</li>
  47. </ul>
  48. </div>
  49. </div>
  50. <div class="plan-card">
  51. <div class="plan-name">Standard Plan</div>
  52. <div class="plan-desc">企业入门级畅销精选套餐</div>
  53. <div class="old-price">
  54. <del>$6000</del>
  55. <span>节省16.68%</span>
  56. </div>
  57. <div class="plan-price">$4999</div>
  58. <div class="plan-actions">
  59. <button class="btn-primary ghost">立即选择</button>
  60. </div>
  61. <div class="plan-title">
  62. <div class="plan-cs">详细参数</div>
  63. <ul class="plan-features">
  64. <li>防护目标数:15个</li>
  65. <li>峰值设备数:10000</li>
  66. <li>智能CN2/BGP线路</li>
  67. <li>带宽峰值:80M</li>
  68. <li>DDoS防御:无上限</li>
  69. <li>CC防御:100%</li>
  70. </ul>
  71. </div>
  72. </div>
  73. </div>
  74. </section>
  75. </template>
  76. <style scoped lang="scss">
  77. .plans-section {
  78. width: 100%;
  79. max-width: 1200px;
  80. margin: 0 auto 0;
  81. position: relative;
  82. padding: 0 20px;
  83. box-sizing: border-box;
  84. display: flex;
  85. flex-direction: column;
  86. gap: 40px;
  87. z-index: 1;
  88. .plans-cards {
  89. display: grid;
  90. grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  91. gap: 24px;
  92. }
  93. .plan-card {
  94. border-radius: 20px;
  95. background: rgba(255, 255, 255, 0.08);
  96. padding: 45px 24px;
  97. box-sizing: border-box;
  98. display: flex;
  99. flex-direction: column;
  100. height: 608px;
  101. transition: transform .3s ease;
  102. &:hover {
  103. border: 2px solid rgba(178, 161, 255, 0.80);
  104. background: linear-gradient(180deg, rgba(146, 116, 254, 0.20) 0%, rgba(125, 70, 255, 0.20) 100%);
  105. transform: translateY(-5px);
  106. .plan-actions .btn-primary {
  107. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  108. }
  109. }
  110. .plan-name {
  111. text-align: center;
  112. font-size: 36px;
  113. font-weight: 700;
  114. line-height: 26px;
  115. color: #ffffff;
  116. }
  117. .plan-desc {
  118. margin-top: 40px;
  119. text-align: center;
  120. font-size: 20px;
  121. font-weight: 400;
  122. line-height: 20px;
  123. color: #e0d3ff;
  124. }
  125. .old-price {
  126. margin-top: 20px;
  127. display: flex;
  128. justify-content: center;
  129. align-items: center;
  130. gap: 12px;
  131. del {
  132. color: #A39DFF;
  133. font-size: 20px;
  134. font-style: normal;
  135. font-weight: 500;
  136. line-height: 20px;
  137. }
  138. span {
  139. display: flex;
  140. border-radius: 17.5px;
  141. background: #7D46FF;
  142. color: #fff;
  143. width: 145px;
  144. height: 35px;
  145. justify-content: center;
  146. align-items: center;
  147. gap: 10px;
  148. }
  149. }
  150. .plan-price {
  151. padding: 42px;
  152. text-align: center;
  153. font-size: 65px;
  154. font-weight: 700;
  155. line-height: 65px;
  156. color: #ffffff;
  157. margin: 8px 0;
  158. }
  159. .plan-actions {
  160. display: flex;
  161. gap: 12px;
  162. align-items: center;
  163. .btn-primary {
  164. flex: 1;
  165. height: 64px;
  166. border-radius: 50px;
  167. background: linear-gradient(91deg, rgba(163, 157, 255, 0.20) 1.24%, rgba(125, 70, 255, 0.20) 122.93%);
  168. border: none;
  169. color: #fff;
  170. font-size: 24px;
  171. cursor: pointer;
  172. transition: opacity 0.3s ease;
  173. &:hover {
  174. opacity: 0.85;
  175. }
  176. }
  177. }
  178. .plan-title {
  179. .plan-cs {
  180. margin: 22px 0;
  181. color: #fff;
  182. font-size: 20px;
  183. font-style: normal;
  184. font-weight: 600;
  185. line-height: 20px;
  186. }
  187. .plan-features {
  188. margin: 0;
  189. padding: 0;
  190. display: grid;
  191. grid-template-columns: repeat(2, 1fr);
  192. gap: 15px;
  193. li {
  194. position: relative;
  195. padding-left: 20px;
  196. font-size: 14px;
  197. font-weight: 400;
  198. line-height: 20px;
  199. color: rgba(255, 255, 255, 0.6);
  200. &::before {
  201. content: "";
  202. position: absolute;
  203. left: 0;
  204. top: 50%;
  205. transform: translateY(-50%);
  206. width: 16px;
  207. height: 16px;
  208. border-radius: 50%;
  209. background-color: #a39dff;
  210. display: flex;
  211. align-items: center;
  212. justify-content: center;
  213. }
  214. &::after {
  215. content: "✓";
  216. position: absolute;
  217. left: 4px;
  218. top: 50%;
  219. transform: translateY(-50%);
  220. color: #fff;
  221. font-size: 10px;
  222. font-weight: bold;
  223. text-align: center;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. </style>