index.module.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. .modalTxt {
  2. width: 55%;
  3. height: 100%;
  4. position: absolute;
  5. z-index: 1;
  6. top: 50%;
  7. left: 50%;
  8. transform: translate(-4%, -50%);
  9. display: flex;
  10. align-items: center;
  11. justify-content: flex-end;
  12. :global {
  13. .modalTxtContainner {
  14. width: 450px;
  15. height: 100%;
  16. display: flex;
  17. flex-direction: column;
  18. gap: 10px;
  19. .topBar {
  20. padding-left: 0;
  21. padding-right: 0;
  22. justify-content: left;
  23. width: 72%;
  24. height: 70px;
  25. display: flex;
  26. align-items: center;
  27. position: relative;
  28. gap: 10px;
  29. margin-top: 10px;
  30. .beie {
  31. top: 11px;
  32. left: -97px;
  33. height: 60px;
  34. width: 120px;
  35. font-size: 10px;
  36. line-height: 50px;
  37. color: #fff;
  38. position: absolute;
  39. align-self: flex-start;
  40. &>img {
  41. width: 100%;
  42. object-fit: contain;
  43. }
  44. .txt {
  45. width: 70px;
  46. text-align: center;
  47. position: absolute;
  48. top: 50%;
  49. left: 50%;
  50. transform: translate(-65%, -50%);
  51. cursor: pointer;
  52. margin-left: 6px;
  53. font-size: 18px;
  54. }
  55. }
  56. .tab0,
  57. .tab1,
  58. .tab2 {
  59. width: fit-content;
  60. min-width: 70px;
  61. height: 60px;
  62. display: flex;
  63. align-items: center;
  64. flex-direction: column;
  65. cursor: pointer;
  66. position: relative;
  67. &>img {
  68. height: 50px;
  69. object-fit: contain;
  70. }
  71. .tabNub {
  72. transition: all 0.3s ease-in-out;
  73. font-size: 18px;
  74. position: absolute;
  75. top: 34%;
  76. left: 50%;
  77. transform: translate(-55%, -50%);
  78. color: rgba(255, 233, 182, 0.6);
  79. }
  80. .tabNubAc {
  81. color: rgba(255, 233, 182, 1);
  82. }
  83. .txt {
  84. font-size: 10px;
  85. line-height: 15px;
  86. text-align: center;
  87. color: rgba(255, 255, 255, 1);
  88. width: 100%;
  89. font-weight: 700;
  90. font-size: 14px;
  91. }
  92. }
  93. .tab:nth-child(3) {
  94. width: 100px;
  95. }
  96. .tab0 {
  97. width: 84px;
  98. }
  99. .tab1 {
  100. width: 140px;
  101. padding-left: 10px;
  102. .tabNub {
  103. transform: translate(-27%, -50%) !important;
  104. }
  105. }
  106. .tab2 {
  107. width: 60px;
  108. .tabNub {
  109. transform: translate(-50%, -50%) !important;
  110. }
  111. }
  112. }
  113. .intro {
  114. width: 100%;
  115. padding-right: 40px;
  116. height: 15%;
  117. color: rgba(255, 255, 255, 1);
  118. text-align: justify;
  119. overflow-y: auto;
  120. font-size: 15px;
  121. line-height: 21px;
  122. font-weight: 400;
  123. color: #504e40;
  124. }
  125. .detailTxt {
  126. width: 100%;
  127. padding-right: 40px;
  128. height: 62%;
  129. display: flex;
  130. justify-content: space-between;
  131. .left,
  132. .right {
  133. width: 49%;
  134. height: 100%;
  135. display: flex;
  136. flex-direction: column;
  137. gap: 10px;
  138. padding: 20px;
  139. .title {
  140. font-size: 16px;
  141. line-height: 0px;
  142. font-weight: bold;
  143. color: rgba(94, 52, 34, 1);
  144. }
  145. .txt {
  146. font-size: 16px !important;
  147. line-height: 22px !important;
  148. letter-spacing: 2px;
  149. text-align: justify;
  150. font-weight: 500;
  151. color: rgba(94, 52, 34, 1); // 原始颜色
  152. overflow: auto;
  153. padding-bottom: 10px;
  154. -webkit-overflow-scrolling: touch;
  155. /* 启用原生平滑滚动 */
  156. overflow-scrolling: touch;
  157. overscroll-behavior-y: none;
  158. .t1 {
  159. width: 100%;
  160. height: 17px;
  161. }
  162. .t2 {
  163. width: 100%;
  164. height: 370px;
  165. }
  166. &::-webkit-scrollbar {
  167. width: 0px;
  168. }
  169. &::-webkit-scrollbar-track {
  170. background-color: transparent;
  171. }
  172. &::-webkit-scrollbar-thumb {
  173. background-color: rgba(94, 52, 34, 0.226);
  174. border-radius: 4px;
  175. }
  176. &:has(> a:hover) {
  177. color: rgba(0, 0, 0, 0.25);
  178. }
  179. &:has(> a:hover)>a:not(:hover) {
  180. color: rgba(0, 0, 0, 0.25);
  181. }
  182. &>a {
  183. color: rgba(94, 52, 34, 1);
  184. position: relative;
  185. &::after {
  186. content: '';
  187. position: absolute;
  188. left: 0;
  189. bottom: -2px;
  190. width: 100%;
  191. height: 2px;
  192. background-color: rgba(166, 118, 67, 1);
  193. transform: scaleX(0.95);
  194. transform-origin: right center;
  195. }
  196. }
  197. }
  198. }
  199. .left {
  200. background: url(../../../../assets/img/detailTxt_l.png) no-repeat center center;
  201. background-size: 100% 100%;
  202. }
  203. .right {
  204. background: url(../../../../assets/img/detailTxt_r.png) no-repeat center center;
  205. background-size: 100% 100%;
  206. }
  207. }
  208. .content {
  209. width: 100%;
  210. height: 60%;
  211. display: flex;
  212. flex-direction: column;
  213. gap: 10px;
  214. color: rgba(94, 52, 34, 1);
  215. .title {
  216. font-size: 20px;
  217. line-height: 20px;
  218. font-weight: bold;
  219. }
  220. .text {
  221. width: 400px;
  222. line-height: 24px;
  223. font-size: 16px;
  224. text-align: justify;
  225. letter-spacing: 2px;
  226. color: #504e40;
  227. &>p {
  228. padding-bottom: 10px;
  229. }
  230. }
  231. }
  232. }
  233. }
  234. }
  235. // -----------英文版
  236. .modalTxtEn {
  237. :global {
  238. .modalTxtContainner {
  239. .topBar {
  240. .beie .txt {
  241. width: auto;
  242. font-size: 16px;
  243. }
  244. .tab0 {
  245. width: 100px;
  246. }
  247. .tab0,
  248. .tab1,
  249. .tab2 {
  250. .txt {
  251. font-size: 12px !important;
  252. }
  253. }
  254. .txtAc {
  255. width: 300px !important;
  256. max-width: 9999px;
  257. position: absolute;
  258. bottom: -5px;
  259. left: 50%;
  260. transform: translateX(-50%);
  261. }
  262. }
  263. .content {
  264. position: relative;
  265. top: 20px;
  266. .text {
  267. text-align: start;
  268. letter-spacing: 0;
  269. }
  270. }
  271. }
  272. }
  273. }