body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Helvetica Neue", sans-serif;
  background-color: #fafafa;
  color: #333;
}


.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
}

.intro span {
  font-size: 24px;
  margin-top: 0; /* 确保标题紧贴顶部 */
  margin-bottom: 8px;
  color: #0a8754;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.intro p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-top: 0; /* 确保段落紧贴顶部 */
}

.charge-section {
  text-align: center;
  margin-bottom: 40px;
}

.charge-button {
  background-color: #0bb27a;
  color: white;
  padding: 12px 28px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(11, 178, 122, 0.5);
}

.charge-button:hover {
  background-color: #099c69;
  box-shadow: 0 5px 14px rgba(9, 156, 105, 0.7);
}

.records-section {
  margin-bottom: 40px;
}

.records-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: #a68d39;
  letter-spacing: 1px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-shadow: none;
}

/* 精简的卡片网格 */
.record-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 强制 2 列 */
  gap: 16px;
}

/* 简洁卡片样式 */
.record-card {
  /* background 将由 PHP 动态设置 */
  border: 1px solid rgba(0, 0, 0, 0.08); /* 更柔和的边框，适应多种背景色 */
  border-radius: 8px;
  padding: 15px 12px; /* 调整内边距以适应新布局 */
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #333;
  position: relative;
  font-weight: 400;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 稍微更明显、但柔和的阴影 */
  display: flex; /* 使内部元素水平排列 */
  align-items: center; /* 垂直居中对齐 */
  justify-content: space-between; /* 元素间均匀分布空间 */
  /* gap: 10px; */ /* 移除，我们将使用百分比宽度 */
  box-sizing: border-box; /* 确保宽度计算包含内边距和边框 */
}

/* 为卡片内的直接子元素添加 box-sizing */
.record-card > div {
    box-sizing: border-box;
}

.record-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 悬停时更强的阴影 */
  z-index: 5;
}

/* 移除小钻石图标 */
.record-card::before {
  content: none;
}

.record-sequence {
  font-size: 16px; /* 字体增大，更清晰 */
  color: #fff;
  font-weight: 700;
  background-color: #596275; /* 使用主题绿色，对比度更好 */
  padding: 6px 10px; /* 更多内边距，使背景更显眼 */
  border-radius: 4px; /* 清晰的圆角矩形 */
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* 略强的阴影，更突出 */
  flex: 0 0 10%; /* 序号占用 10% 宽度 */
  margin-right: 0; /* 移除额外的外边距 */
}

.record-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34495e;
  font-weight: 600;
  letter-spacing: 0.2px;
  flex: 0 0 40%; /* 昵称占用 30% 宽度 */
  padding-left: 10px; /* 左内边距 */
  padding-right: 10px; /* 右内边距 */
  border-right: 1px solid #eee; /* 昵称和金额之间的竖线 */
  text-align: left; /* 昵称右对齐 */
}

.record-amount {
  display: flex;
  justify-content: flex-start; /* 右对齐 */
  align-items: baseline;
  flex: 0 0 25%; /* 金额占用 30% 宽度 */
  padding-left: 10px; /* 左内边距 */
  padding-right: 10px; /* 右内边距 */
  border-right: 1px solid #eee; /* 金额和时间之间的竖线 */
}

.record-amount .currency-symbol {
  font-size: 12px;
  margin-right: 4px;
  font-weight: 400;
  color: #333; /* 恢复默认颜色 */
}

.record-amount .amount-value {
  font-size: 14px;
  font-weight: 700;
  color: #333; /* 恢复默认颜色 */
}

.record-date {
  font-size: 14px;
  color: #95a5a6;
  flex: 0 0 25%; /* 时间占用 30% 宽度 */
  padding-left: 10px; /* 左内边距 */
  padding-right: 5px; /* 稍微调整右内边距 */
  border-right: none; /* 最后一个元素不需要右侧竖线 */
  text-align: right; /* 右对齐 */
}

.foot-note {
  text-align: center;
  font-size: 14px; /* 设置为 14px */
  color: #666;
  margin-bottom: 0px;
}

/* 弹窗样式保持不变 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* 分页样式 */
.donate-pagination {
  margin-top: 30px;
  text-align: center;
}

.donate-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px; /* 修改为圆角正方形 */
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}

.donate-pagination .page-numbers:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

.donate-pagination .page-numbers.current {
  background-color: #0bb27a;
  border-color: #0bb27a;
  color: white;
  font-weight: bold;
}

.donate-pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  cursor: default;
}

.donate-pagination .page-numbers.dots:hover {
  background-color: transparent;
  border-color: transparent;
}

.modal-box {
  background: white;
  padding: 26px 18px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
  user-select: none;
}

.modal-close:hover {
  color: #333;
}

.qrcode-pair {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qrcode-item img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.qrcode-item span {
  font-size: 14px;
  color: #555;
}

@media (max-width: 640px) {
  .charge-button {
    padding: 12px 24px;
  }
}

@media (max-width: 400px) {
  .qrcode-pair {
    flex-direction: column;
  }
}