index.scss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. .hotspot-page {
  2. position: fixed;
  3. top: 0;
  4. left: 0;
  5. right: 0;
  6. bottom: 0;
  7. background: rgba(255, 252, 247, 0.8);
  8. z-index: var(--z-index-popper);
  9. .audioIcon {
  10. position: absolute;
  11. top: 40px;
  12. right: 128px;
  13. img {
  14. width: 52px;
  15. height: 52px;
  16. cursor: pointer;
  17. }
  18. }
  19. &-info {
  20. position: absolute;
  21. top: 42px;
  22. left: 40px;
  23. max-width: 50%;
  24. h3 {
  25. margin-bottom: 14px;
  26. color: #c41800;
  27. font-size: 24px;
  28. line-height: 28px;
  29. }
  30. p {
  31. width: 214px;
  32. height: 213px;
  33. color: #333333;
  34. font-size: 14px;
  35. overflow-y: auto;
  36. &::-webkit-scrollbar {
  37. width: 6px;
  38. }
  39. &::-webkit-scrollbar-thumb {
  40. border-radius: 10px;
  41. background-color: #c41800;
  42. }
  43. &::-webkit-scrollbar-track {
  44. border-radius: 10px;
  45. }
  46. }
  47. }
  48. &-main {
  49. position: absolute;
  50. top: 50%;
  51. left: 50%;
  52. display: flex;
  53. align-items: center;
  54. justify-content: center;
  55. max-width: 1100px;
  56. width: calc(100vw - 548px);
  57. transform: translate(-50%, -50%);
  58. }
  59. &-swiper {
  60. &__left,
  61. &__right {
  62. position: absolute;
  63. top: 50%;
  64. width: 50px;
  65. height: 50px;
  66. cursor: pointer;
  67. transform: translateY(-50%);
  68. z-index: 1;
  69. }
  70. &__left {
  71. left: -70px;
  72. background: url('@hotspot/assets/images/icon-previous@2x-min.png') no-repeat center / contain;
  73. }
  74. &__right {
  75. right: -70px;
  76. background: url('@hotspot/assets/images/icon-next@2x-min.png') no-repeat center / contain;
  77. }
  78. }
  79. &-model {
  80. width: 100%;
  81. height: 600px;
  82. iframe {
  83. width: 100%;
  84. height: 100%;
  85. }
  86. }
  87. &-video {
  88. width: 100%;
  89. height: 561px;
  90. object-fit: cover;
  91. }
  92. &-img {
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. height: inherit;
  97. &-swiper {
  98. height: 567px;
  99. }
  100. img {
  101. width: 100%;
  102. height: 100%;
  103. object-fit: contain;
  104. }
  105. }
  106. &-nav {
  107. position: absolute;
  108. left: 50%;
  109. bottom: 104px;
  110. display: flex;
  111. align-items: center;
  112. gap: 30px;
  113. transform: translateX(-50%);
  114. &__item {
  115. display: flex;
  116. align-items: center;
  117. justify-content: center;
  118. gap: 9px;
  119. width: 120px;
  120. height: 36px;
  121. border-radius: 18px;
  122. color: #666666;
  123. background: #d0cec6;
  124. border: 1px solid #666666;
  125. box-sizing: border-box;
  126. cursor: pointer;
  127. &.active {
  128. color: #ddaf35;
  129. border-width: 0;
  130. background: linear-gradient(#d67729, #c41800);
  131. }
  132. .model-icon {
  133. width: 19px;
  134. height: 22px;
  135. }
  136. .video-icon {
  137. width: 21px;
  138. height: 18px;
  139. }
  140. .img-icon {
  141. width: 21px;
  142. height: 18px;
  143. }
  144. }
  145. }
  146. }
  147. @media only screen and (max-width: 600px) {
  148. .hotspot-page {
  149. .audioIcon {
  150. top: 20px;
  151. right: 60px;
  152. img {
  153. width: 35px;
  154. height: 35px;
  155. }
  156. }
  157. }
  158. .hotspot-page-info {
  159. top: unset;
  160. left: 0;
  161. right: 0;
  162. bottom: 0;
  163. display: flex;
  164. flex-direction: column;
  165. padding: 20px 25px;
  166. max-width: 100%;
  167. height: calc(100vh - 50vh - 95px);
  168. box-sizing: border-box;
  169. border-top-left-radius: 17px;
  170. border-top-right-radius: 17px;
  171. background: linear-gradient(181deg, #d67729 0%, #c41800 100%);
  172. h3 {
  173. margin-bottom: 7px;
  174. max-width: 100%;
  175. width: 100%;
  176. color: white;
  177. font-size: 18px;
  178. font-weight: bold;
  179. display: -webkit-box;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. -webkit-line-clamp: 1;
  183. -webkit-box-orient: vertical;
  184. word-break: break-all;
  185. word-wrap: break-word;
  186. }
  187. p {
  188. flex: 1;
  189. padding-right: 2px;
  190. width: 100%;
  191. height: 0;
  192. color: white;
  193. font-size: 15px;
  194. &::-webkit-scrollbar {
  195. width: 2px;
  196. }
  197. &::-webkit-scrollbar-thumb {
  198. background-color: #ddaf35;
  199. }
  200. }
  201. }
  202. .hotspot-page-nav {
  203. bottom: 194px;
  204. gap: 13px;
  205. &__item {
  206. width: 70px;
  207. height: 20px;
  208. font-size: 10px;
  209. gap: 4px;
  210. .video-icon,
  211. .img-icon {
  212. width: 12px;
  213. height: 10px;
  214. }
  215. .model-icon {
  216. width: 10px;
  217. height: 11px;
  218. }
  219. }
  220. }
  221. .hotspot-page-swiper__left,
  222. .hotspot-page-swiper__right {
  223. width: 19px;
  224. height: 38px;
  225. }
  226. .hotspot-page-swiper__left {
  227. left: 0;
  228. background-image: url('@hotspot/assets/images/icon-left-min.png');
  229. }
  230. .hotspot-page-swiper__right {
  231. right: 0;
  232. background-image: url('@hotspot/assets/images/icon-right-min.png');
  233. }
  234. .hotspot-page-main {
  235. top: 75px;
  236. width: 100%;
  237. transform: translateX(-50%);
  238. }
  239. .hotspot-page-video {
  240. width: 300px;
  241. height: 168px;
  242. }
  243. .hotspot-page-img-swiper,
  244. .hotspot-page-model {
  245. height: 50vh;
  246. }
  247. }