* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f6f4ef;
  color: #17221f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app {
  max-width: 920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 44px;
}

.hero {
  padding: 12px 0 8px;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.muted {
  color: #65706b;
  line-height: 1.6;
}

.card {
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e4ded2;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #34413c;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  background: #fbfaf7;
  color: #17221f;
  font: inherit;
  outline: none;
}

input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d0c4;
  border-radius: 8px;
  background: #fbfaf7;
  color: #17221f;
  font: inherit;
  outline: none;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1f6f5b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button-link.secondary {
  background: #e7f0ec;
  color: #1f6f5b;
}

button.small {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

button.danger {
  background: #b43d35;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stats-two {
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  min-height: 88px;
  padding: 14px 10px;
  border-radius: 8px;
  background: #f5f2eb;
  text-align: center;
}

.num {
  display: block;
  font-size: 26px;
  font-weight: 800;
}

.label {
  margin-top: 4px;
  color: #65706b;
  font-size: 13px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.day {
  min-height: 70px;
  padding: 7px 4px;
  border: 1px solid #ded8cd;
  border-radius: 8px;
  background: #fbfaf7;
  text-align: center;
  font-size: 12px;
}

.day strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.day em {
  display: block;
  margin-bottom: 2px;
  color: #65706b;
  font-size: 11px;
  font-style: normal;
}

.day.done em {
  color: rgba(255, 255, 255, 0.82);
}

.day.done {
  background: #1f6f5b;
  border-color: #1f6f5b;
  color: #fff;
}

.day.makeup {
  background: #fff4d7;
  border-color: #ead49a;
}

.day.makeup.done {
  background: #b88718;
  border-color: #b88718;
  color: #fff;
}

.notice {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #e8f1ed;
  color: #1f5b4b;
  line-height: 1.55;
}

.payment-card {
  border-color: #c8dfd5;
}

.wechat-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #f5f2eb;
}

.wechat-box span {
  color: #65706b;
}

.wechat-box strong {
  color: #1f6f5b;
  font-size: 24px;
  letter-spacing: 0;
}

.records {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.record {
  padding: 12px;
  border: 1px solid #eee8dd;
  border-radius: 8px;
  background: #fbfaf7;
  line-height: 1.55;
}

.record img {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 12px 10px;
  border-top: 1px solid #eee8dd;
  text-align: left;
  white-space: nowrap;
}

td textarea {
  min-width: 220px;
  min-height: 58px;
}

td.date-list {
  min-width: 180px;
  max-width: 260px;
  white-space: normal;
  line-height: 1.7;
}

th {
  background: #f3efe7;
  color: #43504b;
}

.hidden {
  display: none;
}

@media (max-width: 560px) {
  .app {
    padding: 20px 14px 36px;
  }

  h1 {
    font-size: 30px;
  }

  .form-grid,
  .link-list,
  .stats,
  .actions {
    grid-template-columns: 1fr;
  }

  .calendar {
    gap: 6px;
  }

  .day {
    min-height: 48px;
    font-size: 11px;
  }
}
