PlansSection.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  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. padding: 0 20px;
  82. box-sizing: border-box;
  83. display: flex;
  84. flex-direction: column;
  85. gap: 40px;
  86. .plans-cards {
  87. display: grid;
  88. grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  89. gap: 24px;
  90. }
  91. .plan-card {
  92. border-radius: 20px;
  93. background: rgba(255, 255, 255, 0.08);
  94. border: 1px solid rgba(178, 161, 255, 0.8);
  95. padding: 28px 24px;
  96. box-sizing: border-box;
  97. display: flex;
  98. flex-direction: column;
  99. gap: 14px;
  100. min-height: 380px;
  101. &:hover {
  102. border: 2px solid rgba(178, 161, 255, 0.9);
  103. box-shadow: 0 10px 30px rgba(125, 70, 255, 0.3);
  104. background: linear-gradient(1.67deg, rgba(165, 101, 255, 0.16) 0%, rgba(3, 0, 20, 0.1) 100%);
  105. .plan-actions .btn-primary {
  106. background: linear-gradient(91deg, #A39DFF 1.24%, #7D46FF 122.93%);
  107. }
  108. }
  109. // &.highlight {
  110. // }
  111. .plan-name {
  112. text-align: center;
  113. font-family: 'Roboto', sans-serif;
  114. font-size: 36px;
  115. font-weight: 700;
  116. line-height: 26px;
  117. color: #ffffff;
  118. }
  119. .plan-desc {
  120. text-align: center;
  121. font-family: 'Source Han Sans CN', sans-serif;
  122. font-size: 20px;
  123. font-weight: 400;
  124. line-height: 20px;
  125. color: #e0d3ff;
  126. }
  127. .old-price {
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. gap: 12px;
  132. del {
  133. color: #A39DFF;
  134. font-size: 20px;
  135. font-style: normal;
  136. font-weight: 500;
  137. line-height: 20px;
  138. }
  139. span {
  140. display: flex;
  141. border-radius: 17.5px;
  142. background: #7D46FF;
  143. color: #fff;
  144. width: 145px;
  145. height: 35px;
  146. justify-content: center;
  147. align-items: center;
  148. gap: 10px;
  149. }
  150. }
  151. .plan-price {
  152. font-family: 'Roboto', sans-serif;
  153. text-align: center;
  154. font-size: 65px;
  155. font-weight: 700;
  156. line-height: 65px;
  157. color: #ffffff;
  158. margin: 8px 0;
  159. }
  160. .plan-actions {
  161. display: flex;
  162. gap: 12px;
  163. align-items: center;
  164. .btn-primary {
  165. flex: 1;
  166. height: 44px;
  167. border-radius: 50px;
  168. background: linear-gradient(91deg, rgba(163, 157, 255, 0.20) 1.24%, rgba(125, 70, 255, 0.20) 122.93%);
  169. border: none;
  170. color: #fff;
  171. font-family: 'Source Han Sans CN', sans-serif;
  172. font-size: 24px;
  173. cursor: pointer;
  174. transition: opacity 0.3s ease;
  175. &:hover {
  176. opacity: 0.85;
  177. }
  178. }
  179. .btn-link {
  180. flex: 1;
  181. height: 44px;
  182. border-radius: 10px;
  183. border: 1px solid rgba(255, 255, 255, 0.5);
  184. background: transparent;
  185. color: #fff;
  186. font-family: 'Source Han Sans CN', sans-serif;
  187. font-size: 16px;
  188. cursor: pointer;
  189. transition: opacity 0.3s ease;
  190. &:hover {
  191. opacity: 0.8;
  192. }
  193. }
  194. }
  195. .plan-title {
  196. .plan-cs {
  197. margin: 22px 0;
  198. color: #fff;
  199. font-size: 20px;
  200. font-style: normal;
  201. font-weight: 600;
  202. line-height: 20px;
  203. }
  204. .plan-features {
  205. margin: 0;
  206. padding: 0;
  207. display: grid;
  208. grid-template-columns: repeat(2, 1fr);
  209. gap: 8px;
  210. li {
  211. position: relative;
  212. font-family: 'Source Han Sans CN', sans-serif;
  213. padding-left: 20px;
  214. font-size: 14px;
  215. font-weight: 400;
  216. line-height: 20px;
  217. color: #ffffff;
  218. &::before {
  219. content: "";
  220. position: absolute;
  221. left: 0;
  222. top: 50%;
  223. transform: translateY(-50%);
  224. width: 16px;
  225. height: 16px;
  226. border-radius: 50%;
  227. background-color: #a39dff;
  228. display: flex;
  229. align-items: center;
  230. justify-content: center;
  231. }
  232. &::after {
  233. position: absolute;
  234. left: 4px;
  235. top: 50%;
  236. transform: translateY(-50%);
  237. content: "✓";
  238. color: #fff;
  239. font-size: 10px;
  240. font-weight: bold;
  241. text-align: center;
  242. }
  243. }
  244. }
  245. }
  246. }
  247. }
  248. </style>