index.wxss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .card-carousel {
  2. position: relative;
  3. width: 100%;
  4. }
  5. .carousel-swiper {
  6. width: 100%;
  7. }
  8. .slide {
  9. position: relative;
  10. transition: transform 0.3s ease;
  11. padding: 0 0;
  12. display: flex;
  13. align-items: center;
  14. justify-content: center;
  15. }
  16. .slide.inactive {
  17. transform: translateX(0);
  18. }
  19. .slide.active .card-image {
  20. border-radius: 16rpx;
  21. }
  22. .slide.inactive .card-image {
  23. filter: blur(0px);
  24. }
  25. .card {
  26. position: relative;
  27. overflow: hidden;
  28. }
  29. .active-card {
  30. width: 100%;
  31. }
  32. .side-card {
  33. width: 100%;
  34. transition: all 0.3s ease;
  35. }
  36. .slide.inactive .side-card {
  37. }
  38. .card-image {
  39. width: 100%;
  40. display: block;
  41. }
  42. .mask {
  43. position: absolute;
  44. left: 0;
  45. top: 0;
  46. right: 0;
  47. bottom: 0;
  48. background: rgba(0,0,0,0.25);
  49. pointer-events: none;
  50. transition: opacity 0.3s ease;
  51. }
  52. .mask.show {
  53. opacity: 1;
  54. }
  55. .mask.hide {
  56. opacity: 0;
  57. }
  58. .indicators {
  59. position: absolute;
  60. width: 100%;
  61. left: 0;
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. gap: 8rpx;
  66. }
  67. .dot {
  68. width: 12rpx;
  69. height: 12rpx;
  70. border-radius: 50%;
  71. background: rgba(255,255,255,0.6);
  72. }
  73. .dot.active {
  74. background: #ffffff;
  75. }
  76. .online-exhibition {
  77. position: absolute;
  78. left: 0;
  79. top: 0;
  80. right: 0;
  81. bottom: 0;
  82. display: flex;
  83. flex-direction: column;
  84. align-items: center;
  85. justify-content: center;
  86. color: #fff;
  87. transition: opacity 0.3s ease;
  88. }
  89. .online-exhibition.show {
  90. opacity: 1;
  91. pointer-events: none;
  92. }
  93. .online-exhibition.hide {
  94. opacity: 0;
  95. pointer-events: none;
  96. }
  97. .online-icon {
  98. width: 80rpx;
  99. height: 80rpx;
  100. margin-bottom: 12rpx;
  101. }
  102. .online-text {
  103. font-size: 28rpx;
  104. color: #fff;
  105. }