styles.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. body {
  2. font-family: Arial, sans-serif;
  3. background-color: #f4f4f9;
  4. margin: 0;
  5. padding: 0;
  6. }
  7. .container {
  8. max-width: 800px;
  9. margin: 50px auto;
  10. padding: 20px;
  11. background-color: #fff;
  12. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  13. border-radius: 8px;
  14. }
  15. h1 {
  16. text-align: center;
  17. color: #333;
  18. }
  19. .search-bar {
  20. width: calc(100% - 22px);
  21. padding: 10px;
  22. margin-bottom: 10px;
  23. border: 1px solid #ddd;
  24. border-radius: 4px;
  25. }
  26. .button {
  27. padding: 10px 20px;
  28. margin: 5px;
  29. background-color: #007bff;
  30. color: #fff;
  31. border: none;
  32. border-radius: 4px;
  33. cursor: pointer;
  34. }
  35. .button:hover {
  36. background-color: #0056b3;
  37. }
  38. .result {
  39. margin-top: 20px;
  40. }
  41. .pagination {
  42. display: flex;
  43. justify-content: center;
  44. margin-top: 20px;
  45. }
  46. .page-item {
  47. margin: 0 5px;
  48. cursor: pointer;
  49. color: #007bff;
  50. }
  51. .page-item.active {
  52. font-weight: bold;
  53. color: #333;
  54. }
  55. /* 查询结果表格样式 */
  56. .result table {
  57. width: 100%;
  58. border-collapse: collapse;
  59. margin-top: 20px;
  60. background-color: #fff;
  61. box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  62. }
  63. .result th, .result td {
  64. padding: 12px;
  65. text-align: left;
  66. border-bottom: 1px solid #ddd;
  67. }
  68. .result th {
  69. background-color: #f5f5f5;
  70. font-weight: bold;
  71. color: #333;
  72. }
  73. .result tr:hover {
  74. background-color: #f9f9f9;
  75. }
  76. /* 空结果样式 */
  77. .no-result {
  78. padding: 20px;
  79. text-align: center;
  80. color: #666;
  81. background-color: #f9f9f9;
  82. border-radius: 4px;
  83. margin-top: 20px;
  84. }
  85. /* 错误消息样式 */
  86. .error-message {
  87. padding: 10px;
  88. color: #721c24;
  89. background-color: #f8d7da;
  90. border: 1px solid #f5c6cb;
  91. border-radius: 4px;
  92. margin-top: 20px;
  93. }
  94. /* 搜索结果容器 */
  95. .search-result {
  96. max-width: 800px;
  97. margin: 20px auto;
  98. padding: 20px;
  99. background: #fff;
  100. border-radius: 8px;
  101. box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  102. }
  103. /* 结果头部样式 */
  104. .result-header {
  105. border-bottom: 2px solid #eee;
  106. padding-bottom: 15px;
  107. margin-bottom: 20px;
  108. }
  109. .debtor-name {
  110. color: #333;
  111. font-size: 24px;
  112. margin: 0 0 10px 0;
  113. }
  114. .remaining-debt {
  115. font-size: 18px;
  116. color: #666;
  117. }
  118. .remaining-debt .amount {
  119. color: #e74c3c;
  120. font-weight: bold;
  121. }
  122. /* 还款记录部分 */
  123. .repayment-section h3 {
  124. color: #2c3e50;
  125. margin-bottom: 15px;
  126. }
  127. .repayment-list {
  128. display: flex;
  129. flex-direction: column;
  130. gap: 15px;
  131. }
  132. .repayment-item {
  133. padding: 15px;
  134. background: #f8f9fa;
  135. border-radius: 6px;
  136. border-left: 4px solid #3498db;
  137. }
  138. .repayment-date {
  139. color: #666;
  140. font-size: 14px;
  141. margin-bottom: 8px;
  142. }
  143. .repayment-details {
  144. display: grid;
  145. gap: 8px;
  146. }
  147. .label {
  148. color: #666;
  149. font-weight: 500;
  150. }
  151. .repayment-amount {
  152. color: #27ae60;
  153. font-weight: bold;
  154. }
  155. /* 无记录提示 */
  156. .no-repayments, .no-result, .no-input {
  157. text-align: center;
  158. padding: 20px;
  159. background: #f8f9fa;
  160. border-radius: 6px;
  161. color: #666;
  162. }
  163. .no-result, .no-input {
  164. margin: 20px auto;
  165. max-width: 400px;
  166. }
  167. /* 图标样式 */
  168. .fas {
  169. margin-right: 8px;
  170. }
  171. /* 为表单添加样式 */
  172. #searchForm {
  173. display: flex;
  174. gap: 10px;
  175. margin-bottom: 20px;
  176. }
  177. /* 为按钮添加不同状态 */
  178. #addRecordBtn {
  179. background-color: #28a745; /* 区分普通查询按钮 */
  180. }
  181. #addRecordBtn:hover {
  182. background-color: #218838;
  183. }