公司官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.6 KiB

3 months ago
  1. :root {
  2. font-family: 'Roboto', 'Open Sans', system-ui, Avenir, Helvetica, Arial, sans-serif;
  3. line-height: 1.5;
  4. font-weight: 400;
  5. color-scheme: light dark;
  6. color: #333333;
  7. background-color: #ffffff;
  8. font-synthesis: none;
  9. text-rendering: optimizeLegibility;
  10. -webkit-font-smoothing: antialiased;
  11. -moz-osx-font-smoothing: grayscale;
  12. }
  13. /* 自定义变量 */
  14. :root {
  15. --primary-color: #0066cc; /* 科技蓝 */
  16. --secondary-color: #333333; /* 深灰 */
  17. --accent-color: #00aaff; /* 亮色点缀 */
  18. --background-color: #ffffff; /* 白色 */
  19. --text-color: #333333; /* 文本颜色 */
  20. }
  21. /* 基础样式 */
  22. body {
  23. margin: 0;
  24. padding: 0;
  25. font-family: 'Roboto', 'Open Sans', sans-serif;
  26. color: var(--text-color);
  27. background-color: var(--background-color);
  28. overflow-x: hidden; /* 防止水平滚动条 */
  29. }
  30. a {
  31. color: var(--primary-color);
  32. text-decoration: none;
  33. transition: color 0.3s ease;
  34. }
  35. a:hover {
  36. color: var(--accent-color);
  37. }
  38. /* 容器样式 */
  39. .container {
  40. width: 100%;
  41. max-width: 1200px;
  42. margin: 0 auto;
  43. padding: 0 1rem;
  44. }
  45. /* 视差滚动相关样式 */
  46. .parallax-container {
  47. position: relative;
  48. overflow: hidden;
  49. height: 100vh;
  50. }
  51. .parallax-bg {
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. width: 100%;
  56. height: 120%;
  57. background-size: cover;
  58. background-position: center;
  59. transform: translateZ(0);
  60. will-change: transform;
  61. }
  62. /* 响应式设计 */
  63. @media (max-width: 768px) {
  64. .container {
  65. padding: 0 1.5rem;
  66. }
  67. }
  68. /* 动画过渡效果 */
  69. .fade-enter-active,
  70. .fade-leave-active {
  71. transition: opacity 0.5s ease;
  72. }
  73. .fade-enter-from,
  74. .fade-leave-to {
  75. opacity: 0;
  76. }