| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- body {
- font-family: Arial, sans-serif;
- background-color: #f4f4f9;
- margin: 0;
- padding: 0;
- }
- .container {
- max-width: 800px;
- margin: 50px auto;
- padding: 20px;
- background-color: #fff;
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
- border-radius: 8px;
- }
- h1 {
- text-align: center;
- color: #333;
- }
- .search-bar {
- width: calc(100% - 22px);
- padding: 10px;
- margin-bottom: 10px;
- border: 1px solid #ddd;
- border-radius: 4px;
- }
- .button {
- padding: 10px 20px;
- margin: 5px;
- background-color: #007bff;
- color: #fff;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- .button:hover {
- background-color: #0056b3;
- }
- .result {
- margin-top: 20px;
- }
- .pagination {
- display: flex;
- justify-content: center;
- margin-top: 20px;
- }
- .page-item {
- margin: 0 5px;
- cursor: pointer;
- color: #007bff;
- }
- .page-item.active {
- font-weight: bold;
- color: #333;
- }
- /* 查询结果表格样式 */
- .result table {
- width: 100%;
- border-collapse: collapse;
- margin-top: 20px;
- background-color: #fff;
- box-shadow: 0 1px 3px rgba(0,0,0,0.2);
- }
- .result th, .result td {
- padding: 12px;
- text-align: left;
- border-bottom: 1px solid #ddd;
- }
- .result th {
- background-color: #f5f5f5;
- font-weight: bold;
- color: #333;
- }
- .result tr:hover {
- background-color: #f9f9f9;
- }
- /* 空结果样式 */
- .no-result {
- padding: 20px;
- text-align: center;
- color: #666;
- background-color: #f9f9f9;
- border-radius: 4px;
- margin-top: 20px;
- }
- /* 错误消息样式 */
- .error-message {
- padding: 10px;
- color: #721c24;
- background-color: #f8d7da;
- border: 1px solid #f5c6cb;
- border-radius: 4px;
- margin-top: 20px;
- }
- /* 搜索结果容器 */
- .search-result {
- max-width: 800px;
- margin: 20px auto;
- padding: 20px;
- background: #fff;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
- }
- /* 结果头部样式 */
- .result-header {
- border-bottom: 2px solid #eee;
- padding-bottom: 15px;
- margin-bottom: 20px;
- }
- .debtor-name {
- color: #333;
- font-size: 24px;
- margin: 0 0 10px 0;
- }
- .remaining-debt {
- font-size: 18px;
- color: #666;
- }
- .remaining-debt .amount {
- color: #e74c3c;
- font-weight: bold;
- }
- /* 还款记录部分 */
- .repayment-section h3 {
- color: #2c3e50;
- margin-bottom: 15px;
- }
- .repayment-list {
- display: flex;
- flex-direction: column;
- gap: 15px;
- }
- .repayment-item {
- padding: 15px;
- background: #f8f9fa;
- border-radius: 6px;
- border-left: 4px solid #3498db;
- }
- .repayment-date {
- color: #666;
- font-size: 14px;
- margin-bottom: 8px;
- }
- .repayment-details {
- display: grid;
- gap: 8px;
- }
- .label {
- color: #666;
- font-weight: 500;
- }
- .repayment-amount {
- color: #27ae60;
- font-weight: bold;
- }
- /* 无记录提示 */
- .no-repayments, .no-result, .no-input {
- text-align: center;
- padding: 20px;
- background: #f8f9fa;
- border-radius: 6px;
- color: #666;
- }
- .no-result, .no-input {
- margin: 20px auto;
- max-width: 400px;
- }
- /* 图标样式 */
- .fas {
- margin-right: 8px;
- }
- /* 为表单添加样式 */
- #searchForm {
- display: flex;
- gap: 10px;
- margin-bottom: 20px;
- }
- /* 为按钮添加不同状态 */
- #addRecordBtn {
- background-color: #28a745; /* 区分普通查询按钮 */
- }
- #addRecordBtn:hover {
- background-color: #218838;
- }
|