style.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. @use '@/styles/variables.scss' as *;
  2. // 导入全局样式变量
  3. // ===== 应用布局 =====
  4. .app-layout {
  5. minHeight: 100vh;
  6. display: flex;
  7. flex-direction: column;
  8. background: $bg-primary;
  9. }
  10. // ===== 主体内容容器 =====
  11. .main-container {
  12. display: flex;
  13. flex: 1;
  14. margin-top: $header-height;
  15. margin-left: $sidebar-width;
  16. background: $bg-primary;
  17. height: calc(100vh - $header-height);
  18. overflow: hidden;
  19. transition: margin-left 0.2s ease; // 添加过渡动画
  20. }
  21. // 响应式调整
  22. @media (max-width: 1024px) {
  23. .main-container {
  24. margin-left: $sidebar-width-md; // 中等屏幕调整
  25. }
  26. }
  27. @media (max-width: 768px) {
  28. .main-container {
  29. margin-left: 0; // 移动端默认无 Sidebar
  30. // 当 Sidebar 展开时(collapsed=false)
  31. &.sidebar-open {
  32. margin-left: $sidebar-width;
  33. }
  34. }
  35. }
  36. // ===== 内层 Layout =====
  37. .main-layout {
  38. flex: 1;
  39. background: transparent;
  40. display: flex;
  41. flex-direction: column;
  42. overflow: hidden;
  43. }
  44. .main-content {
  45. padding: 0;
  46. display: flex;
  47. flex-direction: column;
  48. flex: 1;
  49. .breadcrumb-container {
  50. width: 100%;
  51. height: 44px;
  52. padding: $spacing-3 $spacing-6;
  53. display: flex;
  54. justify-content: space-between;
  55. align-items: center;
  56. border-bottom: 1px solid $border-base;
  57. background: $bg-secondary;
  58. position: sticky;
  59. top: 0;
  60. z-index: $z-index-sticky;
  61. }
  62. .breadcrumb {
  63. flex: 1;
  64. font-weight: $font-weight-medium;
  65. .ant-breadcrumb-link {
  66. a {
  67. &:hover {
  68. color: $primary-color !important;
  69. font-weight: $font-weight-medium;
  70. }
  71. }
  72. }
  73. }
  74. .breadcrumb-actions {
  75. display: flex;
  76. align-items: center;
  77. gap: $spacing-2;
  78. }
  79. /* 内容区域滚动 - 隐藏式滚动条 */
  80. .content-scroll-area {
  81. flex: 1;
  82. overflow-y: auto;
  83. background: $bg-secondary;
  84. position: relative;
  85. // 隐藏式滚动条
  86. scrollbar-width: none; // Firefox
  87. -ms-overflow-style: none; // IE/Edge
  88. &::-webkit-scrollbar {
  89. display: none; // Chrome/Safari/Opera
  90. }
  91. }
  92. }
  93. .nav {
  94. width: 200px !important;
  95. height: calc(100vh - $header-height) !important;
  96. background: $sidebar-bg !important;
  97. border-right: 1px solid $border-base;
  98. position: fixed;
  99. top: $header-height;
  100. left: 0;
  101. z-index: $z-index-fixed;
  102. .ant-menu {
  103. background-color: transparent !important;
  104. overflow-x: hidden;
  105. overflow-y: auto;
  106. &-item {
  107. transition: font-weight 0.2s ease;
  108. &-selected, &-active {
  109. font-weight: 600 !important;
  110. }
  111. }
  112. }
  113. &-bottom {
  114. width: 100%;
  115. height: 44px;
  116. display: flex;
  117. justify-content: center;
  118. align-items: center;
  119. }
  120. }
  121. .model-selector-modal {
  122. .ant-modal-body {
  123. padding: $spacing-5;
  124. }
  125. }
  126. .route-option {
  127. border-radius: $radius-lg;
  128. overflow: hidden;
  129. transition: all 0.3s;
  130. height: 480px;
  131. display: flex;
  132. flex-direction: column;
  133. .ant-card-cover {
  134. display: flex;
  135. justify-content: center;
  136. padding: $spacing-12 0;
  137. background: $bg-tertiary;
  138. flex: 0 0 auto;
  139. }
  140. .ant-card-body {
  141. display: flex;
  142. flex-direction: column;
  143. flex: 1;
  144. padding: 0;
  145. }
  146. .logo-container {
  147. display: flex;
  148. justify-content: center;
  149. align-items: center;
  150. width: 100%;
  151. }
  152. .option-icon {
  153. font-size: 64px;
  154. color: $primary-color;
  155. }
  156. .ant-card-meta {
  157. text-align: center;
  158. margin-bottom: 0;
  159. flex: 1;
  160. display: flex;
  161. flex-direction: column;
  162. justify-content: center;
  163. &-title {
  164. font-size: $font-lg;
  165. font-weight: $font-weight-medium;
  166. margin-bottom: $spacing-2;
  167. }
  168. &-description {
  169. color: $text-secondary;
  170. padding: 0 $spacing-4;
  171. }
  172. }
  173. .select-button {
  174. margin: $spacing-6 0;
  175. height: 48px;
  176. font-weight: $font-weight-medium;
  177. font-size: $font-lg;
  178. flex: 0 0 auto;
  179. }
  180. &:hover {
  181. transform: translateY(-5px);
  182. box-shadow: $shadow-lg;
  183. }
  184. }