/* 基础样式 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

.container {
  padding: 20px;
  max-width: 100%;
  overflow-x: auto; /* 允许横向滚动 */
}

.link-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  padding: 10px 20px;
  background: linear-gradient(135deg, #007AFF, #0040FF);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.link-button:hover {
  transform: scale(1.05);
}

.link-button:active {
  transform: scale(0.95);
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 60px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-header {
  display: flex;
  background: #f8f9fa;
  font-weight: 600;
  border-bottom: 2px solid #eee;
}

.table-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: #f8fafb !important;
}

.table-cell {
  flex: 1;
  padding: 12px 15px;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  border: 1px solid #ddd;
}

/* 表头图标容器 */
.arrow-icon-wrapper {
  display: inline-flex;
  margin-left: 5px;
  width: 20px;
  height: 20px;
}

/* 表头箭头样式 */
.arrow-icon {
  width: 20px;
  height: 20px;
}

/* 无数据提示 */
.empty-msg {
  margin-top: 16px;
  text-align: center;
  color: #999;
}

/* 加载状态 */
.loading {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #666;
}

/* 手机端适配 */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  .link-button {
    position: static;
    width: 100%;
    margin-bottom: 10px;
  }

  .table-header, .table-row {
    flex-direction: column; /* 垂直排列 */
  }

  .table-cell {
    width: 100%; /* 每列占满宽度 */
    text-align: left; /* 左对齐 */
    padding: 8px 10px;
  }

  .table-cell.bank-name {
    color: #55C355; /* 银行名称颜色 */
  }

  .table-cell.term, .table-cell.amount, .table-cell.maturity-date {
    flex: 0 0 auto; /* 固定宽度 */
  }
}