deepSeekHome.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .deekSeek {
  2. width: 100%;
  3. /* 使用 fill-available 确保兼容性 */
  4. height: -webkit-fill-available;
  5. height: 100dvh;
  6. /* 新的动态视口单位,推荐使用 */
  7. background: linear-gradient(90.52deg, rgba(24, 126, 255, 1) 1.54%, rgba(23, 66, 255, 1) 99.26%);
  8. padding-bottom: env(safe-area-inset-bottom);
  9. /* 适配底部安全区域 */
  10. &-header {
  11. width: 100%;
  12. height: 60px;
  13. // border: 1px solid rgba(24, 126, 255, 0.5);
  14. display: flex;
  15. color: #FFFFFF;
  16. align-items: center;
  17. overflow-x: auto;
  18. overflow-y: hidden;
  19. box-sizing: border-box;
  20. background-color: blur(10px);
  21. background: rgba(0, 20, 98, 0.658);
  22. padding: 0 16px;
  23. box-shadow: 0 4px 26px rgba(0, 0, 0, 0.50);
  24. @media (max-width: 768px) {
  25. height: 45px;
  26. padding: 0 16px;
  27. }
  28. &::before {
  29. content: '';
  30. position: absolute;
  31. top: 0;
  32. left: 0;
  33. }
  34. &__item {
  35. position: relative;
  36. padding: 8px 12px;
  37. padding-bottom: 12px;
  38. border-radius: 999px;
  39. white-space: nowrap;
  40. color: #FFFFFF;
  41. cursor: pointer;
  42. transition: color 0.2s ease, font-weight 0.2s ease;
  43. &::after {
  44. content: '';
  45. position: absolute;
  46. bottom: 0;
  47. left: 50%;
  48. transform: translateX(-50%) scaleX(0);
  49. width: 60%;
  50. height: 3px;
  51. background: #FFFFFF;
  52. border-radius: 2px;
  53. transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  54. transform-origin: center;
  55. }
  56. &.active::after {
  57. transform: translateX(-50%) scaleX(1);
  58. }
  59. &:hover {
  60. color: #CFE4FF;
  61. font-weight: 700 !important;
  62. }
  63. }
  64. }
  65. &-content {
  66. width: 100%;
  67. height: calc(100% - 50px - env(safe-area-inset-bottom));
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. flex-direction: column;
  72. padding: 16px 16px 0px;
  73. box-sizing: border-box;
  74. transition: all 0.3s ease;
  75. &-title {
  76. display: flex;
  77. justify-content: center;
  78. margin-bottom: 5px;
  79. img {
  80. width: 200px;
  81. }
  82. }
  83. &-title-sm {
  84. font-size: 20px;
  85. color: #FFFFFF;
  86. @media (max-width: 768px) {
  87. font-size: 16px;
  88. }
  89. @media (max-width: 480px) {
  90. font-size: 14px;
  91. }
  92. }
  93. &-pc {
  94. width: 36%;
  95. min-width: 400px;
  96. height: 78%;
  97. background: #FFFFFF;
  98. border-radius: 12px;
  99. overflow: hidden;
  100. }
  101. &-mobile {
  102. width: 100%;
  103. height: 82%;
  104. background: #FFFFFF;
  105. border-radius: 12px;
  106. overflow: hidden;
  107. transition: height 0.3s ease;
  108. }
  109. }
  110. &-menuds {
  111. max-width: 130px;
  112. overflow: hidden;
  113. text-overflow: ellipsis;
  114. white-space: nowrap;
  115. cursor:pointer;
  116. }
  117. }
  118. // 开放平台按钮样式
  119. .open-platform-btn {
  120. background: #FFFFFF;
  121. color: #1890FF;
  122. border: 1px solid #1890FF;
  123. border-radius: 6px;
  124. padding: 8px 16px;
  125. font-size: 14px;
  126. font-weight: 500;
  127. cursor: pointer;
  128. transition: all 0.3s ease;
  129. white-space: nowrap;
  130. &:hover {
  131. background: #F0F8FF;
  132. border-color: #40A9FF;
  133. }
  134. &:active {
  135. background: #E6F7FF;
  136. border-color: #1890FF;
  137. }
  138. }