main.wxss 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942
  1. /*
  2. ColorUi for MP-weixin v2.1.4 | by 文晓港 2019年4月25日19:15:42
  3. 仅供学习交流,如作它用所承受的法律责任一概与作者无关
  4. 使用ColorUi开发扩展与插件时,请注明基于ColorUi开发
  5. (QQ交流群:240787041)
  6. */
  7. /* ==================
  8. 初始化
  9. ==================== */
  10. page {
  11. /* Color 可以自定义相关配色 */
  12. /* var属性兼容性 --> https://www.caniuse.com/#feat=css-variables */
  13. /* 标准色 */
  14. --red: #e54d42;
  15. --orange: #f37b1d;
  16. --yellow: #fbbd08;
  17. --olive: #8dc63f;
  18. --green: #39b54a;
  19. --cyan: #1cbbb4;
  20. --blue: #0081ff;
  21. --purple: #6739b6;
  22. --mauve: #9c26b0;
  23. --pink: #e03997;
  24. --brown: #a5673f;
  25. --grey: #8799a3;
  26. --black: #333333;
  27. --darkGray: #666666;
  28. --gray: #aaaaaa;
  29. --ghostWhite: #f1f1f1;
  30. --white: #ffffff;
  31. /* 浅色 */
  32. --redLight: #fadbd9;
  33. --orangeLight: #fde6d2;
  34. --yellowLight: #fef2ce;
  35. --oliveLight: #e8f4d9;
  36. --greenLight: #d7f0db;
  37. --cyanLight: #d2f1f0;
  38. --blueLight: #cce6ff;
  39. --purpleLight: #e1d7f0;
  40. --mauveLight: #ebd4ef;
  41. --pinkLight: #f9d7ea;
  42. --brownLight: #ede1d9;
  43. --greyLight: #e7ebed;
  44. /* 渐变色 */
  45. --gradualRed: linear-gradient(45deg, #f43f3b, #ec008c);
  46. --gradualOrange: linear-gradient(45deg, #ff9700, #ed1c24);
  47. --gradualGreen: linear-gradient(45deg, #39b54a, #8dc63f);
  48. --gradualPurple: linear-gradient(45deg, #9000ff, #5e00ff);
  49. --gradualPink: linear-gradient(45deg, #ec008c, #6739b6);
  50. --gradualBlue: linear-gradient(45deg, #0081ff, #1cbbb4);
  51. /* 阴影透明色 */
  52. --ShadowSize: 6rpx 6rpx 8rpx;
  53. --redShadow: rgba(204, 69, 59, 0.2);
  54. --orangeShadow: rgba(217, 109, 26, 0.2);
  55. --yellowShadow: rgba(224, 170, 7, 0.2);
  56. --oliveShadow: rgba(124, 173, 55, 0.2);
  57. --greenShadow: rgba(48, 156, 63, 0.2);
  58. --cyanShadow: rgba(28, 187, 180, 0.2);
  59. --blueShadow: rgba(0, 102, 204, 0.2);
  60. --purpleShadow: rgba(88, 48, 156, 0.2);
  61. --mauveShadow: rgba(133, 33, 150, 0.2);
  62. --pinkShadow: rgba(199, 50, 134, 0.2);
  63. --brownShadow: rgba(140, 88, 53, 0.2);
  64. --greyShadow: rgba(114, 130, 138, 0.2);
  65. --grayShadow: rgba(114, 130, 138, 0.2);
  66. --blackShadow: rgba(26, 26, 26, 0.2);
  67. background-color: var(--ghostWhite);
  68. font-size: 28rpx;
  69. color: var(--black);
  70. font-family: Helvetica Neue, Helvetica, sans-serif;
  71. }
  72. view,
  73. scroll-view,
  74. swiper,
  75. button,
  76. input,
  77. textarea,
  78. label,
  79. navigator,
  80. image {
  81. box-sizing: border-box;
  82. }
  83. .round {
  84. border-radius: 5000rpx;
  85. }
  86. .radius {
  87. border-radius: 6rpx;
  88. }
  89. /* ==================
  90. 图片
  91. ==================== */
  92. image {
  93. max-width: 100%;
  94. display: inline-block;
  95. position: relative;
  96. z-index: 0;
  97. }
  98. image.loading::before {
  99. content: "";
  100. background-color: #f5f5f5;
  101. display: block;
  102. position: absolute;
  103. width: 100%;
  104. height: 100%;
  105. z-index: -2;
  106. }
  107. image.loading::after {
  108. content: "\e7f1";
  109. font-family: "cuIcon";
  110. position: absolute;
  111. top: 0;
  112. left: 0;
  113. width: 32rpx;
  114. height: 32rpx;
  115. line-height: 32rpx;
  116. right: 0;
  117. bottom: 0;
  118. z-index: -1;
  119. font-size: 32rpx;
  120. margin: auto;
  121. color: #ccc;
  122. -webkit-animation: cuIcon-spin 2s infinite linear;
  123. animation: cuIcon-spin 2s infinite linear;
  124. display: block;
  125. }
  126. .response {
  127. width: 100%;
  128. }
  129. /* ==================
  130. 开关
  131. ==================== */
  132. switch,
  133. checkbox,
  134. radio {
  135. position: relative;
  136. }
  137. switch::after,
  138. switch::before {
  139. font-family: "cuIcon";
  140. content: "\e645";
  141. position: absolute;
  142. color: var(--white) !important;
  143. top: 0%;
  144. left: 0rpx;
  145. font-size: 26rpx;
  146. line-height: 26px;
  147. width: 50%;
  148. text-align: center;
  149. pointer-events: none;
  150. transform: scale(0, 0);
  151. transition: all 0.3s ease-in-out 0s;
  152. z-index: 9;
  153. bottom: 0;
  154. height: 26px;
  155. margin: auto;
  156. }
  157. switch::before {
  158. content: "\e646";
  159. right: 0;
  160. transform: scale(1, 1);
  161. left: auto;
  162. }
  163. switch[checked]::after,
  164. switch.checked::after {
  165. transform: scale(1, 1);
  166. }
  167. switch[checked]::before,
  168. switch.checked::before {
  169. transform: scale(0, 0);
  170. }
  171. switch[checked]::before {
  172. transform: scale(0, 0);
  173. }
  174. radio::before,
  175. checkbox::before {
  176. font-family: "cuIcon";
  177. content: "\e645";
  178. position: absolute;
  179. color: var(--white) !important;
  180. top: 50%;
  181. margin-top: -8px;
  182. right: 5px;
  183. font-size: 32rpx;
  184. line-height: 16px;
  185. pointer-events: none;
  186. transform: scale(1, 1);
  187. transition: all 0.3s ease-in-out 0s;
  188. z-index: 9;
  189. }
  190. radio .wx-radio-input,
  191. checkbox .wx-checkbox-input {
  192. margin: 0;
  193. width: 24px;
  194. height: 24px;
  195. }
  196. checkbox.round .wx-checkbox-input {
  197. border-radius: 100rpx;
  198. }
  199. switch .wx-switch-input {
  200. border: none;
  201. padding: 0 24px;
  202. width: 48px;
  203. height: 26px;
  204. margin: 0;
  205. border-radius: 100rpx;
  206. }
  207. switch .wx-switch-input:not([class*="bg-"]) {
  208. background: var(--grey) !important;
  209. }
  210. switch .wx-switch-input::after {
  211. margin: auto;
  212. width: 26px;
  213. height: 26px;
  214. border-radius: 100rpx;
  215. left: 0rpx;
  216. top: 0rpx;
  217. bottom: 0rpx;
  218. position: absolute;
  219. transform: scale(0.9, 0.9);
  220. transition: all 0.1s ease-in-out 0s;
  221. }
  222. switch .wx-switch-input.wx-switch-input-checked::after {
  223. margin: auto;
  224. left: 22px;
  225. box-shadow: none;
  226. transform: scale(0.9, 0.9);
  227. }
  228. radio-group {
  229. display: inline-block;
  230. }
  231. switch.radius .wx-switch-input::after,
  232. switch.radius .wx-switch-input,
  233. switch.radius .wx-switch-input::before {
  234. border-radius: 10rpx;
  235. }
  236. switch .wx-switch-input::before,
  237. radio.radio::before,
  238. checkbox .wx-checkbox-input::before,
  239. radio .wx-radio-input::before,
  240. radio.radio::before {
  241. display: none;
  242. }
  243. radio.radio[checked]::after {
  244. content: "";
  245. background-color: transparent;
  246. display: block;
  247. position: absolute;
  248. width: 8px;
  249. height: 8px;
  250. z-index: 999;
  251. top: 0rpx;
  252. left: 0rpx;
  253. right: 0;
  254. bottom: 0;
  255. margin: auto;
  256. border-radius: 200rpx;
  257. border: 8px solid var(--white) !important;
  258. }
  259. .switch-sex::after {
  260. content: "\e71c";
  261. }
  262. .switch-sex::before {
  263. content: "\e71a";
  264. }
  265. .switch-sex .wx-switch-input {
  266. background: var(--red) !important;
  267. border-color: var(--red) !important;
  268. }
  269. .switch-sex[checked] .wx-switch-input {
  270. background: var(--blue) !important;
  271. border-color: var(--blue) !important;
  272. }
  273. switch.red[checked] .wx-switch-input,
  274. checkbox.red[checked] .wx-checkbox-input,
  275. radio.red[checked] .wx-radio-input {
  276. border-color: var(--red) !important;
  277. }
  278. switch.orange[checked] .wx-switch-input,
  279. checkbox.orange[checked] .wx-checkbox-input,
  280. radio.orange[checked] .wx-radio-input {
  281. border-color: var(--orange) !important;
  282. }
  283. switch.yellow[checked] .wx-switch-input,
  284. checkbox.yellow[checked] .wx-checkbox-input,
  285. radio.yellow[checked] .wx-radio-input {
  286. border-color: var(--yellow) !important;
  287. }
  288. switch.olive[checked] .wx-switch-input,
  289. checkbox.olive[checked] .wx-checkbox-input,
  290. radio.olive[checked] .wx-radio-input {
  291. border-color: var(--olive) !important;
  292. }
  293. switch.green[checked] .wx-switch-input,
  294. checkbox.green[checked] .wx-checkbox-input,
  295. checkbox[checked] .wx-checkbox-input,
  296. radio.green[checked] .wx-radio-input {
  297. border-color: var(--green) !important;
  298. }
  299. switch.cyan[checked] .wx-switch-input,
  300. checkbox.cyan[checked] .wx-checkbox-input,
  301. radio.cyan[checked] .wx-radio-input {
  302. border-color: var(--cyan) !important;
  303. }
  304. switch.blue[checked] .wx-switch-input,
  305. checkbox.blue[checked] .wx-checkbox-input,
  306. radio.blue[checked] .wx-radio-input {
  307. border-color: var(--blue) !important;
  308. }
  309. switch.purple[checked] .wx-switch-input,
  310. checkbox.purple[checked] .wx-checkbox-input,
  311. radio.purple[checked] .wx-radio-input {
  312. border-color: var(--purple) !important;
  313. }
  314. switch.mauve[checked] .wx-switch-input,
  315. checkbox.mauve[checked] .wx-checkbox-input,
  316. radio.mauve[checked] .wx-radio-input {
  317. border-color: var(--mauve) !important;
  318. }
  319. switch.pink[checked] .wx-switch-input,
  320. checkbox.pink[checked] .wx-checkbox-input,
  321. radio.pink[checked] .wx-radio-input {
  322. border-color: var(--pink) !important;
  323. }
  324. switch.brown[checked] .wx-switch-input,
  325. checkbox.brown[checked] .wx-checkbox-input,
  326. radio.brown[checked] .wx-radio-input {
  327. border-color: var(--brown) !important;
  328. }
  329. switch.grey[checked] .wx-switch-input,
  330. checkbox.grey[checked] .wx-checkbox-input,
  331. radio.grey[checked] .wx-radio-input {
  332. border-color: var(--grey) !important;
  333. }
  334. switch.gray[checked] .wx-switch-input,
  335. checkbox.gray[checked] .wx-checkbox-input,
  336. radio.gray[checked] .wx-radio-input {
  337. border-color: var(--grey) !important;
  338. }
  339. switch.black[checked] .wx-switch-input,
  340. checkbox.black[checked] .wx-checkbox-input,
  341. radio.black[checked] .wx-radio-input {
  342. border-color: var(--black) !important;
  343. }
  344. switch.white[checked] .wx-switch-input,
  345. checkbox.white[checked] .wx-checkbox-input,
  346. radio.white[checked] .wx-radio-input {
  347. border-color: var(--white) !important;
  348. }
  349. switch.red[checked] .wx-switch-input.wx-switch-input-checked,
  350. checkbox.red[checked] .wx-checkbox-input,
  351. radio.red[checked] .wx-radio-input {
  352. background-color: var(--red) !important;
  353. color: var(--white) !important;
  354. }
  355. switch.orange[checked] .wx-switch-input,
  356. checkbox.orange[checked] .wx-checkbox-input,
  357. radio.orange[checked] .wx-radio-input {
  358. background-color: var(--orange) !important;
  359. color: var(--white) !important;
  360. }
  361. switch.yellow[checked] .wx-switch-input,
  362. checkbox.yellow[checked] .wx-checkbox-input,
  363. radio.yellow[checked] .wx-radio-input {
  364. background-color: var(--yellow) !important;
  365. color: var(--black) !important;
  366. }
  367. switch.olive[checked] .wx-switch-input,
  368. checkbox.olive[checked] .wx-checkbox-input,
  369. radio.olive[checked] .wx-radio-input {
  370. background-color: var(--olive) !important;
  371. color: var(--white) !important;
  372. }
  373. switch.green[checked] .wx-switch-input,
  374. switch[checked] .wx-switch-input,
  375. checkbox.green[checked] .wx-checkbox-input,
  376. checkbox[checked] .wx-checkbox-input,
  377. radio.green[checked] .wx-radio-input,
  378. radio[checked] .wx-radio-input {
  379. background-color: var(--green) !important;
  380. color: var(--white) !important;
  381. }
  382. switch.cyan[checked] .wx-switch-input,
  383. checkbox.cyan[checked] .wx-checkbox-input,
  384. radio.cyan[checked] .wx-radio-input {
  385. background-color: var(--cyan) !important;
  386. color: var(--white) !important;
  387. }
  388. switch.blue[checked] .wx-switch-input,
  389. checkbox.blue[checked] .wx-checkbox-input,
  390. radio.blue[checked] .wx-radio-input {
  391. background-color: var(--blue) !important;
  392. color: var(--white) !important;
  393. }
  394. switch.purple[checked] .wx-switch-input,
  395. checkbox.purple[checked] .wx-checkbox-input,
  396. radio.purple[checked] .wx-radio-input {
  397. background-color: var(--purple) !important;
  398. color: var(--white) !important;
  399. }
  400. switch.mauve[checked] .wx-switch-input,
  401. checkbox.mauve[checked] .wx-checkbox-input,
  402. radio.mauve[checked] .wx-radio-input {
  403. background-color: var(--mauve) !important;
  404. color: var(--white) !important;
  405. }
  406. switch.pink[checked] .wx-switch-input,
  407. checkbox.pink[checked] .wx-checkbox-input,
  408. radio.pink[checked] .wx-radio-input {
  409. background-color: var(--pink) !important;
  410. color: var(--white) !important;
  411. }
  412. switch.brown[checked] .wx-switch-input,
  413. checkbox.brown[checked] .wx-checkbox-input,
  414. radio.brown[checked] .wx-radio-input {
  415. background-color: var(--brown) !important;
  416. color: var(--white) !important;
  417. }
  418. switch.grey[checked] .wx-switch-input,
  419. checkbox.grey[checked] .wx-checkbox-input,
  420. radio.grey[checked] .wx-radio-input {
  421. background-color: var(--grey) !important;
  422. color: var(--white) !important;
  423. }
  424. switch.gray[checked] .wx-switch-input,
  425. checkbox.gray[checked] .wx-checkbox-input,
  426. radio.gray[checked] .wx-radio-input {
  427. background-color: #f0f0f0 !important;
  428. color: var(--black) !important;
  429. }
  430. switch.black[checked] .wx-switch-input,
  431. checkbox.black[checked] .wx-checkbox-input,
  432. radio.black[checked] .wx-radio-input {
  433. background-color: var(--black) !important;
  434. color: var(--white) !important;
  435. }
  436. switch.white[checked] .wx-switch-input,
  437. checkbox.white[checked] .wx-checkbox-input,
  438. radio.white[checked] .wx-radio-input {
  439. background-color: var(--white) !important;
  440. color: var(--black) !important;
  441. }
  442. /* ==================
  443. 边框
  444. ==================== */
  445. /* -- 实线 -- */
  446. .solid,
  447. .solid-top,
  448. .solid-right,
  449. .solid-bottom,
  450. .solid-left,
  451. .solids,
  452. .solids-top,
  453. .solids-right,
  454. .solids-bottom,
  455. .solids-left,
  456. .dashed,
  457. .dashed-top,
  458. .dashed-right,
  459. .dashed-bottom,
  460. .dashed-left {
  461. position: relative;
  462. }
  463. .solid::after,
  464. .solid-top::after,
  465. .solid-right::after,
  466. .solid-bottom::after,
  467. .solid-left::after,
  468. .solids::after,
  469. .solids-top::after,
  470. .solids-right::after,
  471. .solids-bottom::after,
  472. .solids-left::after,
  473. .dashed::after,
  474. .dashed-top::after,
  475. .dashed-right::after,
  476. .dashed-bottom::after,
  477. .dashed-left::after {
  478. content: " ";
  479. width: 200%;
  480. height: 200%;
  481. position: absolute;
  482. top: 0;
  483. left: 0;
  484. border-radius: inherit;
  485. transform: scale(0.5);
  486. transform-origin: 0 0;
  487. pointer-events: none;
  488. box-sizing: border-box;
  489. }
  490. .solid::after {
  491. border: 1rpx solid rgba(0, 0, 0, 0.1);
  492. }
  493. .solid-top::after {
  494. border-top: 1rpx solid rgba(0, 0, 0, 0.1);
  495. }
  496. .solid-right::after {
  497. border-right: 1rpx solid rgba(0, 0, 0, 0.1);
  498. }
  499. .solid-bottom::after {
  500. border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
  501. }
  502. .solid-left::after {
  503. border-left: 1rpx solid rgba(0, 0, 0, 0.1);
  504. }
  505. .solids::after {
  506. border: 8rpx solid #eee;
  507. }
  508. .solids-top::after {
  509. border-top: 8rpx solid #eee;
  510. }
  511. .solids-right::after {
  512. border-right: 8rpx solid #eee;
  513. }
  514. .solids-bottom::after {
  515. border-bottom: 8rpx solid #eee;
  516. }
  517. .solids-left::after {
  518. border-left: 8rpx solid #eee;
  519. }
  520. /* -- 虚线 -- */
  521. .dashed::after {
  522. border: 1rpx dashed #ddd;
  523. }
  524. .dashed-top::after {
  525. border-top: 1rpx dashed #ddd;
  526. }
  527. .dashed-right::after {
  528. border-right: 1rpx dashed #ddd;
  529. }
  530. .dashed-bottom::after {
  531. border-bottom: 1rpx dashed #ddd;
  532. }
  533. .dashed-left::after {
  534. border-left: 1rpx dashed #ddd;
  535. }
  536. /* -- 阴影 -- */
  537. .shadow[class*='white'] {
  538. --ShadowSize: 0 1rpx 6rpx;
  539. }
  540. .shadow-lg {
  541. --ShadowSize: 0rpx 40rpx 100rpx 0rpx;
  542. }
  543. .shadow-warp {
  544. position: relative;
  545. box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
  546. }
  547. .shadow-warp:before,
  548. .shadow-warp:after {
  549. position: absolute;
  550. content: "";
  551. top: 20rpx;
  552. bottom: 30rpx;
  553. left: 20rpx;
  554. width: 50%;
  555. box-shadow: 0 30rpx 20rpx rgba(0, 0, 0, 0.2);
  556. transform: rotate(-3deg);
  557. z-index: -1;
  558. }
  559. .shadow-warp:after {
  560. right: 20rpx;
  561. left: auto;
  562. transform: rotate(3deg);
  563. }
  564. .shadow-blur {
  565. position: relative;
  566. }
  567. .shadow-blur::before {
  568. content: "";
  569. display: block;
  570. background: inherit;
  571. filter: blur(10rpx);
  572. position: absolute;
  573. width: 100%;
  574. height: 100%;
  575. top: 10rpx;
  576. left: 10rpx;
  577. z-index: -1;
  578. opacity: 0.4;
  579. transform-origin: 0 0;
  580. border-radius: inherit;
  581. transform: scale(1, 1);
  582. }
  583. /* ==================
  584. 按钮
  585. ==================== */
  586. .cu-btn {
  587. position: relative;
  588. border: 0rpx;
  589. display: inline-flex;
  590. align-items: center;
  591. justify-content: center;
  592. box-sizing: border-box;
  593. padding: 0 30rpx;
  594. font-size: 28rpx;
  595. height: 64rpx;
  596. line-height: 1;
  597. text-align: center;
  598. text-decoration: none;
  599. overflow: visible;
  600. margin-left: initial;
  601. transform: translate(0rpx, 0rpx);
  602. margin-right: initial;
  603. }
  604. .cu-btn::after {
  605. display: none;
  606. }
  607. .cu-btn:not([class*="bg-"]) {
  608. background-color: #f0f0f0;
  609. }
  610. .cu-btn[class*="line"] {
  611. background-color: transparent;
  612. }
  613. .cu-btn[class*="line"]::after {
  614. content: " ";
  615. display: block;
  616. width: 200%;
  617. height: 200%;
  618. position: absolute;
  619. top: 0;
  620. left: 0;
  621. border: 1rpx solid currentColor;
  622. transform: scale(0.5);
  623. transform-origin: 0 0;
  624. box-sizing: border-box;
  625. border-radius: 12rpx;
  626. z-index: 1;
  627. pointer-events: none;
  628. }
  629. .cu-btn.round[class*="line"]::after {
  630. border-radius: 1000rpx;
  631. }
  632. .cu-btn[class*="lines"]::after {
  633. border: 6rpx solid currentColor;
  634. }
  635. .cu-btn[class*="bg-"]::after {
  636. display: none;
  637. }
  638. .cu-btn.sm {
  639. padding: 0 20rpx;
  640. font-size: 20rpx;
  641. height: 48rpx;
  642. }
  643. .cu-btn.lg {
  644. padding: 0 40rpx;
  645. font-size: 32rpx;
  646. height: 80rpx;
  647. }
  648. .cu-btn.icon.sm {
  649. width: 48rpx;
  650. height: 48rpx;
  651. }
  652. .cu-btn.icon {
  653. width: 64rpx;
  654. height: 64rpx;
  655. border-radius: 500rpx;
  656. padding: 0;
  657. }
  658. button.icon.lg {
  659. width: 80rpx;
  660. height: 80rpx;
  661. }
  662. .cu-btn.shadow-blur::before {
  663. top: 4rpx;
  664. left: 4rpx;
  665. filter: blur(6rpx);
  666. opacity: 0.6;
  667. }
  668. .cu-btn.button-hover {
  669. transform: translate(1rpx, 1rpx);
  670. }
  671. .block {
  672. display: block;
  673. }
  674. .cu-btn.block {
  675. display: flex;
  676. }
  677. .cu-btn[disabled] {
  678. opacity: 0.6;
  679. color: var(--white);
  680. }
  681. /* ==================
  682. 徽章
  683. ==================== */
  684. .cu-tag {
  685. font-size: 24rpx;
  686. vertical-align: middle;
  687. position: relative;
  688. display: inline-flex;
  689. align-items: center;
  690. justify-content: center;
  691. box-sizing: border-box;
  692. padding: 0rpx 16rpx;
  693. height: 48rpx;
  694. font-family: Helvetica Neue, Helvetica, sans-serif;
  695. white-space: nowrap;
  696. }
  697. .cu-tag:not([class*="bg"]):not([class*="line"]) {
  698. background-color: var(--ghostWhite);
  699. }
  700. .cu-tag[class*="line-"]::after {
  701. content: " ";
  702. width: 200%;
  703. height: 200%;
  704. position: absolute;
  705. top: 0;
  706. left: 0;
  707. border: 1rpx solid currentColor;
  708. transform: scale(0.5);
  709. transform-origin: 0 0;
  710. box-sizing: border-box;
  711. border-radius: inherit;
  712. z-index: 1;
  713. pointer-events: none;
  714. }
  715. .cu-tag.radius[class*="line"]::after {
  716. border-radius: 12rpx;
  717. }
  718. .cu-tag.round[class*="line"]::after {
  719. border-radius: 1000rpx;
  720. }
  721. .cu-tag[class*="line-"]::after {
  722. border-radius: 0;
  723. }
  724. .cu-tag+.cu-tag {
  725. margin-left: 10rpx;
  726. }
  727. .cu-tag.sm {
  728. font-size: 20rpx;
  729. padding: 0rpx 12rpx;
  730. height: 32rpx;
  731. }
  732. .cu-capsule {
  733. display: inline-flex;
  734. vertical-align: middle;
  735. }
  736. .cu-capsule+.cu-capsule {
  737. margin-left: 10rpx;
  738. }
  739. .cu-capsule .cu-tag {
  740. margin: 0;
  741. }
  742. .cu-capsule .cu-tag[class*="line-"]:last-child::after {
  743. border-left: 0rpx solid transparent;
  744. }
  745. .cu-capsule .cu-tag[class*="line-"]:first-child::after {
  746. border-right: 0rpx solid transparent;
  747. }
  748. .cu-capsule.radius .cu-tag:first-child {
  749. border-top-left-radius: 6rpx;
  750. border-bottom-left-radius: 6rpx;
  751. }
  752. .cu-capsule.radius .cu-tag:last-child::after,
  753. .cu-capsule.radius .cu-tag[class*="line-"] {
  754. border-top-right-radius: 12rpx;
  755. border-bottom-right-radius: 12rpx;
  756. }
  757. .cu-capsule.round .cu-tag:first-child {
  758. border-top-left-radius: 200rpx;
  759. border-bottom-left-radius: 200rpx;
  760. text-indent: 4rpx;
  761. }
  762. .cu-capsule.round .cu-tag:last-child::after,
  763. .cu-capsule.round .cu-tag:last-child {
  764. border-top-right-radius: 200rpx;
  765. border-bottom-right-radius: 200rpx;
  766. text-indent: -4rpx;
  767. }
  768. .cu-tag.badge {
  769. border-radius: 200rpx;
  770. position: absolute;
  771. top: -10rpx;
  772. right: -10rpx;
  773. font-size: 20rpx;
  774. padding: 0rpx 10rpx;
  775. height: 28rpx;
  776. color: var(--white);
  777. }
  778. .cu-tag.badge:not([class*="bg-"]) {
  779. background-color: #dd514c;
  780. }
  781. .cu-tag:empty:not([class*="cuIcon-"]) {
  782. padding: 0rpx;
  783. width: 16rpx;
  784. height: 16rpx;
  785. top: -4rpx;
  786. right: -4rpx;
  787. }
  788. .cu-tag[class*="cuIcon-"] {
  789. width: 32rpx;
  790. height: 32rpx;
  791. top: -4rpx;
  792. right: -4rpx;
  793. }
  794. /* ==================
  795. 头像
  796. ==================== */
  797. .cu-avatar {
  798. font-variant: small-caps;
  799. margin: 0;
  800. padding: 0;
  801. display: inline-flex;
  802. text-align: center;
  803. justify-content: center;
  804. align-items: center;
  805. background-color: #ccc;
  806. color: var(--white);
  807. white-space: nowrap;
  808. position: relative;
  809. width: 64rpx;
  810. height: 64rpx;
  811. background-size: cover;
  812. background-position: center;
  813. vertical-align: middle;
  814. font-size: 1.5em;
  815. }
  816. .cu-avatar.sm {
  817. width: 48rpx;
  818. height: 48rpx;
  819. font-size: 1em;
  820. }
  821. .cu-avatar.lg {
  822. width: 96rpx;
  823. height: 96rpx;
  824. font-size: 2em;
  825. }
  826. .cu-avatar.xl {
  827. width: 128rpx;
  828. height: 128rpx;
  829. font-size: 2.5em;
  830. }
  831. .cu-avatar .avatar-text {
  832. font-size: 0.4em;
  833. }
  834. .cu-avatar-group {
  835. direction: rtl;
  836. unicode-bidi: bidi-override;
  837. padding: 0 10rpx 0 40rpx;
  838. display: inline-block;
  839. }
  840. .cu-avatar-group .cu-avatar {
  841. margin-left: -30rpx;
  842. border: 4rpx solid var(--ghostWhite);
  843. vertical-align: middle;
  844. }
  845. .cu-avatar-group .cu-avatar.sm {
  846. margin-left: -20rpx;
  847. border: 1rpx solid var(--ghostWhite);
  848. }
  849. /* ==================
  850. 进度条
  851. ==================== */
  852. .cu-progress {
  853. overflow: hidden;
  854. height: 28rpx;
  855. background-color: #ebeef5;
  856. display: inline-flex;
  857. align-items: center;
  858. width: 100%;
  859. }
  860. .cu-progress+view,
  861. .cu-progress+text {
  862. line-height: 1;
  863. }
  864. .cu-progress.xs {
  865. height: 10rpx;
  866. }
  867. .cu-progress.sm {
  868. height: 20rpx;
  869. }
  870. .cu-progress view {
  871. width: 0;
  872. height: 100%;
  873. align-items: center;
  874. display: flex;
  875. justify-items: flex-end;
  876. justify-content: space-around;
  877. font-size: 20rpx;
  878. color: var(--white);
  879. transition: width 0.6s ease;
  880. }
  881. .cu-progress text {
  882. align-items: center;
  883. display: flex;
  884. font-size: 20rpx;
  885. color: var(--black);
  886. text-indent: 10rpx;
  887. }
  888. .cu-progress.text-progress {
  889. padding-right: 60rpx;
  890. }
  891. .cu-progress.striped view {
  892. background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  893. background-size: 72rpx 72rpx;
  894. }
  895. .cu-progress.active view {
  896. animation: progress-stripes 2s linear infinite;
  897. }
  898. @keyframes progress-stripes {
  899. from {
  900. background-position: 72rpx 0;
  901. }
  902. to {
  903. background-position: 0 0;
  904. }
  905. }
  906. /* ==================
  907. 加载
  908. ==================== */
  909. .cu-load {
  910. display: block;
  911. line-height: 3em;
  912. text-align: center;
  913. }
  914. .cu-load::before {
  915. font-family: "cuIcon";
  916. display: inline-block;
  917. margin-right: 6rpx;
  918. }
  919. .cu-load.loading::before {
  920. content: "\e67a";
  921. animation: cuIcon-spin 2s infinite linear;
  922. }
  923. .cu-load.loading::after {
  924. content: "加载中...";
  925. }
  926. .cu-load.over::before {
  927. content: "\e64a";
  928. }
  929. .cu-load.over::after {
  930. content: "没有更多了";
  931. }
  932. .cu-load.erro::before {
  933. content: "\e658";
  934. }
  935. .cu-load.erro::after {
  936. content: "加载失败";
  937. }
  938. .cu-load.load-icon::before {
  939. font-size: 32rpx;
  940. }
  941. .cu-load.load-icon::after {
  942. display: none;
  943. }
  944. .cu-load.load-icon.over {
  945. display: none;
  946. }
  947. .cu-load.load-modal {
  948. position: fixed;
  949. top: 0;
  950. right: 0;
  951. bottom: 140rpx;
  952. left: 0;
  953. margin: auto;
  954. width: 260rpx;
  955. height: 260rpx;
  956. background-color: var(--white);
  957. border-radius: 10rpx;
  958. box-shadow: 0 0 0rpx 2000rpx rgba(0, 0, 0, 0.5);
  959. display: flex;
  960. align-items: center;
  961. flex-direction: column;
  962. justify-content: center;
  963. font-size: 28rpx;
  964. z-index: 9999;
  965. line-height: 2.4em;
  966. }
  967. .cu-load.load-modal [class*="cuIcon-"] {
  968. font-size: 60rpx;
  969. }
  970. .cu-load.load-modal image {
  971. width: 70rpx;
  972. height: 70rpx;
  973. }
  974. .cu-load.load-modal::after {
  975. content: "";
  976. position: absolute;
  977. background-color: var(--white);
  978. border-radius: 50%;
  979. width: 200rpx;
  980. height: 200rpx;
  981. font-size: 10px;
  982. border-top: 6rpx solid rgba(0, 0, 0, 0.05);
  983. border-right: 6rpx solid rgba(0, 0, 0, 0.05);
  984. border-bottom: 6rpx solid rgba(0, 0, 0, 0.05);
  985. border-left: 6rpx solid var(--orange);
  986. animation: cuIcon-spin 1s infinite linear;
  987. z-index: -1;
  988. }
  989. .load-progress {
  990. pointer-events: none;
  991. top: 0;
  992. position: fixed;
  993. width: 100%;
  994. left: 0;
  995. z-index: 2000;
  996. }
  997. .load-progress.hide {
  998. display: none;
  999. }
  1000. .load-progress .load-progress-bar {
  1001. position: relative;
  1002. width: 100%;
  1003. height: 4rpx;
  1004. overflow: hidden;
  1005. transition: all 200ms ease 0s;
  1006. }
  1007. .load-progress .load-progress-spinner {
  1008. position: absolute;
  1009. top: 10rpx;
  1010. right: 10rpx;
  1011. z-index: 2000;
  1012. display: block;
  1013. }
  1014. .load-progress .load-progress-spinner::after {
  1015. content: "";
  1016. display: block;
  1017. width: 24rpx;
  1018. height: 24rpx;
  1019. -webkit-box-sizing: border-box;
  1020. box-sizing: border-box;
  1021. border: solid 4rpx transparent;
  1022. border-top-color: inherit;
  1023. border-left-color: inherit;
  1024. border-radius: 50%;
  1025. -webkit-animation: load-progress-spinner 0.4s linear infinite;
  1026. animation: load-progress-spinner 0.4s linear infinite;
  1027. }
  1028. @-webkit-keyframes load-progress-spinner {
  1029. 0% {
  1030. -webkit-transform: rotate(0);
  1031. transform: rotate(0);
  1032. }
  1033. 100% {
  1034. -webkit-transform: rotate(360deg);
  1035. transform: rotate(360deg);
  1036. }
  1037. }
  1038. @keyframes load-progress-spinner {
  1039. 0% {
  1040. -webkit-transform: rotate(0);
  1041. transform: rotate(0);
  1042. }
  1043. 100% {
  1044. -webkit-transform: rotate(360deg);
  1045. transform: rotate(360deg);
  1046. }
  1047. }
  1048. /* ==================
  1049. 列表
  1050. ==================== */
  1051. .grayscale {
  1052. filter: grayscale(1);
  1053. }
  1054. .cu-list+.cu-list {
  1055. margin-top: 30rpx
  1056. }
  1057. .cu-list>.cu-item {
  1058. transition: all .6s ease-in-out 0s;
  1059. transform: translateX(0rpx)
  1060. }
  1061. .cu-list>.cu-item.move-cur {
  1062. transform: translateX(-260rpx)
  1063. }
  1064. .cu-list>.cu-item .move {
  1065. position: absolute;
  1066. right: 0;
  1067. display: flex;
  1068. width: 260rpx;
  1069. height: 100%;
  1070. transform: translateX(100%)
  1071. }
  1072. .cu-list>.cu-item .move view {
  1073. display: flex;
  1074. flex: 1;
  1075. justify-content: center;
  1076. align-items: center
  1077. }
  1078. .cu-list.menu-avatar {
  1079. overflow: hidden;
  1080. }
  1081. .cu-list.menu-avatar>.cu-item {
  1082. position: relative;
  1083. display: flex;
  1084. padding-right: 10rpx;
  1085. height: 140rpx;
  1086. background-color: var(--white);
  1087. justify-content: flex-end;
  1088. align-items: center
  1089. }
  1090. .cu-list.menu-avatar>.cu-item>.cu-avatar {
  1091. position: absolute;
  1092. left: 30rpx
  1093. }
  1094. .cu-list.menu-avatar>.cu-item .flex .text-cut {
  1095. max-width: 510rpx
  1096. }
  1097. .cu-list.menu-avatar>.cu-item .content {
  1098. position: absolute;
  1099. left: 146rpx;
  1100. width: calc(100% - 96rpx - 60rpx - 120rpx - 20rpx);
  1101. line-height: 1.6em;
  1102. }
  1103. .cu-list.menu-avatar>.cu-item .content.flex-sub {
  1104. width: calc(100% - 96rpx - 60rpx - 20rpx);
  1105. }
  1106. .cu-list.menu-avatar>.cu-item .content>view:first-child {
  1107. font-size: 30rpx;
  1108. display: flex;
  1109. align-items: center
  1110. }
  1111. .cu-list.menu-avatar>.cu-item .content .cu-tag.sm {
  1112. display: inline-block;
  1113. margin-left: 10rpx;
  1114. height: 28rpx;
  1115. font-size: 16rpx;
  1116. line-height: 32rpx
  1117. }
  1118. .cu-list.menu-avatar>.cu-item .action {
  1119. width: 100rpx;
  1120. text-align: center
  1121. }
  1122. .cu-list.menu-avatar>.cu-item .action view+view {
  1123. margin-top: 10rpx
  1124. }
  1125. .cu-list.menu-avatar.comment>.cu-item .content {
  1126. position: relative;
  1127. left: 0;
  1128. width: auto;
  1129. flex: 1;
  1130. }
  1131. .cu-list.menu-avatar.comment>.cu-item {
  1132. padding: 30rpx 30rpx 30rpx 120rpx;
  1133. height: auto
  1134. }
  1135. .cu-list.menu-avatar.comment .cu-avatar {
  1136. align-self: flex-start
  1137. }
  1138. .cu-list.menu>.cu-item {
  1139. position: relative;
  1140. display: flex;
  1141. padding: 0 30rpx;
  1142. min-height: 100rpx;
  1143. background-color: var(--white);
  1144. justify-content: space-between;
  1145. align-items: center
  1146. }
  1147. .cu-list.menu>.cu-item:last-child:after {
  1148. border: none
  1149. }
  1150. .cu-list.menu>.cu-item:after {
  1151. position: absolute;
  1152. top: 0;
  1153. left: 0;
  1154. box-sizing: border-box;
  1155. width: 200%;
  1156. height: 200%;
  1157. border-bottom: 1rpx solid #ddd;
  1158. border-radius: inherit;
  1159. content: " ";
  1160. transform: scale(.5);
  1161. transform-origin: 0 0;
  1162. pointer-events: none
  1163. }
  1164. .cu-list.menu>.cu-item.grayscale {
  1165. background-color: #f5f5f5
  1166. }
  1167. .cu-list.menu>.cu-item.cur {
  1168. background-color: #fcf7e9
  1169. }
  1170. .cu-list.menu>.cu-item.arrow {
  1171. padding-right: 90rpx
  1172. }
  1173. .cu-list.menu>.cu-item.arrow:before {
  1174. position: absolute;
  1175. top: 0;
  1176. right: 30rpx;
  1177. bottom: 0;
  1178. display: block;
  1179. margin: auto;
  1180. width: 30rpx;
  1181. height: 30rpx;
  1182. color: var(--grey);
  1183. content: "\e6a3";
  1184. text-align: center;
  1185. font-size: 34rpx;
  1186. font-family: "cuIcon";
  1187. line-height: 30rpx
  1188. }
  1189. .cu-list.menu>.cu-item button.content {
  1190. padding: 0;
  1191. background-color: transparent;
  1192. justify-content: flex-start
  1193. }
  1194. .cu-list.menu>.cu-item button.content:after {
  1195. display: none
  1196. }
  1197. .cu-list.menu>.cu-item .cu-avatar-group .cu-avatar {
  1198. border-color: var(--white)
  1199. }
  1200. .cu-list.menu>.cu-item .content>view:first-child {
  1201. display: flex;
  1202. align-items: center
  1203. }
  1204. .cu-list.menu>.cu-item .content>text[class*=cuIcon] {
  1205. display: inline-block;
  1206. margin-right: 10rpx;
  1207. width: 1.6em;
  1208. text-align: center
  1209. }
  1210. .cu-list.menu>.cu-item .content>image {
  1211. display: inline-block;
  1212. margin-right: 10rpx;
  1213. width: 1.6em;
  1214. height: 1.6em;
  1215. vertical-align: middle
  1216. }
  1217. .cu-list.menu>.cu-item .content {
  1218. font-size: 30rpx;
  1219. line-height: 1.6em;
  1220. flex: 1
  1221. }
  1222. .cu-list.menu>.cu-item .content .cu-tag.sm {
  1223. display: inline-block;
  1224. margin-left: 10rpx;
  1225. height: 28rpx;
  1226. font-size: 16rpx;
  1227. line-height: 32rpx
  1228. }
  1229. .cu-list.menu>.cu-item .action .cu-tag:empty {
  1230. right: 10rpx
  1231. }
  1232. .cu-list.menu {
  1233. display: block;
  1234. overflow: hidden
  1235. }
  1236. .cu-list.menu.sm-border>.cu-item:after {
  1237. left: 30rpx;
  1238. width: calc(200% - 120rpx)
  1239. }
  1240. .cu-list.grid>.cu-item {
  1241. position: relative;
  1242. display: flex;
  1243. padding: 20rpx 0 30rpx;
  1244. transition-duration: 0s;
  1245. flex-direction: column
  1246. }
  1247. .cu-list.grid>.cu-item:after {
  1248. position: absolute;
  1249. top: 0;
  1250. left: 0;
  1251. box-sizing: border-box;
  1252. width: 200%;
  1253. height: 200%;
  1254. border-right: 1px solid rgba(0, 0, 0, .1);
  1255. border-bottom: 1px solid rgba(0, 0, 0, .1);
  1256. border-radius: inherit;
  1257. content: " ";
  1258. transform: scale(.5);
  1259. transform-origin: 0 0;
  1260. pointer-events: none
  1261. }
  1262. .cu-list.grid>.cu-item text {
  1263. display: block;
  1264. margin-top: 10rpx;
  1265. color: #888;
  1266. font-size: 26rpx;
  1267. line-height: 40rpx
  1268. }
  1269. .cu-list.grid>.cu-item [class*=cuIcon] {
  1270. position: relative;
  1271. display: block;
  1272. margin-top: 20rpx;
  1273. width: 100%;
  1274. font-size: 48rpx
  1275. }
  1276. .cu-list.grid>.cu-item .cu-tag {
  1277. right: auto;
  1278. left: 50%;
  1279. margin-left: 20rpx
  1280. }
  1281. .cu-list.grid {
  1282. background-color: var(--white);
  1283. text-align: center
  1284. }
  1285. .cu-list.grid.no-border>.cu-item {
  1286. padding-top: 10rpx;
  1287. padding-bottom: 20rpx
  1288. }
  1289. .cu-list.grid.no-border>.cu-item:after {
  1290. border: none
  1291. }
  1292. .cu-list.grid.no-border {
  1293. padding: 20rpx 10rpx
  1294. }
  1295. .cu-list.grid.col-3>.cu-item:nth-child(3n):after,
  1296. .cu-list.grid.col-4>.cu-item:nth-child(4n):after,
  1297. .cu-list.grid.col-5>.cu-item:nth-child(5n):after {
  1298. border-right-width: 0
  1299. }
  1300. .cu-list.card-menu {
  1301. overflow: hidden;
  1302. margin-right: 30rpx;
  1303. margin-left: 30rpx;
  1304. border-radius: 20rpx
  1305. }
  1306. /* ==================
  1307. 操作条
  1308. ==================== */
  1309. .cu-bar {
  1310. display: flex;
  1311. position: relative;
  1312. align-items: center;
  1313. min-height: 100rpx;
  1314. justify-content: space-between;
  1315. }
  1316. .cu-bar .action {
  1317. display: flex;
  1318. align-items: center;
  1319. height: 100%;
  1320. justify-content: center;
  1321. max-width: 100%;
  1322. }
  1323. .cu-bar .action.border-title {
  1324. position: relative;
  1325. top: -10rpx;
  1326. }
  1327. .cu-bar .action.border-title text[class*="bg-"]:last-child {
  1328. position: absolute;
  1329. bottom: -0.5rem;
  1330. min-width: 2rem;
  1331. height: 6rpx;
  1332. left: 0;
  1333. }
  1334. .cu-bar .action.sub-title {
  1335. position: relative;
  1336. top: -0.2rem;
  1337. }
  1338. .cu-bar .action.sub-title text {
  1339. position: relative;
  1340. z-index: 1;
  1341. }
  1342. .cu-bar .action.sub-title text[class*="bg-"]:last-child {
  1343. position: absolute;
  1344. display: inline-block;
  1345. bottom: -0.2rem;
  1346. border-radius: 6rpx;
  1347. width: 100%;
  1348. height: 0.6rem;
  1349. left: 0.6rem;
  1350. opacity: 0.3;
  1351. z-index: 0;
  1352. }
  1353. .cu-bar .action.sub-title text[class*="text-"]:last-child {
  1354. position: absolute;
  1355. display: inline-block;
  1356. bottom: -0.7rem;
  1357. left: 0.5rem;
  1358. opacity: 0.2;
  1359. z-index: 0;
  1360. text-align: right;
  1361. font-weight: 900;
  1362. font-size: 36rpx;
  1363. }
  1364. .cu-bar.justify-center .action.border-title text:last-child,
  1365. .cu-bar.justify-center .action.sub-title text:last-child {
  1366. left: 0;
  1367. right: 0;
  1368. margin: auto;
  1369. text-align: center;
  1370. }
  1371. .cu-bar .action:first-child {
  1372. margin-left: 30rpx;
  1373. font-size: 30rpx;
  1374. }
  1375. .cu-bar .action text.text-cut {
  1376. text-align: left;
  1377. width: 100%;
  1378. }
  1379. .cu-bar .cu-avatar:first-child {
  1380. margin-left: 20rpx;
  1381. }
  1382. .cu-bar .action:first-child>text[class*="cuIcon-"] {
  1383. margin-left: -0.3em;
  1384. margin-right: 0.3em;
  1385. }
  1386. .cu-bar .action:last-child {
  1387. margin-right: 30rpx;
  1388. }
  1389. .cu-bar .action>text[class*="cuIcon-"],
  1390. .cu-bar .action>view[class*="cuIcon-"] {
  1391. font-size: 36rpx;
  1392. }
  1393. .cu-bar .action>text[class*="cuIcon-"]+text[class*="cuIcon-"] {
  1394. margin-left: 0.5em;
  1395. }
  1396. .cu-bar .content {
  1397. position: absolute;
  1398. text-align: center;
  1399. width: calc(100% - 340rpx);
  1400. left: 0;
  1401. right: 0;
  1402. bottom: 0;
  1403. top: 0;
  1404. margin: auto;
  1405. height: 60rpx;
  1406. font-size: 32rpx;
  1407. line-height: 60rpx;
  1408. cursor: none;
  1409. pointer-events: none;
  1410. text-overflow: ellipsis;
  1411. white-space: nowrap;
  1412. overflow: hidden;
  1413. }
  1414. .cu-bar.ios .content {
  1415. bottom: 7px;
  1416. height: 30px;
  1417. font-size: 32rpx;
  1418. line-height: 30px;
  1419. }
  1420. .cu-bar.btn-group {
  1421. justify-content: space-around;
  1422. }
  1423. .cu-bar.btn-group button {
  1424. padding: 20rpx 32rpx;
  1425. }
  1426. .cu-bar.btn-group button {
  1427. flex: 1;
  1428. margin: 0 20rpx;
  1429. max-width: 50%;
  1430. }
  1431. .cu-bar .search-form {
  1432. background-color: #f5f5f5;
  1433. line-height: 64rpx;
  1434. height: 64rpx;
  1435. font-size: 24rpx;
  1436. color: var(--black);
  1437. flex: 1;
  1438. display: flex;
  1439. align-items: center;
  1440. margin: 0 30rpx;
  1441. }
  1442. .cu-bar .search-form+.action {
  1443. margin-right: 30rpx;
  1444. }
  1445. .cu-bar .search-form input {
  1446. flex: 1;
  1447. padding-right: 30rpx;
  1448. height: 64rpx;
  1449. line-height: 64rpx;
  1450. font-size: 26rpx;
  1451. background-color: transparent;
  1452. }
  1453. .cu-bar .search-form [class*="cuIcon-"] {
  1454. margin: 0 0.5em 0 0.8em;
  1455. }
  1456. .cu-bar .search-form [class*="cuIcon-"]::before {
  1457. top: 0rpx;
  1458. }
  1459. .cu-bar.fixed,
  1460. .nav.fixed {
  1461. position: fixed;
  1462. width: 100%;
  1463. top: 0;
  1464. z-index: 1024;
  1465. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  1466. }
  1467. .cu-bar.foot {
  1468. position: fixed;
  1469. width: 100%;
  1470. bottom: 0;
  1471. z-index: 1024;
  1472. box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
  1473. }
  1474. .cu-bar.tabbar {
  1475. padding: 0;
  1476. height: calc(100rpx + env(safe-area-inset-bottom) / 2);
  1477. padding-bottom: calc(env(safe-area-inset-bottom) / 2);
  1478. }
  1479. .cu-tabbar-height {
  1480. min-height: 100rpx;
  1481. height: calc(100rpx + env(safe-area-inset-bottom) / 2);
  1482. }
  1483. .cu-bar.tabbar.shadow {
  1484. box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
  1485. }
  1486. .cu-bar.tabbar .action {
  1487. font-size: 22rpx;
  1488. position: relative;
  1489. flex: 1;
  1490. text-align: center;
  1491. padding: 0;
  1492. display: block;
  1493. height: auto;
  1494. line-height: 1;
  1495. margin: 0;
  1496. overflow: initial;
  1497. }
  1498. .cu-bar.tabbar.shop .action {
  1499. width: 140rpx;
  1500. flex: initial;
  1501. }
  1502. .cu-bar.tabbar .action.add-action {
  1503. position: relative;
  1504. z-index: 2;
  1505. padding-top: 50rpx;
  1506. background-color: inherit;
  1507. }
  1508. .cu-bar.tabbar .action.add-action [class*="cuIcon-"] {
  1509. position: absolute;
  1510. width: 70rpx;
  1511. z-index: 2;
  1512. height: 70rpx;
  1513. border-radius: 50%;
  1514. line-height: 70rpx;
  1515. font-size: 50rpx;
  1516. top: -35rpx;
  1517. left: 0;
  1518. right: 0;
  1519. margin: auto;
  1520. padding: 0;
  1521. }
  1522. .cu-bar.tabbar .action.add-action::after {
  1523. content: "";
  1524. position: absolute;
  1525. width: 100rpx;
  1526. height: 100rpx;
  1527. top: -50rpx;
  1528. left: 0;
  1529. right: 0;
  1530. margin: auto;
  1531. box-shadow: 0 -3rpx 8rpx rgba(0, 0, 0, 0.08);
  1532. border-radius: 50rpx;
  1533. background-color: inherit;
  1534. z-index: 0;
  1535. }
  1536. .cu-bar.tabbar .action.add-action::before {
  1537. content: "";
  1538. position: absolute;
  1539. width: 100rpx;
  1540. height: 30rpx;
  1541. bottom: 30rpx;
  1542. left: 0;
  1543. right: 0;
  1544. margin: auto;
  1545. background-color: inherit;
  1546. z-index: 1;
  1547. }
  1548. .cu-bar.tabbar .btn-group {
  1549. flex: 1;
  1550. display: flex;
  1551. justify-content: space-around;
  1552. align-items: center;
  1553. padding: 0 10rpx;
  1554. }
  1555. .cu-bar.tabbar button.action::after {
  1556. border: 0;
  1557. }
  1558. .cu-bar.tabbar .action [class*="cuIcon-"] {
  1559. width: 100rpx;
  1560. position: relative;
  1561. display: block;
  1562. height: auto;
  1563. margin: 0 auto 10rpx;
  1564. text-align: center;
  1565. font-size: 40rpx;
  1566. }
  1567. .cu-bar.tabbar .action .cuIcon-cu-image {
  1568. margin: 0 auto;
  1569. }
  1570. .cu-bar.tabbar .action .cuIcon-cu-image image {
  1571. width: 50rpx;
  1572. height: 50rpx;
  1573. display: inline-block;
  1574. }
  1575. .cu-bar.tabbar .submit {
  1576. align-items: center;
  1577. display: flex;
  1578. justify-content: center;
  1579. text-align: center;
  1580. position: relative;
  1581. flex: 2;
  1582. align-self: stretch;
  1583. }
  1584. .cu-bar.tabbar .submit:last-child {
  1585. flex: 2.6;
  1586. }
  1587. .cu-bar.tabbar .submit+.submit {
  1588. flex: 2;
  1589. }
  1590. .cu-bar.tabbar.border .action::before {
  1591. content: " ";
  1592. width: 200%;
  1593. height: 200%;
  1594. position: absolute;
  1595. top: 0;
  1596. left: 0;
  1597. transform: scale(0.5);
  1598. transform-origin: 0 0;
  1599. border-right: 1rpx solid rgba(0, 0, 0, 0.1);
  1600. z-index: 3;
  1601. }
  1602. .cu-bar.tabbar.border .action:last-child:before {
  1603. display: none;
  1604. }
  1605. .cu-bar.input {
  1606. padding-right: 20rpx;
  1607. background-color: var(--white);
  1608. }
  1609. .cu-bar.input input {
  1610. overflow: initial;
  1611. line-height: 64rpx;
  1612. height: 64rpx;
  1613. min-height: 64rpx;
  1614. flex: 1;
  1615. font-size: 30rpx;
  1616. margin: 0 20rpx;
  1617. }
  1618. .cu-bar.input .action {
  1619. margin-left: 20rpx;
  1620. }
  1621. .cu-bar.input .action [class*="cuIcon-"] {
  1622. font-size: 48rpx;
  1623. }
  1624. .cu-bar.input input+.action {
  1625. margin-right: 20rpx;
  1626. margin-left: 0rpx;
  1627. }
  1628. .cu-bar.input .action:first-child [class*="cuIcon-"] {
  1629. margin-left: 0rpx;
  1630. }
  1631. .cu-custom {
  1632. display: block;
  1633. position: relative;
  1634. }
  1635. .cu-custom .cu-bar .content {
  1636. width: calc(100% - 440rpx);
  1637. }
  1638. .cu-custom .cu-bar .content image {
  1639. height: 60rpx;
  1640. width: 240rpx;
  1641. }
  1642. .cu-custom .cu-bar {
  1643. min-height: 0px;
  1644. padding-right: 220rpx;
  1645. box-shadow: 0rpx 0rpx 0rpx;
  1646. z-index: 9999;
  1647. }
  1648. .cu-custom .cu-bar .border-custom {
  1649. position: relative;
  1650. background: rgba(0, 0, 0, 0.15);
  1651. border-radius: 1000rpx;
  1652. height: 30px;
  1653. }
  1654. .cu-custom .cu-bar .border-custom::after {
  1655. content: " ";
  1656. width: 200%;
  1657. height: 200%;
  1658. position: absolute;
  1659. top: 0;
  1660. left: 0;
  1661. border-radius: inherit;
  1662. transform: scale(0.5);
  1663. transform-origin: 0 0;
  1664. pointer-events: none;
  1665. box-sizing: border-box;
  1666. border: 1rpx solid var(--white);
  1667. opacity: 0.5;
  1668. }
  1669. .cu-custom .cu-bar .border-custom::before {
  1670. content: " ";
  1671. width: 1rpx;
  1672. height: 110%;
  1673. position: absolute;
  1674. top: 22.5%;
  1675. left: 0;
  1676. right: 0;
  1677. margin: auto;
  1678. transform: scale(0.5);
  1679. transform-origin: 0 0;
  1680. pointer-events: none;
  1681. box-sizing: border-box;
  1682. opacity: 0.6;
  1683. background-color: var(--white);
  1684. }
  1685. .cu-custom .cu-bar .border-custom text {
  1686. display: block;
  1687. flex: 1;
  1688. margin: auto !important;
  1689. text-align: center;
  1690. font-size: 34rpx;
  1691. }
  1692. /* ==================
  1693. 导航栏
  1694. ==================== */
  1695. .nav {
  1696. white-space: nowrap;
  1697. }
  1698. ::-webkit-scrollbar {
  1699. display: none;
  1700. }
  1701. .nav .cu-item {
  1702. height: 90rpx;
  1703. display: inline-block;
  1704. line-height: 90rpx;
  1705. margin: 0 10rpx;
  1706. padding: 0 20rpx;
  1707. }
  1708. .nav .cu-item.cur {
  1709. border-bottom: 4rpx solid;
  1710. }
  1711. /* ==================
  1712. 时间轴
  1713. ==================== */
  1714. .cu-timeline {
  1715. display: block;
  1716. background-color: var(--white);
  1717. }
  1718. .cu-timeline .cu-time {
  1719. width: 120rpx;
  1720. text-align: center;
  1721. padding: 20rpx 0;
  1722. font-size: 26rpx;
  1723. color: #888;
  1724. display: block;
  1725. }
  1726. .cu-timeline>.cu-item {
  1727. padding: 30rpx 30rpx 30rpx 120rpx;
  1728. position: relative;
  1729. display: block;
  1730. z-index: 0;
  1731. }
  1732. .cu-timeline>.cu-item:not([class*="text-"]) {
  1733. color: #ccc;
  1734. }
  1735. .cu-timeline>.cu-item::after {
  1736. content: "";
  1737. display: block;
  1738. position: absolute;
  1739. width: 1rpx;
  1740. background-color: #ddd;
  1741. left: 60rpx;
  1742. height: 100%;
  1743. top: 0;
  1744. z-index: 8;
  1745. }
  1746. .cu-timeline>.cu-item::before {
  1747. font-family: "cuIcon";
  1748. display: block;
  1749. position: absolute;
  1750. top: 36rpx;
  1751. z-index: 9;
  1752. background-color: var(--white);
  1753. width: 50rpx;
  1754. height: 50rpx;
  1755. text-align: center;
  1756. border: none;
  1757. line-height: 50rpx;
  1758. left: 36rpx;
  1759. }
  1760. .cu-timeline>.cu-item:not([class*="cuIcon-"])::before {
  1761. content: "\e763";
  1762. }
  1763. .cu-timeline>.cu-item[class*="cuIcon-"]::before {
  1764. background-color: var(--white);
  1765. width: 50rpx;
  1766. height: 50rpx;
  1767. text-align: center;
  1768. border: none;
  1769. line-height: 50rpx;
  1770. left: 36rpx;
  1771. }
  1772. .cu-timeline>.cu-item>.content {
  1773. padding: 30rpx;
  1774. border-radius: 6rpx;
  1775. display: block;
  1776. line-height: 1.6;
  1777. }
  1778. .cu-timeline>.cu-item>.content:not([class*="bg-"]) {
  1779. background-color: var(--ghostWhite);
  1780. color: var(--black);
  1781. }
  1782. .cu-timeline>.cu-item>.content+.content {
  1783. margin-top: 20rpx;
  1784. }
  1785. /* ==================
  1786. 聊天
  1787. ==================== */
  1788. .cu-chat {
  1789. display: flex;
  1790. flex-direction: column;
  1791. }
  1792. .cu-chat .cu-item {
  1793. display: flex;
  1794. padding: 30rpx 30rpx 70rpx;
  1795. position: relative;
  1796. }
  1797. .cu-chat .cu-item>.cu-avatar {
  1798. width: 80rpx;
  1799. height: 80rpx;
  1800. }
  1801. .cu-chat .cu-item>.main {
  1802. max-width: calc(100% - 260rpx);
  1803. margin: 0 40rpx;
  1804. display: flex;
  1805. align-items: center;
  1806. }
  1807. .cu-chat .cu-item>image {
  1808. height: 320rpx;
  1809. }
  1810. .cu-chat .cu-item>.main .content {
  1811. padding: 20rpx;
  1812. border-radius: 6rpx;
  1813. display: inline-flex;
  1814. max-width: 100%;
  1815. align-items: center;
  1816. font-size: 30rpx;
  1817. position: relative;
  1818. min-height: 80rpx;
  1819. line-height: 40rpx;
  1820. text-align: left;
  1821. }
  1822. .cu-chat .cu-item>.main .content:not([class*="bg-"]) {
  1823. background-color: var(--white);
  1824. color: var(--black);
  1825. }
  1826. .cu-chat .cu-item .date {
  1827. position: absolute;
  1828. font-size: 24rpx;
  1829. color: var(--grey);
  1830. width: calc(100% - 320rpx);
  1831. bottom: 20rpx;
  1832. left: 160rpx;
  1833. }
  1834. .cu-chat .cu-item .action {
  1835. padding: 0 30rpx;
  1836. display: flex;
  1837. align-items: center;
  1838. }
  1839. .cu-chat .cu-item>.main .content::after {
  1840. content: "";
  1841. top: 27rpx;
  1842. transform: rotate(45deg);
  1843. position: absolute;
  1844. z-index: 100;
  1845. display: inline-block;
  1846. overflow: hidden;
  1847. width: 24rpx;
  1848. height: 24rpx;
  1849. left: -12rpx;
  1850. right: initial;
  1851. background-color: inherit;
  1852. }
  1853. .cu-chat .cu-item.self>.main .content::after {
  1854. left: auto;
  1855. right: -12rpx;
  1856. }
  1857. .cu-chat .cu-item>.main .content::before {
  1858. content: "";
  1859. top: 30rpx;
  1860. transform: rotate(45deg);
  1861. position: absolute;
  1862. z-index: -1;
  1863. display: inline-block;
  1864. overflow: hidden;
  1865. width: 24rpx;
  1866. height: 24rpx;
  1867. left: -12rpx;
  1868. right: initial;
  1869. background-color: inherit;
  1870. filter: blur(5rpx);
  1871. opacity: 0.3;
  1872. }
  1873. .cu-chat .cu-item>.main .content:not([class*="bg-"])::before {
  1874. background-color: var(--black);
  1875. opacity: 0.1;
  1876. }
  1877. .cu-chat .cu-item.self>.main .content::before {
  1878. left: auto;
  1879. right: -12rpx;
  1880. }
  1881. .cu-chat .cu-item.self {
  1882. justify-content: flex-end;
  1883. text-align: right;
  1884. }
  1885. .cu-chat .cu-info {
  1886. display: inline-block;
  1887. margin: 20rpx auto;
  1888. font-size: 24rpx;
  1889. padding: 8rpx 12rpx;
  1890. background-color: rgba(0, 0, 0, 0.2);
  1891. border-radius: 6rpx;
  1892. color: var(--white);
  1893. max-width: 400rpx;
  1894. line-height: 1.4;
  1895. }
  1896. /* ==================
  1897. 卡片
  1898. ==================== */
  1899. .cu-card {
  1900. display: block;
  1901. overflow: hidden;
  1902. }
  1903. .cu-card>.cu-item {
  1904. display: block;
  1905. background-color: var(--white);
  1906. overflow: hidden;
  1907. border-radius: 10rpx;
  1908. margin: 30rpx;
  1909. }
  1910. .cu-card>.cu-item.shadow-blur {
  1911. overflow: initial;
  1912. }
  1913. .cu-card.no-card>.cu-item {
  1914. margin: 0rpx;
  1915. border-radius: 0rpx;
  1916. }
  1917. .cu-card .grid.grid-square {
  1918. margin-bottom: -20rpx;
  1919. }
  1920. .cu-card.case .image {
  1921. position: relative;
  1922. }
  1923. .cu-card.case .image image {
  1924. width: 100%;
  1925. }
  1926. .cu-card.case .image .cu-tag {
  1927. position: absolute;
  1928. right: 0;
  1929. top: 0;
  1930. }
  1931. .cu-card.case .image .cu-bar {
  1932. position: absolute;
  1933. bottom: 0;
  1934. width: 100%;
  1935. background-color: transparent;
  1936. padding: 0rpx 30rpx;
  1937. }
  1938. .cu-card.case.no-card .image {
  1939. margin: 30rpx 30rpx 0;
  1940. overflow: hidden;
  1941. border-radius: 10rpx;
  1942. }
  1943. .cu-card.dynamic {
  1944. display: block;
  1945. }
  1946. .cu-card.dynamic>.cu-item {
  1947. display: block;
  1948. background-color: var(--white);
  1949. overflow: hidden;
  1950. }
  1951. .cu-card.dynamic>.cu-item>.text-content {
  1952. padding: 0 30rpx 0;
  1953. max-height: 6.4em;
  1954. overflow: hidden;
  1955. font-size: 30rpx;
  1956. margin-bottom: 20rpx;
  1957. }
  1958. .cu-card.dynamic>.cu-item .square-img {
  1959. width: 100%;
  1960. height: 200rpx;
  1961. border-radius: 6rpx;
  1962. }
  1963. .cu-card.dynamic>.cu-item .only-img {
  1964. width: 100%;
  1965. height: 320rpx;
  1966. border-radius: 6rpx;
  1967. }
  1968. .cu-card.article {
  1969. display: block;
  1970. }
  1971. .cu-card.article>.cu-item {
  1972. padding-bottom: 30rpx;
  1973. }
  1974. .cu-card.article>.cu-item .title {
  1975. font-size: 30rpx;
  1976. font-weight: 900;
  1977. color: var(--black);
  1978. line-height: 100rpx;
  1979. padding: 0 30rpx;
  1980. }
  1981. .cu-card.article>.cu-item .content {
  1982. display: flex;
  1983. padding: 0 30rpx;
  1984. }
  1985. .cu-card.article>.cu-item .content>image {
  1986. width: 240rpx;
  1987. height: 6.4em;
  1988. margin-right: 20rpx;
  1989. border-radius: 6rpx;
  1990. }
  1991. .cu-card.article>.cu-item .content .desc {
  1992. flex: 1;
  1993. display: flex;
  1994. flex-direction: column;
  1995. justify-content: space-between;
  1996. }
  1997. .cu-card.article>.cu-item .content .text-content {
  1998. font-size: 28rpx;
  1999. color: #888;
  2000. height: 4.8em;
  2001. overflow: hidden;
  2002. }
  2003. /* ==================
  2004. 表单
  2005. ==================== */
  2006. .cu-form-group {
  2007. background-color: var(--white);
  2008. padding: 1rpx 30rpx;
  2009. display: flex;
  2010. align-items: center;
  2011. min-height: 100rpx;
  2012. justify-content: space-between;
  2013. }
  2014. .cu-form-group+.cu-form-group {
  2015. border-top: 1rpx solid #eee;
  2016. }
  2017. .cu-form-group .title {
  2018. text-align: justify;
  2019. padding-right: 30rpx;
  2020. font-size: 30rpx;
  2021. position: relative;
  2022. height: 60rpx;
  2023. line-height: 60rpx;
  2024. }
  2025. .cu-form-group input {
  2026. flex: 1;
  2027. font-size: 30rpx;
  2028. color: #555;
  2029. padding-right: 20rpx;
  2030. }
  2031. .cu-form-group>text[class*="cuIcon-"] {
  2032. font-size: 36rpx;
  2033. padding: 0;
  2034. box-sizing: border-box;
  2035. }
  2036. .cu-form-group textarea {
  2037. margin: 32rpx 0 30rpx;
  2038. height: 4.6em;
  2039. width: 100%;
  2040. line-height: 1.2em;
  2041. flex: 1;
  2042. font-size: 28rpx;
  2043. padding: 0;
  2044. }
  2045. .cu-form-group.align-start .title {
  2046. height: 1em;
  2047. margin-top: 32rpx;
  2048. line-height: 1em;
  2049. }
  2050. .cu-form-group picker {
  2051. flex: 1;
  2052. padding-right: 40rpx;
  2053. overflow: hidden;
  2054. position: relative;
  2055. }
  2056. .cu-form-group picker .picker {
  2057. line-height: 100rpx;
  2058. font-size: 28rpx;
  2059. text-overflow: ellipsis;
  2060. white-space: nowrap;
  2061. overflow: hidden;
  2062. width: 100%;
  2063. text-align: right;
  2064. }
  2065. .cu-form-group picker::after {
  2066. font-family: "cuIcon";
  2067. display: block;
  2068. content: "\e6a3";
  2069. position: absolute;
  2070. font-size: 34rpx;
  2071. color: var(--grey);
  2072. line-height: 100rpx;
  2073. width: 60rpx;
  2074. text-align: center;
  2075. top: 0;
  2076. bottom: 0;
  2077. right: -20rpx;
  2078. margin: auto;
  2079. }
  2080. .cu-form-group textarea[disabled],
  2081. .cu-form-group textarea[disabled] .placeholder {
  2082. color: transparent;
  2083. }
  2084. /* ==================
  2085. 模态窗口
  2086. ==================== */
  2087. .cu-modal {
  2088. position: fixed;
  2089. top: 0;
  2090. right: 0;
  2091. bottom: 0;
  2092. left: 0;
  2093. z-index: 1110;
  2094. opacity: 0;
  2095. outline: 0;
  2096. text-align: center;
  2097. -ms-transform: scale(1.185);
  2098. transform: scale(1.185);
  2099. backface-visibility: hidden;
  2100. perspective: 2000rpx;
  2101. background: rgba(0, 0, 0, 0.6);
  2102. transition: all 0.3s ease-in-out 0s;
  2103. pointer-events: none;
  2104. }
  2105. .cu-modal::before {
  2106. content: "\200B";
  2107. display: inline-block;
  2108. height: 100%;
  2109. vertical-align: middle;
  2110. }
  2111. .cu-modal.show {
  2112. opacity: 1;
  2113. transition-duration: 0.3s;
  2114. -ms-transform: scale(1);
  2115. transform: scale(1);
  2116. overflow-x: hidden;
  2117. overflow-y: auto;
  2118. pointer-events: auto;
  2119. }
  2120. .cu-dialog {
  2121. position: relative;
  2122. display: inline-block;
  2123. vertical-align: middle;
  2124. margin-left: auto;
  2125. margin-right: auto;
  2126. width: 680rpx;
  2127. max-width: 100%;
  2128. background-color: #f8f8f8;
  2129. border-radius: 10rpx;
  2130. overflow: hidden;
  2131. }
  2132. .cu-modal.bottom-modal::before {
  2133. vertical-align: bottom;
  2134. }
  2135. .cu-modal.bottom-modal .cu-dialog {
  2136. width: 100%;
  2137. border-radius: 0;
  2138. }
  2139. .cu-modal.bottom-modal {
  2140. margin-bottom: -1000rpx;
  2141. }
  2142. .cu-modal.bottom-modal.show {
  2143. margin-bottom: 0;
  2144. }
  2145. .cu-modal.drawer-modal {
  2146. transform: scale(1);
  2147. display: flex;
  2148. }
  2149. .cu-modal.drawer-modal .cu-dialog {
  2150. height: 100%;
  2151. min-width: 200rpx;
  2152. border-radius: 0;
  2153. margin: initial;
  2154. transition-duration: 0.3s;
  2155. }
  2156. .cu-modal.drawer-modal.justify-start .cu-dialog {
  2157. transform: translateX(-100%);
  2158. }
  2159. .cu-modal.drawer-modal.justify-end .cu-dialog {
  2160. transform: translateX(100%);
  2161. }
  2162. .cu-modal.drawer-modal.show .cu-dialog {
  2163. transform: translateX(0%);
  2164. }
  2165. .cu-modal .cu-dialog>.cu-bar:first-child .action{
  2166. min-width: 100rpx;
  2167. margin-right: 0;
  2168. min-height: 100rpx;
  2169. }
  2170. /* ==================
  2171. 轮播
  2172. ==================== */
  2173. swiper .a-swiper-dot {
  2174. display: inline-block;
  2175. width: 16rpx;
  2176. height: 16rpx;
  2177. background: rgba(0, 0, 0, .3);
  2178. border-radius: 50%;
  2179. vertical-align: middle;
  2180. }
  2181. swiper[class*="-dot"] .wx-swiper-dots {
  2182. display: flex;
  2183. align-items: center;
  2184. width: 100%;
  2185. justify-content: center;
  2186. }
  2187. swiper.square-dot .wx-swiper-dot {
  2188. background-color: var(--white);
  2189. opacity: 0.4;
  2190. width: 10rpx;
  2191. height: 10rpx;
  2192. border-radius: 20rpx;
  2193. margin: 0 8rpx !important;
  2194. }
  2195. swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active {
  2196. opacity: 1;
  2197. width: 30rpx;
  2198. }
  2199. swiper.round-dot .wx-swiper-dot {
  2200. width: 10rpx;
  2201. height: 10rpx;
  2202. position: relative;
  2203. margin: 4rpx 8rpx !important;
  2204. }
  2205. swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after {
  2206. content: "";
  2207. position: absolute;
  2208. width: 10rpx;
  2209. height: 10rpx;
  2210. top: 0rpx;
  2211. left: 0rpx;
  2212. right: 0;
  2213. bottom: 0;
  2214. margin: auto;
  2215. background-color: var(--white);
  2216. border-radius: 20rpx;
  2217. }
  2218. swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active {
  2219. width: 18rpx;
  2220. height: 18rpx;
  2221. }
  2222. .screen-swiper {
  2223. min-height: 375rpx;
  2224. }
  2225. .screen-swiper image,
  2226. .screen-swiper video,
  2227. .swiper-item image,
  2228. .swiper-item video {
  2229. width: 100%;
  2230. display: block;
  2231. height: 100%;
  2232. margin: 0;
  2233. pointer-events: none;
  2234. }
  2235. .card-swiper {
  2236. height: 420rpx !important;
  2237. }
  2238. .card-swiper swiper-item {
  2239. width: 610rpx !important;
  2240. left: 70rpx;
  2241. box-sizing: border-box;
  2242. padding: 40rpx 0rpx 70rpx;
  2243. overflow: initial;
  2244. }
  2245. .card-swiper swiper-item .swiper-item {
  2246. width: 100%;
  2247. display: block;
  2248. height: 100%;
  2249. border-radius: 10rpx;
  2250. transform: scale(0.9);
  2251. transition: all 0.2s ease-in 0s;
  2252. overflow: hidden;
  2253. }
  2254. .card-swiper swiper-item.cur .swiper-item {
  2255. transform: none;
  2256. transition: all 0.2s ease-in 0s;
  2257. }
  2258. .tower-swiper {
  2259. height: 420rpx;
  2260. position: relative;
  2261. max-width: 750rpx;
  2262. overflow: hidden;
  2263. }
  2264. .tower-swiper .tower-item {
  2265. position: absolute;
  2266. width: 300rpx;
  2267. height: 380rpx;
  2268. top: 0;
  2269. bottom: 0;
  2270. left: 50%;
  2271. margin: auto;
  2272. transition: all 0.2s ease-in 0s;
  2273. opacity: 1;
  2274. }
  2275. .tower-swiper .tower-item.none {
  2276. opacity: 0;
  2277. }
  2278. .tower-swiper .tower-item .swiper-item {
  2279. width: 100%;
  2280. height: 100%;
  2281. border-radius: 6rpx;
  2282. overflow: hidden;
  2283. }
  2284. /* ==================
  2285. 步骤条
  2286. ==================== */
  2287. .cu-steps {
  2288. display: flex;
  2289. }
  2290. scroll-view.cu-steps {
  2291. display: block;
  2292. white-space: nowrap;
  2293. }
  2294. scroll-view.cu-steps .cu-item {
  2295. display: inline-block;
  2296. }
  2297. .cu-steps .cu-item {
  2298. flex: 1;
  2299. text-align: center;
  2300. position: relative;
  2301. min-width: 100rpx;
  2302. }
  2303. .cu-steps .cu-item:not([class*="text-"]) {
  2304. color: var(--grey);
  2305. }
  2306. .cu-steps .cu-item [class*="cuIcon-"],
  2307. .cu-steps .cu-item .num {
  2308. display: block;
  2309. font-size: 40rpx;
  2310. line-height: 80rpx;
  2311. }
  2312. .cu-steps .cu-item::before,
  2313. .cu-steps .cu-item::after,
  2314. .cu-steps.steps-arrow .cu-item::before,
  2315. .cu-steps.steps-arrow .cu-item::after {
  2316. content: "";
  2317. display: block;
  2318. position: absolute;
  2319. height: 0px;
  2320. width: calc(100% - 80rpx);
  2321. border-bottom: 1px solid #ccc;
  2322. left: calc(0px - (100% - 80rpx) / 2);
  2323. top: 40rpx;
  2324. z-index: 0;
  2325. }
  2326. .cu-steps.steps-arrow .cu-item::before,
  2327. .cu-steps.steps-arrow .cu-item::after {
  2328. content: "\e6a3";
  2329. font-family: "cuIcon";
  2330. height: 30rpx;
  2331. border-bottom-width: 0px;
  2332. line-height: 30rpx;
  2333. top: 0;
  2334. bottom: 0;
  2335. margin: auto;
  2336. color: #ccc;
  2337. }
  2338. .cu-steps.steps-bottom .cu-item::before,
  2339. .cu-steps.steps-bottom .cu-item::after {
  2340. bottom: 40rpx;
  2341. top: initial;
  2342. }
  2343. .cu-steps .cu-item::after {
  2344. border-bottom: 1px solid currentColor;
  2345. width: 0px;
  2346. transition: all 0.3s ease-in-out 0s;
  2347. }
  2348. .cu-steps .cu-item[class*="text-"]::after {
  2349. width: calc(100% - 80rpx);
  2350. color: currentColor;
  2351. }
  2352. .cu-steps .cu-item:first-child::before,
  2353. .cu-steps .cu-item:first-child::after {
  2354. display: none;
  2355. }
  2356. .cu-steps .cu-item .num {
  2357. width: 40rpx;
  2358. height: 40rpx;
  2359. border-radius: 50%;
  2360. line-height: 40rpx;
  2361. margin: 20rpx auto;
  2362. font-size: 24rpx;
  2363. border: 1px solid currentColor;
  2364. position: relative;
  2365. overflow: hidden;
  2366. }
  2367. .cu-steps .cu-item[class*="text-"] .num {
  2368. background-color: currentColor;
  2369. }
  2370. .cu-steps .cu-item .num::before,
  2371. .cu-steps .cu-item .num::after {
  2372. content: attr(data-index);
  2373. position: absolute;
  2374. left: 0;
  2375. right: 0;
  2376. top: 0;
  2377. bottom: 0;
  2378. margin: auto;
  2379. transition: all 0.3s ease-in-out 0s;
  2380. transform: translateY(0rpx);
  2381. }
  2382. .cu-steps .cu-item[class*="text-"] .num::before {
  2383. transform: translateY(-40rpx);
  2384. color: var(--white);
  2385. }
  2386. .cu-steps .cu-item .num::after {
  2387. transform: translateY(40rpx);
  2388. color: var(--white);
  2389. transition: all 0.3s ease-in-out 0s;
  2390. }
  2391. .cu-steps .cu-item[class*="text-"] .num::after {
  2392. content: "\e645";
  2393. font-family: "cuIcon";
  2394. color: var(--white);
  2395. transform: translateY(0rpx);
  2396. }
  2397. .cu-steps .cu-item[class*="text-"] .num.err::after {
  2398. content: "\e646";
  2399. }
  2400. /* ==================
  2401. 布局
  2402. ==================== */
  2403. /* -- flex弹性布局 -- */
  2404. .flex {
  2405. display: flex;
  2406. }
  2407. .basis-xs {
  2408. flex-basis: 20%;
  2409. }
  2410. .basis-sm {
  2411. flex-basis: 40%;
  2412. }
  2413. .basis-df {
  2414. flex-basis: 50%;
  2415. }
  2416. .basis-lg {
  2417. flex-basis: 60%;
  2418. }
  2419. .basis-xl {
  2420. flex-basis: 80%;
  2421. }
  2422. .flex-sub {
  2423. flex: 1;
  2424. }
  2425. .flex-twice {
  2426. flex: 2;
  2427. }
  2428. .flex-treble {
  2429. flex: 3;
  2430. }
  2431. .flex-direction {
  2432. flex-direction: column;
  2433. }
  2434. .flex-wrap {
  2435. flex-wrap: wrap;
  2436. }
  2437. .align-start {
  2438. align-items: flex-start;
  2439. }
  2440. .align-end {
  2441. align-items: flex-end;
  2442. }
  2443. .align-center {
  2444. align-items: center;
  2445. }
  2446. .align-stretch {
  2447. align-items: stretch;
  2448. }
  2449. .self-start {
  2450. align-self: flex-start;
  2451. }
  2452. .self-center {
  2453. align-self: flex-center;
  2454. }
  2455. .self-end {
  2456. align-self: flex-end;
  2457. }
  2458. .self-stretch {
  2459. align-self: stretch;
  2460. }
  2461. .align-stretch {
  2462. align-items: stretch;
  2463. }
  2464. .justify-start {
  2465. justify-content: flex-start;
  2466. }
  2467. .justify-end {
  2468. justify-content: flex-end;
  2469. }
  2470. .justify-center {
  2471. justify-content: center;
  2472. }
  2473. .justify-between {
  2474. justify-content: space-between;
  2475. }
  2476. .justify-around {
  2477. justify-content: space-around;
  2478. }
  2479. /* grid布局 */
  2480. .grid {
  2481. display: flex;
  2482. flex-wrap: wrap;
  2483. }
  2484. .grid.grid-square {
  2485. overflow: hidden;
  2486. }
  2487. .grid.grid-square .cu-tag {
  2488. position: absolute;
  2489. right: 0;
  2490. top: 0;
  2491. border-bottom-left-radius: 6rpx;
  2492. padding: 6rpx 12rpx;
  2493. height: auto;
  2494. background-color: rgba(0, 0, 0, 0.5);
  2495. }
  2496. .grid.grid-square>view>text[class*="cuIcon-"] {
  2497. font-size: 52rpx;
  2498. position: absolute;
  2499. color: var(--grey);
  2500. margin: auto;
  2501. top: 0;
  2502. bottom: 0;
  2503. left: 0;
  2504. right: 0;
  2505. display: flex;
  2506. justify-content: center;
  2507. align-items: center;
  2508. flex-direction: column;
  2509. }
  2510. .grid.grid-square>view {
  2511. margin-right: 20rpx;
  2512. margin-bottom: 20rpx;
  2513. border-radius: 6rpx;
  2514. position: relative;
  2515. overflow: hidden;
  2516. }
  2517. .grid.grid-square>view.bg-img image {
  2518. width: 100%;
  2519. height: 100%;
  2520. position: absolute;
  2521. }
  2522. .grid.col-1.grid-square>view {
  2523. padding-bottom: 100%;
  2524. height: 0;
  2525. margin-right: 0;
  2526. }
  2527. .grid.col-2.grid-square>view {
  2528. padding-bottom: calc((100% - 20rpx)/2);
  2529. height: 0;
  2530. width: calc((100% - 20rpx)/2);
  2531. }
  2532. .grid.col-3.grid-square>view {
  2533. padding-bottom: calc((100% - 40rpx)/3);
  2534. height: 0;
  2535. width: calc((100% - 40rpx)/3);
  2536. }
  2537. .grid.col-4.grid-square>view {
  2538. padding-bottom: calc((100% - 60rpx)/4);
  2539. height: 0;
  2540. width: calc((100% - 60rpx)/4);
  2541. }
  2542. .grid.col-5.grid-square>view {
  2543. padding-bottom: calc((100% - 80rpx)/5);
  2544. height: 0;
  2545. width: calc((100% - 80rpx)/5);
  2546. }
  2547. .grid.col-2.grid-square>view:nth-child(2n),
  2548. .grid.col-3.grid-square>view:nth-child(3n),
  2549. .grid.col-4.grid-square>view:nth-child(4n),
  2550. .grid.col-5.grid-square>view:nth-child(5n){
  2551. margin-right: 0;
  2552. }
  2553. .grid.col-1>view {
  2554. width: 100%;
  2555. }
  2556. .grid.col-2>view {
  2557. width: 50%;
  2558. }
  2559. .grid.col-3>view {
  2560. width: 33.33%;
  2561. }
  2562. .grid.col-4>view {
  2563. width: 25%;
  2564. }
  2565. .grid.col-5>view {
  2566. width: 20%;
  2567. }
  2568. /* -- 内外边距 -- */
  2569. .margin-0 {
  2570. margin: 0;
  2571. }
  2572. .margin-xs {
  2573. margin: 10rpx;
  2574. }
  2575. .margin-sm {
  2576. margin: 20rpx;
  2577. }
  2578. .margin {
  2579. margin: 30rpx;
  2580. }
  2581. .margin-lg {
  2582. margin: 40rpx;
  2583. }
  2584. .margin-xl {
  2585. margin: 50rpx;
  2586. }
  2587. .margin-top-xs {
  2588. margin-top: 10rpx;
  2589. }
  2590. .margin-top-sm {
  2591. margin-top: 20rpx;
  2592. }
  2593. .margin-top {
  2594. margin-top: 30rpx;
  2595. }
  2596. .margin-top-lg {
  2597. margin-top: 40rpx;
  2598. }
  2599. .margin-top-xl {
  2600. margin-top: 50rpx;
  2601. }
  2602. .margin-right-xs {
  2603. margin-right: 10rpx;
  2604. }
  2605. .margin-right-sm {
  2606. margin-right: 20rpx;
  2607. }
  2608. .margin-right {
  2609. margin-right: 30rpx;
  2610. }
  2611. .margin-right-lg {
  2612. margin-right: 40rpx;
  2613. }
  2614. .margin-right-xl {
  2615. margin-right: 50rpx;
  2616. }
  2617. .margin-bottom-xs {
  2618. margin-bottom: 10rpx;
  2619. }
  2620. .margin-bottom-sm {
  2621. margin-bottom: 20rpx;
  2622. }
  2623. .margin-bottom {
  2624. margin-bottom: 30rpx;
  2625. }
  2626. .margin-bottom-lg {
  2627. margin-bottom: 40rpx;
  2628. }
  2629. .margin-bottom-xl {
  2630. margin-bottom: 50rpx;
  2631. }
  2632. .margin-left-xs {
  2633. margin-left: 10rpx;
  2634. }
  2635. .margin-left-sm {
  2636. margin-left: 20rpx;
  2637. }
  2638. .margin-left {
  2639. margin-left: 30rpx;
  2640. }
  2641. .margin-left-lg {
  2642. margin-left: 40rpx;
  2643. }
  2644. .margin-left-xl {
  2645. margin-left: 50rpx;
  2646. }
  2647. .margin-lr-xs {
  2648. margin-left: 10rpx;
  2649. margin-right: 10rpx;
  2650. }
  2651. .margin-lr-sm {
  2652. margin-left: 20rpx;
  2653. margin-right: 20rpx;
  2654. }
  2655. .margin-lr {
  2656. margin-left: 30rpx;
  2657. margin-right: 30rpx;
  2658. }
  2659. .margin-lr-lg {
  2660. margin-left: 40rpx;
  2661. margin-right: 40rpx;
  2662. }
  2663. .margin-lr-xl {
  2664. margin-left: 50rpx;
  2665. margin-right: 50rpx;
  2666. }
  2667. .margin-tb-xs {
  2668. margin-top: 10rpx;
  2669. margin-bottom: 10rpx;
  2670. }
  2671. .margin-tb-sm {
  2672. margin-top: 20rpx;
  2673. margin-bottom: 20rpx;
  2674. }
  2675. .margin-tb {
  2676. margin-top: 30rpx;
  2677. margin-bottom: 30rpx;
  2678. }
  2679. .margin-tb-lg {
  2680. margin-top: 40rpx;
  2681. margin-bottom: 40rpx;
  2682. }
  2683. .margin-tb-xl {
  2684. margin-top: 50rpx;
  2685. margin-bottom: 50rpx;
  2686. }
  2687. .padding-0 {
  2688. padding: 0;
  2689. }
  2690. .padding-xs {
  2691. padding: 10rpx;
  2692. }
  2693. .padding-sm {
  2694. padding: 20rpx;
  2695. }
  2696. .padding {
  2697. padding: 30rpx;
  2698. }
  2699. .padding-lg {
  2700. padding: 40rpx;
  2701. }
  2702. .padding-xl {
  2703. padding: 50rpx;
  2704. }
  2705. .padding-top-xs {
  2706. padding-top: 10rpx;
  2707. }
  2708. .padding-top-sm {
  2709. padding-top: 20rpx;
  2710. }
  2711. .padding-top {
  2712. padding-top: 30rpx;
  2713. }
  2714. .padding-top-lg {
  2715. padding-top: 40rpx;
  2716. }
  2717. .padding-top-xl {
  2718. padding-top: 50rpx;
  2719. }
  2720. .padding-right-xs {
  2721. padding-right: 10rpx;
  2722. }
  2723. .padding-right-sm {
  2724. padding-right: 20rpx;
  2725. }
  2726. .padding-right {
  2727. padding-right: 30rpx;
  2728. }
  2729. .padding-right-lg {
  2730. padding-right: 40rpx;
  2731. }
  2732. .padding-right-xl {
  2733. padding-right: 50rpx;
  2734. }
  2735. .padding-bottom-xs {
  2736. padding-bottom: 10rpx;
  2737. }
  2738. .padding-bottom-sm {
  2739. padding-bottom: 20rpx;
  2740. }
  2741. .padding-bottom {
  2742. padding-bottom: 30rpx;
  2743. }
  2744. .padding-bottom-lg {
  2745. padding-bottom: 40rpx;
  2746. }
  2747. .padding-bottom-xl {
  2748. padding-bottom: 50rpx;
  2749. }
  2750. .padding-left-xs {
  2751. padding-left: 10rpx;
  2752. }
  2753. .padding-left-sm {
  2754. padding-left: 20rpx;
  2755. }
  2756. .padding-left {
  2757. padding-left: 30rpx;
  2758. }
  2759. .padding-left-lg {
  2760. padding-left: 40rpx;
  2761. }
  2762. .padding-left-xl {
  2763. padding-left: 50rpx;
  2764. }
  2765. .padding-lr-xs {
  2766. padding-left: 10rpx;
  2767. padding-right: 10rpx;
  2768. }
  2769. .padding-lr-sm {
  2770. padding-left: 20rpx;
  2771. padding-right: 20rpx;
  2772. }
  2773. .padding-lr {
  2774. padding-left: 30rpx;
  2775. padding-right: 30rpx;
  2776. }
  2777. .padding-lr-lg {
  2778. padding-left: 40rpx;
  2779. padding-right: 40rpx;
  2780. }
  2781. .padding-lr-xl {
  2782. padding-left: 50rpx;
  2783. padding-right: 50rpx;
  2784. }
  2785. .padding-tb-xs {
  2786. padding-top: 10rpx;
  2787. padding-bottom: 10rpx;
  2788. }
  2789. .padding-tb-sm {
  2790. padding-top: 20rpx;
  2791. padding-bottom: 20rpx;
  2792. }
  2793. .padding-tb {
  2794. padding-top: 30rpx;
  2795. padding-bottom: 30rpx;
  2796. }
  2797. .padding-tb-lg {
  2798. padding-top: 40rpx;
  2799. padding-bottom: 40rpx;
  2800. }
  2801. .padding-tb-xl {
  2802. padding-top: 50rpx;
  2803. padding-bottom: 50rpx;
  2804. }
  2805. /* -- 浮动 -- */
  2806. .cf::after,
  2807. .cf::before {
  2808. content: " ";
  2809. display: table;
  2810. }
  2811. .cf::after {
  2812. clear: both;
  2813. }
  2814. .fl {
  2815. float: left;
  2816. }
  2817. .fr {
  2818. float: right;
  2819. }
  2820. /* ==================
  2821. 背景
  2822. ==================== */
  2823. .line-red::after,
  2824. .lines-red::after {
  2825. border-color: var(--red);
  2826. }
  2827. .line-orange::after,
  2828. .lines-orange::after {
  2829. border-color: var(--orange);
  2830. }
  2831. .line-yellow::after,
  2832. .lines-yellow::after {
  2833. border-color: var(--yellow);
  2834. }
  2835. .line-olive::after,
  2836. .lines-olive::after {
  2837. border-color: var(--olive);
  2838. }
  2839. .line-green::after,
  2840. .lines-green::after {
  2841. border-color: var(--green);
  2842. }
  2843. .line-cyan::after,
  2844. .lines-cyan::after {
  2845. border-color: var(--cyan);
  2846. }
  2847. .line-blue::after,
  2848. .lines-blue::after {
  2849. border-color: var(--blue);
  2850. }
  2851. .line-purple::after,
  2852. .lines-purple::after {
  2853. border-color: var(--purple);
  2854. }
  2855. .line-mauve::after,
  2856. .lines-mauve::after {
  2857. border-color: var(--mauve);
  2858. }
  2859. .line-pink::after,
  2860. .lines-pink::after {
  2861. border-color: var(--pink);
  2862. }
  2863. .line-brown::after,
  2864. .lines-brown::after {
  2865. border-color: var(--brown);
  2866. }
  2867. .line-grey::after,
  2868. .lines-grey::after {
  2869. border-color: var(--grey);
  2870. }
  2871. .line-gray::after,
  2872. .lines-gray::after {
  2873. border-color: var(--gray);
  2874. }
  2875. .line-black::after,
  2876. .lines-black::after {
  2877. border-color: var(--black);
  2878. }
  2879. .line-white::after,
  2880. .lines-white::after {
  2881. border-color: var(--white);
  2882. }
  2883. .bg-red {
  2884. background-color: var(--red);
  2885. color: var(--white);
  2886. }
  2887. .bg-orange {
  2888. background-color: var(--orange);
  2889. color: var(--white);
  2890. }
  2891. .bg-yellow {
  2892. background-color: var(--yellow);
  2893. color: var(--black);
  2894. }
  2895. .bg-olive {
  2896. background-color: var(--olive);
  2897. color: var(--white);
  2898. }
  2899. .bg-green {
  2900. background-color: var(--green);
  2901. color: var(--white);
  2902. }
  2903. .bg-cyan {
  2904. background-color: var(--cyan);
  2905. color: var(--white);
  2906. }
  2907. .bg-blue {
  2908. background-color: var(--blue);
  2909. color: var(--white);
  2910. }
  2911. .bg-purple {
  2912. background-color: var(--purple);
  2913. color: var(--white);
  2914. }
  2915. .bg-mauve {
  2916. background-color: var(--mauve);
  2917. color: var(--white);
  2918. }
  2919. .bg-pink {
  2920. background-color: var(--pink);
  2921. color: var(--white);
  2922. }
  2923. .bg-brown {
  2924. background-color: var(--brown);
  2925. color: var(--white);
  2926. }
  2927. .bg-grey {
  2928. background-color: var(--grey);
  2929. color: var(--white);
  2930. }
  2931. .bg-gray {
  2932. background-color: #f0f0f0;
  2933. color: var(--black);
  2934. }
  2935. .bg-black {
  2936. background-color: var(--black);
  2937. color: var(--white);
  2938. }
  2939. .bg-white {
  2940. background-color: var(--white);
  2941. color: var(--darkGray);
  2942. }
  2943. .bg-shadeTop {
  2944. background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
  2945. color: var(--white);
  2946. }
  2947. .bg-shadeBottom {
  2948. background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
  2949. color: var(--white);
  2950. }
  2951. .bg-red.light {
  2952. color: var(--red);
  2953. background-color: var(--redLight);
  2954. }
  2955. .bg-orange.light {
  2956. color: var(--orange);
  2957. background-color: var(--orangeLight);
  2958. }
  2959. .bg-yellow.light {
  2960. color: var(--yellow);
  2961. background-color: var(--yellowLight);
  2962. }
  2963. .bg-olive.light {
  2964. color: var(--olive);
  2965. background-color: var(--oliveLight);
  2966. }
  2967. .bg-green.light {
  2968. color: var(--green);
  2969. background-color: var(--greenLight);
  2970. }
  2971. .bg-cyan.light {
  2972. color: var(--cyan);
  2973. background-color: var(--cyanLight);
  2974. }
  2975. .bg-blue.light {
  2976. color: var(--blue);
  2977. background-color: var(--blueLight);
  2978. }
  2979. .bg-purple.light {
  2980. color: var(--purple);
  2981. background-color: var(--purpleLight);
  2982. }
  2983. .bg-mauve.light {
  2984. color: var(--mauve);
  2985. background-color: var(--mauveLight);
  2986. }
  2987. .bg-pink.light {
  2988. color: var(--pink);
  2989. background-color: var(--pinkLight);
  2990. }
  2991. .bg-brown.light {
  2992. color: var(--brown);
  2993. background-color: var(--brownLight);
  2994. }
  2995. .bg-grey.light {
  2996. color: var(--grey);
  2997. background-color: var(--greyLight);
  2998. }
  2999. .bg-gradual-red {
  3000. background-image: var(--gradualRed);
  3001. color: var(--white);
  3002. }
  3003. .bg-gradual-orange {
  3004. background-image: var(--gradualOrange);
  3005. color: var(--white);
  3006. }
  3007. .bg-gradual-green {
  3008. background-image: var(--gradualGreen);
  3009. color: var(--white);
  3010. }
  3011. .bg-gradual-purple {
  3012. background-image: var(--gradualPurple);
  3013. color: var(--white);
  3014. }
  3015. .bg-gradual-pink {
  3016. background-image: var(--gradualPink);
  3017. color: var(--white);
  3018. }
  3019. .bg-gradual-blue {
  3020. background-image: var(--gradualBlue);
  3021. color: var(--white);
  3022. }
  3023. .shadow[class*="-red"] {
  3024. box-shadow: var(--ShadowSize) var(--redShadow);
  3025. }
  3026. .shadow[class*="-orange"] {
  3027. box-shadow: var(--ShadowSize) var(--orangeShadow);
  3028. }
  3029. .shadow[class*="-yellow"] {
  3030. box-shadow: var(--ShadowSize) var(--yellowShadow);
  3031. }
  3032. .shadow[class*="-olive"] {
  3033. box-shadow: var(--ShadowSize) var(--oliveShadow);
  3034. }
  3035. .shadow[class*="-green"] {
  3036. box-shadow: var(--ShadowSize) var(--greenShadow);
  3037. }
  3038. .shadow[class*="-cyan"] {
  3039. box-shadow: var(--ShadowSize) var(--cyanShadow);
  3040. }
  3041. .shadow[class*="-blue"] {
  3042. box-shadow: var(--ShadowSize) var(--blueShadow);
  3043. }
  3044. .shadow[class*="-purple"] {
  3045. box-shadow: var(--ShadowSize) var(--purpleShadow);
  3046. }
  3047. .shadow[class*="-mauve"] {
  3048. box-shadow: var(--ShadowSize) var(--mauveShadow);
  3049. }
  3050. .shadow[class*="-pink"] {
  3051. box-shadow: var(--ShadowSize) var(--pinkShadow);
  3052. }
  3053. .shadow[class*="-brown"] {
  3054. box-shadow: var(--ShadowSize) var(--brownShadow);
  3055. }
  3056. .shadow[class*="-grey"] {
  3057. box-shadow: var(--ShadowSize) var(--greyShadow);
  3058. }
  3059. .shadow[class*="-gray"] {
  3060. box-shadow: var(--ShadowSize) var(--grayShadow);
  3061. }
  3062. .shadow[class*="-black"] {
  3063. box-shadow: var(--ShadowSize) var(--blackShadow);
  3064. }
  3065. .shadow[class*="-white"] {
  3066. box-shadow: var(--ShadowSize) var(--blackShadow);
  3067. }
  3068. .text-shadow[class*="-red"] {
  3069. text-shadow: var(--ShadowSize) var(--redShadow);
  3070. }
  3071. .text-shadow[class*="-orange"] {
  3072. text-shadow: var(--ShadowSize) var(--orangeShadow);
  3073. }
  3074. .text-shadow[class*="-yellow"] {
  3075. text-shadow: var(--ShadowSize) var(--yellowShadow);
  3076. }
  3077. .text-shadow[class*="-olive"] {
  3078. text-shadow: var(--ShadowSize) var(--oliveShadow);
  3079. }
  3080. .text-shadow[class*="-green"] {
  3081. text-shadow: var(--ShadowSize) var(--greenShadow);
  3082. }
  3083. .text-shadow[class*="-cyan"] {
  3084. text-shadow: var(--ShadowSize) var(--cyanShadow);
  3085. }
  3086. .text-shadow[class*="-blue"] {
  3087. text-shadow: var(--ShadowSize) var(--blueShadow);
  3088. }
  3089. .text-shadow[class*="-purple"] {
  3090. text-shadow: var(--ShadowSize) var(--purpleShadow);
  3091. }
  3092. .text-shadow[class*="-mauve"] {
  3093. text-shadow: var(--ShadowSize) var(--mauveShadow);
  3094. }
  3095. .text-shadow[class*="-pink"] {
  3096. text-shadow: var(--ShadowSize) var(--pinkShadow);
  3097. }
  3098. .text-shadow[class*="-brown"] {
  3099. text-shadow: var(--ShadowSize) var(--brownShadow);
  3100. }
  3101. .text-shadow[class*="-grey"] {
  3102. text-shadow: var(--ShadowSize) var(--greyShadow);
  3103. }
  3104. .text-shadow[class*="-gray"] {
  3105. text-shadow: var(--ShadowSize) var(--grayShadow);
  3106. }
  3107. .text-shadow[class*="-black"] {
  3108. text-shadow: var(--ShadowSize) var(--blackShadow);
  3109. }
  3110. .bg-img {
  3111. background-size: cover;
  3112. background-position: center;
  3113. background-repeat: no-repeat;
  3114. }
  3115. .bg-mask {
  3116. background-color: var(--black);
  3117. position: relative;
  3118. }
  3119. .bg-mask::after {
  3120. content: "";
  3121. border-radius: inherit;
  3122. width: 100%;
  3123. height: 100%;
  3124. display: block;
  3125. background-color: rgba(0, 0, 0, 0.4);
  3126. position: absolute;
  3127. left: 0;
  3128. right: 0;
  3129. bottom: 0;
  3130. top: 0;
  3131. }
  3132. .bg-mask view,
  3133. .bg-mask cover-view {
  3134. z-index: 5;
  3135. position: relative;
  3136. }
  3137. .bg-video {
  3138. position: relative;
  3139. }
  3140. .bg-video video {
  3141. display: block;
  3142. height: 100%;
  3143. width: 100%;
  3144. -o-object-fit: cover;
  3145. object-fit: cover;
  3146. position: absolute;
  3147. top: 0;
  3148. z-index: 0;
  3149. pointer-events: none;
  3150. }
  3151. /* ==================
  3152. 文本
  3153. ==================== */
  3154. .text-xs {
  3155. font-size: 20rpx;
  3156. }
  3157. .text-sm {
  3158. font-size: 24rpx;
  3159. }
  3160. .text-df {
  3161. font-size: 28rpx;
  3162. }
  3163. .text-lg {
  3164. font-size: 32rpx;
  3165. }
  3166. .text-xl {
  3167. font-size: 36rpx;
  3168. }
  3169. .text-xxl {
  3170. font-size: 44rpx;
  3171. }
  3172. .text-sl {
  3173. font-size: 80rpx;
  3174. }
  3175. .text-xsl {
  3176. font-size: 120rpx;
  3177. }
  3178. .text-Abc {
  3179. text-transform: Capitalize;
  3180. }
  3181. .text-ABC {
  3182. text-transform: Uppercase;
  3183. }
  3184. .text-abc {
  3185. text-transform: Lowercase;
  3186. }
  3187. .text-price::before {
  3188. content: "¥";
  3189. font-size: 80%;
  3190. margin-right: 4rpx;
  3191. }
  3192. .text-cut {
  3193. text-overflow: ellipsis;
  3194. white-space: nowrap;
  3195. overflow: hidden;
  3196. }
  3197. .text-bold {
  3198. font-weight: bold;
  3199. }
  3200. .text-center {
  3201. text-align: center;
  3202. }
  3203. .text-content {
  3204. line-height: 1.6;
  3205. }
  3206. .text-left {
  3207. text-align: left;
  3208. }
  3209. .text-right {
  3210. text-align: right;
  3211. }
  3212. .text-red,
  3213. .line-red,
  3214. .lines-red {
  3215. color: var(--red);
  3216. }
  3217. .text-orange,
  3218. .line-orange,
  3219. .lines-orange {
  3220. color: var(--orange);
  3221. }
  3222. .text-yellow,
  3223. .line-yellow,
  3224. .lines-yellow {
  3225. color: var(--yellow);
  3226. }
  3227. .text-olive,
  3228. .line-olive,
  3229. .lines-olive {
  3230. color: var(--olive);
  3231. }
  3232. .text-green,
  3233. .line-green,
  3234. .lines-green {
  3235. color: var(--green);
  3236. }
  3237. .text-cyan,
  3238. .line-cyan,
  3239. .lines-cyan {
  3240. color: var(--cyan);
  3241. }
  3242. .text-blue,
  3243. .line-blue,
  3244. .lines-blue {
  3245. color: var(--blue);
  3246. }
  3247. .text-purple,
  3248. .line-purple,
  3249. .lines-purple {
  3250. color: var(--purple);
  3251. }
  3252. .text-mauve,
  3253. .line-mauve,
  3254. .lines-mauve {
  3255. color: var(--mauve);
  3256. }
  3257. .text-pink,
  3258. .line-pink,
  3259. .lines-pink {
  3260. color: var(--pink);
  3261. }
  3262. .text-brown,
  3263. .line-brown,
  3264. .lines-brown {
  3265. color: var(--brown);
  3266. }
  3267. .text-grey,
  3268. .line-grey,
  3269. .lines-grey {
  3270. color: var(--grey);
  3271. }
  3272. .text-gray,
  3273. .line-gray,
  3274. .lines-gray {
  3275. color: var(--gray);
  3276. }
  3277. .text-black,
  3278. .line-black,
  3279. .lines-black {
  3280. color: var(--black);
  3281. }
  3282. .text-white,
  3283. .line-white,
  3284. .lines-white {
  3285. color: var(--white);
  3286. }