index.module.scss 6.1 KB

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