.list-container {
    padding: 0 35px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    color: #777;
}

.card-body {
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

table th {
    background-color: #f8f8f8;
    color: #555;
    font-weight: bold;
    /* text-transform: uppercase; */
    font-size: 13px;
}

table tbody tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge.badge-read {
    background-color: #e6f7e6;
    color: #52c41a;
}

.badge.badge-unread {
    background-color: #fff1f0;
    color: #f5222d;
}

.btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #666;
}

.btn-read {
    border: 1px solid #d9d9d9;
}

.btn-read:hover {
    background-color: #52c41a;
    color: #fff;
    border-color: #52c41a;
}

.btn-delete {
    color: #f5222d;
    border: 1px solid #ffccc7;
}

.btn-delete:hover {
    background-color: #f5222d;
    color: #fff;
    border-color: #f5222d;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #555;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.records-per-page select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23888" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    cursor: pointer;
}

.pagination-buttons {
    display: flex;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
    transition: background-color 0.2s, color 0.2s;
}

.page-btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.page-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.page-btn:not(:first-child) {
    border-left: none;
}

.page-btn.active {
    background-color: #444;
    border-color: #444;
    color: white;
}

.total-records {
    font-size: 14px;
    color: #555;
}

.goto-page {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.goto-page input[type="text"] {
    width: 40px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    text-align: center;
    outline: none;
}

/* 弹窗遮罩层 */
.detail-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  min-width: 480px;
  max-width: 520px;
  padding: 32px 32px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 26px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.detail-modal-close:hover {
  color: #f5222d;
}
.detail-modal-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}
.detail-modal-user-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 18px 20px 12px 20px;
  margin-bottom: 0;
}
.detail-modal-username {
  font-size: 18px;
  font-weight: 500;
  color: #222;
}
.detail-modal-email {
  font-size: 14px;
  color: #888;
  margin-top: 2px;
}
.detail-modal-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 14px;
  color: #888;
}
.detail-modal-meta #modal-time {
  color: #888;
}
.detail-modal-meta #modal-status.badge {
  margin-top: 2px;
  font-size: 13px;
  padding: 4px 12px;
}
.detail-modal-section {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #222;
}
.detail-modal-content {
  width: 100%;
  min-height: 60px;
  max-height: 120px;
  resize: none;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  color: #444;
  background: #fafafa;
  margin-bottom: 0;
}
.detail-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.detail-modal-footer .btn {
  min-width: 70px;
  font-size: 15px;
  padding: 7px 18px;
}
