index.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .header1-page {
  2. width: 100%;
  3. height: 70px;
  4. padding: 0 12.5vw;
  5. box-sizing: border-box;
  6. display: flex;
  7. justify-content: space-between;
  8. position: fixed;
  9. top: 0;
  10. left: 0;
  11. z-index: 9;
  12. }
  13. .header1-page.bg {
  14. background: rgba(0, 0, 0, 0.7);
  15. }
  16. .header1-page .logo-img {
  17. width: 115px;
  18. height: 45px;
  19. margin-top: 19px;
  20. }
  21. .header1-page .menu {
  22. width: 393px;
  23. display: flex;
  24. justify-content: space-between;
  25. font-size: 18px;
  26. font-family: Gilroy, Gilroy-Bold;
  27. font-weight: 700;
  28. text-align: left;
  29. color: #ffffff;
  30. margin-top: 29px;
  31. }
  32. .header1-page .menu .item {
  33. height: 18px;
  34. position: relative;
  35. cursor: pointer;
  36. }
  37. .header1-page .menu .item:hover::after {
  38. width: 100%;
  39. }
  40. .header1-page .menu .item::after {
  41. transition: width 0.3s;
  42. transition-delay: 0.3s; /*避免短时间内,如果重复触发会导致闪烁闪烁*/
  43. content: '';
  44. position: absolute;
  45. left: 50%;
  46. transform: translateX(-50%);
  47. bottom: -17px;
  48. height: 4px;
  49. width: 0;
  50. background: #008cff;
  51. }
  52. .header1-page .menu .item:hover .expand2 {
  53. width: 608px;
  54. width: 340px;
  55. padding: 55px 60px;
  56. }
  57. .header1-page .menu .item .expand2 {
  58. overflow: hidden;
  59. transition: all 0.3s;
  60. transition-delay: 0.3s;
  61. width: 0;
  62. height: 261px;
  63. background: #ffffff;
  64. border-radius: 20px;
  65. position: absolute;
  66. left: 50%;
  67. transform: translateX(-50%);
  68. top: 35px;
  69. box-sizing: border-box;
  70. display: flex;
  71. flex-direction: column;
  72. /* justify-content: flex-start; */
  73. align-items: center;
  74. flex-wrap: wrap;
  75. padding: 0;
  76. }
  77. .header1-page .menu .item .expand2-box {
  78. /* width: 50%; */
  79. font-family: Gilroy, Gilroy-Medium;
  80. line-height: 36px;
  81. }
  82. .header1-page .menu .item .expand2-box-title {
  83. font-size: 18px;
  84. font-weight: 700;
  85. color: #333333;
  86. }
  87. .header1-page .menu .item .expand2-box-content {
  88. font-size: 14px;
  89. font-weight: 500;
  90. color: #999999;
  91. }
  92. .header1-page .lang-box {
  93. /* margin-top: 29px; */
  94. }
  95. .header1-page .lang-box .lang1 {
  96. width: 22px;
  97. height: 22px;
  98. vertical-align: middle;
  99. }
  100. .header1-page .lang-box span {
  101. color: #ffffff;
  102. }
  103. .header1-page .lang-box .lang2 {
  104. width: 18px;
  105. height: 14px;
  106. vertical-align: middle;
  107. }
  108. /*移动端*/
  109. @media screen and (max-width: 960px) {
  110. .header1-page {
  111. height: 14vw;
  112. padding: 0 4vw;
  113. }
  114. .header1-page .logo-img {
  115. width: 26.8vw;
  116. height: 7.77vw;
  117. margin-top: 4vw;
  118. }
  119. .header1-page .lang-box {
  120. margin-top: 4vw;
  121. }
  122. .header1-page .lang-box .lang1 {
  123. display: none;
  124. }
  125. .header1-page .menu {
  126. display: none;
  127. }
  128. }