base.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /* ==========================================
  2. 基础重置与全局变量
  3. ========================================== */
  4. @font-face {
  5. font-family: 'YouSheBiaoTiHei';
  6. src: url('../assets/fonts/YouSheBiaoTiHei_Regular.ttf') format('truetype');
  7. font-weight: normal;
  8. font-style: normal;
  9. }
  10. html, body {
  11. width: 100%;
  12. height: 100%;
  13. margin: 0;
  14. background: #050b1e;
  15. overflow: hidden;
  16. font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  17. }
  18. * {
  19. box-sizing: border-box;
  20. }
  21. #app {
  22. width: 100vw;
  23. height: 100vh;
  24. overflow: hidden;
  25. }
  26. :root {
  27. --title-font-family: 'YouSheBiaoTiHei';
  28. --c-primary: #2bdcff;
  29. --c-border: #3D72B8;
  30. --c-btn: #06378E;
  31. --radius: 8px;
  32. --fs-title: clamp(18px, 1.4vw, 28px);
  33. --fs-base: clamp(12px, 0.95vw, 16px);
  34. }
  35. /* ==========================================
  36. 全局工具类 (Utility Classes)
  37. ========================================== */
  38. /* 通用地图底层容器样式 */
  39. .map-layer {
  40. position: absolute;
  41. top: 0;
  42. left: 0;
  43. width: 100%;
  44. height: 100%;
  45. z-index: 1;
  46. }
  47. /* 通用按钮样式清除 */
  48. .btn {
  49. background: transparent;
  50. border: none;
  51. outline: none;
  52. cursor: pointer;
  53. font-size: 14px;
  54. padding: 5px 8px;
  55. border-radius: 4px;
  56. transition: all 0.2s;
  57. }
  58. /* 忽略按钮:低调的文字按钮 */
  59. .btn-ignore {
  60. background-color: #0D2244;
  61. color: #ffffff;
  62. }
  63. .btn-ignore:hover {
  64. color: #ffffff;
  65. background: rgba(255, 255, 255, 0.1);
  66. }
  67. /* 查看按钮:科技感蓝色渐变边框按钮 */
  68. .btn-view {
  69. color: #ffffff;
  70. background: linear-gradient(180deg, rgba(24, 144, 255, 0.1) 0%, rgba(24, 144, 255, 0.3) 100%);
  71. box-shadow: inset 0 0 8px rgba(24, 144, 255, 0.2);
  72. }
  73. .btn-view:hover {
  74. background: linear-gradient(180deg, rgba(24, 144, 255, 0.2) 0%, rgba(24, 144, 255, 0.5) 100%);
  75. box-shadow: inset 0 0 12px rgba(24, 144, 255, 0.4);
  76. border-color: #32F6F8;
  77. }
  78. .menu-scroll-view {
  79. height: 700px !important;
  80. overflow: auto;
  81. background: rgba(17,36,70,0.9);
  82. border: none;
  83. outline: 2px solid #3760A9;
  84. outline-offset: -2px;
  85. }
  86. /* ==========================================
  87. 全局滚动条美化 (大屏科技感风格)
  88. ========================================== */
  89. ::-webkit-scrollbar {
  90. width: 0px; /* 如果你想显示滚动条,可以改为 6px 或 8px */
  91. height: 0px;
  92. }
  93. ::-webkit-scrollbar-track {
  94. background: rgba(15, 34, 67, 0.3);
  95. box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
  96. }
  97. ::-webkit-scrollbar-thumb {
  98. background: linear-gradient(180deg, rgba(31, 206, 251, 0.2) 0%, rgba(0, 229, 255, 0.6) 100%);
  99. border: 1px solid rgba(31, 206, 251, 0.4);
  100. border-radius: 4px; /* 建议加个圆角更美观 */
  101. }
  102. ::-webkit-scrollbar-thumb:hover {
  103. background: linear-gradient(180deg, rgba(31, 206, 251, 0.5) 0%, rgba(0, 229, 255, 0.9) 100%);
  104. box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
  105. border-color: rgba(31, 206, 251, 0.8);
  106. }
  107. ::-webkit-scrollbar-button {
  108. display: none;
  109. }
  110. ::-webkit-scrollbar-corner {
  111. background: transparent;
  112. }