:root {
  --primary: #1f4e78;
  --primary-light: #d9e1f2;
  --accent: #fff2cc;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #d0d7de;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

* {
  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: 1000px;
  margin: 0 auto;
  padding: 32px 20px;
}

header {
  text-align: center;
  margin-bottom: 36px;
}

header h1 {
  color: var(--primary);
  font-size: 1.9rem;
  margin: 0 0 6px;
}

.subtitle {
  color: var(--text-light);
  margin: 0;
  font-size: 1rem;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 10px;
}

/* Pricing Cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.price-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card h2 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.price-rate {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: 16px 0;
}

.price-note {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Tables & Cards */
.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 12px;
  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: 500px;
}

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;
}

.check-col {
  text-align: center;
  width: 70px;
}

td.check-col {
  font-size: 1.2rem;
}

.check-yes {
  color: #1e7e34;
  font-weight: 700;
}

.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: -4px 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;
  }

  .price-rate {
    font-size: 2.2rem;
  }

  .card {
    padding: 16px;
  }

  th, td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
