:root {
  --ink: #17232c;
  --muted: #63717a;
  --paper: #f4f8f5;
  --card: #ffffff;
  --deep: #123744;
  --sea: #0f6b72;
  --mint: #e7f5ef;
  --sun: #e6a84d;
  --line: #d8e4df;
  --ok: #188060;
  --danger: #a85032;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button {
  font: inherit;
}

.shell {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 39vh;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroShade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 26, 0.02), rgba(10, 22, 26, 0.34) 42%, rgba(10, 22, 26, 0.86)),
    linear-gradient(90deg, rgba(18, 55, 68, 0.66), rgba(18, 55, 68, 0.12));
}

.heroText {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 39vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: max(22px, env(safe-area-inset-top)) 22px 28px;
  color: #fff;
}

.eyebrow {
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 7em;
  margin-top: 12px;
  font-size: clamp(36px, 10vw, 48px);
  line-height: 1.04;
}

.heroText > p:last-child {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: 12px;
  padding: 14px 14px 40px;
}

article {
  border: 1px solid rgba(18, 55, 68, 0.1);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(25, 57, 66, 0.08);
}

.rule-card,
.notice,
.checklist-card,
.task-card,
.tips-card {
  padding: 16px;
}

.rule-card {
  border-color: rgba(230, 168, 77, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 248, 234, 0.98), rgba(255, 255, 255, 0.98)),
    var(--card);
}

.rule-card h2 {
  margin-bottom: 6px;
}

.kicker {
  margin-bottom: 4px;
  color: var(--sea);
  font-size: 12px;
  font-weight: 800;
}

.rule-card > p:last-child,
.notice > p:nth-child(2),
.tips-card li,
.task-detail,
.requirement {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

#saveState {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: #edf5f3;
  color: var(--deep);
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

h2 {
  color: var(--deep);
  font-size: 22px;
}

.refresh {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #edf5f3;
  color: var(--deep);
}

.refresh svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist {
  display: grid;
  gap: 10px;
}

.item-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.item-title {
  display: grid;
  gap: 3px;
}

.item-title strong {
  color: var(--deep);
  font-size: 17px;
}

.person-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.person-grid.partial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-button {
  display: grid;
  min-height: 54px;
  place-items: center;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid #c9dad4;
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
}

.check-button .box {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #8bb0a8;
  border-radius: 6px;
  color: transparent;
  font-weight: 900;
}

.check-button .name {
  font-size: 12px;
  font-weight: 800;
}

.check-button.checked {
  border-color: rgba(24, 128, 96, 0.5);
  background: var(--mint);
}

.check-button.checked .box {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.task-title {
  color: var(--deep);
  font-size: 16px;
  font-weight: 900;
}

.owner {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff7e6;
  color: #7a4c13;
  font-size: 12px;
  font-weight: 900;
}

.tips-card ul {
  margin: 0;
  padding-left: 18px;
}

@media (min-width: 580px) {
  body {
    padding: 20px 0;
  }

  .shell {
    overflow: hidden;
    border-radius: 8px;
  }
}
