styles.css 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /* styles.css - 智能招聘系统全局样式 */
  2. /* 基础样式 */
  3. :root {
  4. --primary: #2563eb;
  5. --secondary: #f59e0b;
  6. --dark: #1e293b;
  7. --light: #f8fafc;
  8. --success: #10b981;
  9. --danger: #ef4444;
  10. --warning: #f97316;
  11. }
  12. * {
  13. margin: 0;
  14. padding: 0;
  15. box-sizing: border-box;
  16. }
  17. body {
  18. font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
  19. background-color: #f1f5f9;
  20. color: var(--dark);
  21. line-height: 1.6;
  22. }
  23. /* 通用样式 */
  24. a {
  25. text-decoration: none;
  26. color: inherit;
  27. }
  28. button {
  29. cursor: pointer;
  30. }
  31. /* 卡片样式 */
  32. .card {
  33. background: white;
  34. border-radius: 8px;
  35. padding: 16px;
  36. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  37. border: 1px solid #e2e8f0;
  38. transition: all 0.2s;
  39. }
  40. .card:hover {
  41. transform: translateY(-4px);
  42. box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  43. }
  44. /* 按钮样式 */
  45. .btn {
  46. padding: 12px;
  47. border: none;
  48. border-radius: 8px;
  49. font-size: 16px;
  50. font-weight: 500;
  51. transition: all 0.2s;
  52. }
  53. .btn-primary {
  54. background: var(--primary);
  55. color: white;
  56. }
  57. .btn-primary:hover {
  58. background: #1d4ed8;
  59. }
  60. .btn-secondary {
  61. background: var(--secondary);
  62. color: white;
  63. }
  64. .btn-secondary:hover {
  65. background: #d97706;
  66. }
  67. .btn-success {
  68. background: var(--success);
  69. color: white;
  70. }
  71. .btn-success:hover {
  72. background: #059669;
  73. }
  74. .btn-danger {
  75. background: var(--danger);
  76. color: white;
  77. }
  78. .btn-danger:hover {
  79. background: #dc2626;
  80. }
  81. /* 表单控件样式 */
  82. .form-control {
  83. width: 100%;
  84. padding: 12px 16px;
  85. border: 1px solid #e2e8f0;
  86. border-radius: 8px;
  87. font-size: 16px;
  88. transition: all 0.2s;
  89. }
  90. .form-control:focus {
  91. border-color: var(--primary);
  92. box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  93. outline: none;
  94. }
  95. /* 布局样式 */
  96. .container {
  97. display: flex;
  98. min-height: 100vh;
  99. padding: 20px;
  100. gap: 20px;
  101. max-width: 1400px;
  102. margin: 0 auto;
  103. }
  104. .sidebar {
  105. width: 240px;
  106. background: white;
  107. border-radius: 12px;
  108. padding: 20px;
  109. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  110. }
  111. .main-content {
  112. flex: 1;
  113. display: flex;
  114. flex-direction: column;
  115. gap: 20px;
  116. }
  117. /* 响应式设计 */
  118. @media (max-width: 768px) {
  119. .container {
  120. flex-direction: column;
  121. padding: 10px;
  122. }
  123. .sidebar {
  124. width: 100%;
  125. }
  126. .form-row {
  127. flex-direction: column;
  128. }
  129. }
  130. /* 动画效果 */
  131. .animate {
  132. animation-duration: 0.3s;
  133. animation-fill-mode: both;
  134. }
  135. @keyframes fadeIn {
  136. from { opacity: 0; }
  137. to { opacity: 1; }
  138. }
  139. .fade-in {
  140. animation-name: fadeIn;
  141. }
  142. /* 工具类 */
  143. .text-primary {
  144. color: var(--primary);
  145. }
  146. .text-center {
  147. text-align: center;
  148. }
  149. .mt-2 {
  150. margin-top: 8px;
  151. }
  152. .mb-4 {
  153. margin-bottom: 16px;
  154. }
  155. .p-4 {
  156. padding: 16px;
  157. }
  158. /* ECharts 容器 */
  159. .chart-container {
  160. width: 100%;
  161. height: 400px;
  162. }