:root {
  --primary: #1f4e78;
  --primary-light: #d9e1f2;
  --accent: #fff2cc;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #d0d7de;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  color: var(--primary);
  font-size: 1.9rem;
  margin: 0 0 8px;
}

.subtitle {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 8px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.card h2 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 600px;
}

th, td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

tr:nth-child(even) {
  background: #f8fafc;
}

tbody tr:hover {
  background: #eef4fb;
}

.numeric {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

td.numeric {
  text-align: center;
}

.category-cell {
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
}

.method-cell {
  text-align: center;
  font-weight: 500;
}

.loading {
  text-align: center;
  color: var(--text-light);
  padding: 24px;
}

.note {
  background: var(--accent);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin: -8px 0 16px;
  display: inline-block;
}

.settlement-banner {
  background: var(--accent);
  border: 1px solid #f0d78c;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.settlement-banner strong {
  color: var(--primary);
}

footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 16px 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.error {
  color: #d32f2f;
  text-align: center;
  padding: 16px;
}

@media (max-width: 640px) {
  header h1 {
    font-size: 1.5rem;
  }

  .card {
    padding: 16px;
  }

  th, td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
