styles.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. /* 全局样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. body {
  8. font-family: 'Noto Sans SC', sans-serif;
  9. line-height: 1.6;
  10. color: #333;
  11. }
  12. /* 导航栏样式 */
  13. .header {
  14. background-color: #fff;
  15. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  16. position: fixed;
  17. width: 100%;
  18. top: 0;
  19. z-index: 1000;
  20. }
  21. .nav {
  22. max-width: 1200px;
  23. margin: 0 auto;
  24. padding: 1rem;
  25. display: flex;
  26. justify-content: space-between;
  27. align-items: center;
  28. }
  29. .logo {
  30. font-size: 1.5rem;
  31. font-weight: 700;
  32. color: #2563eb;
  33. }
  34. .nav-links {
  35. display: flex;
  36. list-style: none;
  37. gap: 2rem;
  38. }
  39. .nav-links a {
  40. text-decoration: none;
  41. color: #333;
  42. font-weight: 500;
  43. transition: color 0.3s;
  44. }
  45. .nav-links a:hover {
  46. color: #2563eb;
  47. }
  48. /* 英雄区域样式 */
  49. .hero {
  50. padding: 8rem 2rem 4rem;
  51. background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  52. display: flex;
  53. align-items: center;
  54. justify-content: space-between;
  55. max-width: 1200px;
  56. margin: 0 auto;
  57. }
  58. .hero-content {
  59. flex: 1;
  60. padding-right: 2rem;
  61. }
  62. .hero h1 {
  63. font-size: 2.5rem;
  64. margin-bottom: 1rem;
  65. color: #1e40af;
  66. }
  67. .hero p {
  68. font-size: 1.2rem;
  69. color: #64748b;
  70. margin-bottom: 2rem;
  71. }
  72. .cta-button {
  73. background-color: #2563eb;
  74. color: white;
  75. padding: 1rem 2rem;
  76. border: none;
  77. border-radius: 0.5rem;
  78. font-size: 1.1rem;
  79. cursor: pointer;
  80. transition: background-color 0.3s;
  81. text-decoration: none;
  82. display: inline-block;
  83. }
  84. .cta-button:hover {
  85. background-color: #1d4ed8;
  86. color: white;
  87. text-decoration: none;
  88. }
  89. .hero-image {
  90. flex: 1;
  91. }
  92. .hero-image img {
  93. max-width: 100%;
  94. border-radius: 1rem;
  95. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  96. }
  97. /* 功能特点样式 */
  98. .features {
  99. padding: 4rem 2rem;
  100. max-width: 1200px;
  101. margin: 0 auto;
  102. }
  103. .features h2 {
  104. text-align: center;
  105. font-size: 2rem;
  106. margin-bottom: 3rem;
  107. color: #1e40af;
  108. }
  109. .feature-grid {
  110. display: grid;
  111. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  112. gap: 2rem;
  113. }
  114. .feature-card {
  115. background: white;
  116. padding: 2rem;
  117. border-radius: 1rem;
  118. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  119. text-align: center;
  120. transition: transform 0.3s;
  121. }
  122. .feature-card:hover {
  123. transform: translateY(-5px);
  124. }
  125. .feature-icon {
  126. font-size: 2.5rem;
  127. margin-bottom: 1rem;
  128. }
  129. .feature-card h3 {
  130. color: #1e40af;
  131. margin-bottom: 1rem;
  132. }
  133. /* 安全保障样式 */
  134. .security {
  135. padding: 4rem 2rem;
  136. background-color: #f8fafc;
  137. }
  138. .security h2 {
  139. text-align: center;
  140. font-size: 2rem;
  141. margin-bottom: 3rem;
  142. color: #1e40af;
  143. }
  144. .security-content {
  145. max-width: 1200px;
  146. margin: 0 auto;
  147. padding: 2rem;
  148. background: white;
  149. border-radius: 1rem;
  150. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  151. }
  152. .security-text {
  153. width: 100%;
  154. }
  155. .security-text h3 {
  156. color: #1e40af;
  157. margin-bottom: 2rem;
  158. font-size: 1.5rem;
  159. text-align: center;
  160. }
  161. .security-text ul {
  162. list-style: none;
  163. margin-bottom: 2rem;
  164. }
  165. .security-text li {
  166. margin-bottom: 1rem;
  167. padding-left: 1.5rem;
  168. position: relative;
  169. color: #4b5563;
  170. line-height: 1.8;
  171. }
  172. .security-text li::before {
  173. content: "✓";
  174. color: #2563eb;
  175. position: absolute;
  176. left: 0;
  177. font-weight: bold;
  178. }
  179. .security-highlight {
  180. background: #f0f9ff;
  181. padding: 2rem;
  182. border-radius: 0.5rem;
  183. margin-top: 2rem;
  184. }
  185. .security-highlight p {
  186. color: #1e40af;
  187. font-weight: 600;
  188. margin-bottom: 1rem;
  189. font-size: 1.2rem;
  190. }
  191. .security-highlight ul {
  192. margin-bottom: 0;
  193. }
  194. .security-highlight li {
  195. color: #2563eb;
  196. font-weight: 500;
  197. }
  198. .security-image {
  199. flex: 1;
  200. }
  201. .security-image img {
  202. max-width: 100%;
  203. border-radius: 1rem;
  204. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  205. }
  206. /* 价格方案样式 */
  207. .pricing {
  208. padding: 4rem 2rem;
  209. max-width: 1200px;
  210. margin: 0 auto;
  211. }
  212. .pricing h2 {
  213. text-align: center;
  214. font-size: 2rem;
  215. margin-bottom: 3rem;
  216. color: #1e40af;
  217. }
  218. .pricing-grid {
  219. display: grid;
  220. grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  221. gap: 2rem;
  222. }
  223. .pricing-card {
  224. background: white;
  225. padding: 2rem;
  226. border-radius: 1rem;
  227. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  228. text-align: center;
  229. transition: transform 0.3s;
  230. }
  231. .pricing-card.featured {
  232. transform: scale(1.05);
  233. border: 2px solid #2563eb;
  234. }
  235. .pricing-card:hover {
  236. transform: translateY(-5px);
  237. }
  238. .pricing-card h3 {
  239. color: #1e40af;
  240. margin-bottom: 1rem;
  241. }
  242. .price {
  243. font-size: 2rem;
  244. font-weight: 700;
  245. color: #2563eb;
  246. margin-bottom: 1rem;
  247. }
  248. .pricing-card ul {
  249. list-style: none;
  250. margin: 2rem 0;
  251. }
  252. .pricing-card li {
  253. margin-bottom: 0.5rem;
  254. color: #64748b;
  255. }
  256. .pricing-button {
  257. background-color: #2563eb;
  258. color: white;
  259. padding: 0.8rem 1.5rem;
  260. border: none;
  261. border-radius: 0.5rem;
  262. cursor: pointer;
  263. transition: background-color 0.3s;
  264. width: 100%;
  265. text-decoration: none;
  266. display: inline-block;
  267. text-align: center;
  268. }
  269. .pricing-button:hover {
  270. background-color: #1d4ed8;
  271. color: white;
  272. text-decoration: none;
  273. }
  274. /* 联系我们样式 */
  275. .contact {
  276. padding: 4rem 2rem;
  277. background-color: #f8fafc;
  278. }
  279. .contact h2 {
  280. text-align: center;
  281. font-size: 2rem;
  282. margin-bottom: 3rem;
  283. color: #1e40af;
  284. }
  285. .contact-content {
  286. max-width: 600px;
  287. margin: 0 auto;
  288. }
  289. .contact-form {
  290. display: flex;
  291. flex-direction: column;
  292. gap: 1rem;
  293. margin-bottom: 2rem;
  294. }
  295. .contact-form input,
  296. .contact-form textarea {
  297. padding: 1rem;
  298. border: 1px solid #e2e8f0;
  299. border-radius: 0.5rem;
  300. font-size: 1rem;
  301. }
  302. .contact-form textarea {
  303. height: 150px;
  304. resize: vertical;
  305. }
  306. .submit-button {
  307. background-color: #2563eb;
  308. color: white;
  309. padding: 1rem;
  310. border: none;
  311. border-radius: 0.5rem;
  312. font-size: 1.1rem;
  313. cursor: pointer;
  314. transition: background-color 0.3s;
  315. }
  316. .submit-button:hover {
  317. background-color: #1d4ed8;
  318. }
  319. .contact-info {
  320. text-align: center;
  321. padding: 2rem;
  322. background: white;
  323. border-radius: 1rem;
  324. box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  325. }
  326. .contact-info p {
  327. margin-bottom: 1rem;
  328. color: #64748b;
  329. }
  330. .contact-info .warning {
  331. color: #dc2626;
  332. font-weight: 500;
  333. margin-top: 1rem;
  334. padding: 1rem;
  335. background: #fee2e2;
  336. border-radius: 0.5rem;
  337. }
  338. /* 页脚样式 */
  339. .footer {
  340. background-color: #1e40af;
  341. color: white;
  342. padding: 4rem 2rem 2rem;
  343. }
  344. .footer-content {
  345. max-width: 1200px;
  346. margin: 0 auto;
  347. display: grid;
  348. grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  349. gap: 2rem;
  350. }
  351. .footer-section h4 {
  352. margin-bottom: 1rem;
  353. }
  354. .footer-section p {
  355. margin-bottom: 0.5rem;
  356. color: rgba(255,255,255,0.8);
  357. }
  358. .footer-link {
  359. color: rgba(255,255,255,0.8);
  360. text-decoration: none;
  361. transition: color 0.3s ease;
  362. }
  363. .footer-link:hover {
  364. color: #60a5fa;
  365. }
  366. .footer-bottom {
  367. text-align: center;
  368. margin-top: 2rem;
  369. padding-top: 2rem;
  370. border-top: 1px solid rgba(255,255,255,0.1);
  371. }
  372. /* 响应式设计 */
  373. @media (max-width: 768px) {
  374. .hero {
  375. flex-direction: column;
  376. text-align: center;
  377. padding-top: 6rem;
  378. }
  379. .hero-content {
  380. padding-right: 0;
  381. margin-bottom: 2rem;
  382. }
  383. .security-content {
  384. flex-direction: column;
  385. }
  386. .pricing-card.featured {
  387. transform: none;
  388. }
  389. }
  390. @media (max-width: 480px) {
  391. .nav {
  392. flex-direction: column;
  393. gap: 1rem;
  394. }
  395. .nav-links {
  396. flex-direction: column;
  397. text-align: center;
  398. gap: 1rem;
  399. }
  400. }