:root {
  color-scheme: light;
  --paper: #f7f1e8;
  --paper-light: #fffaf2;
  --ink: #263330;
  --muted: #6f625d;
  --line: rgba(54, 62, 58, 0.18);
  --seal: #b52e3b;
  --seal-dark: #842431;
  --green: #36564c;
  --gold: #d39a36;
  --shadow: rgba(55, 40, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(54, 86, 76, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(54, 86, 76, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 10%, rgba(211, 154, 54, 0.2), transparent 28%),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto;
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 50px 0 74px;
}

.memo-cover {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(181, 46, 59, 0.12) 0 8px, transparent 8px),
    rgba(255, 250, 242, 0.88);
  box-shadow: 0 26px 70px var(--shadow);
}

.memo-cover::after {
  content: "已复盘";
  position: absolute;
  right: clamp(20px, 5vw, 52px);
  bottom: clamp(24px, 4vw, 40px);
  width: 116px;
  height: 116px;
  border: 4px solid rgba(181, 46, 59, 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(181, 46, 59, 0.78);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  transform: rotate(-15deg);
}

.doc-code,
.kicker,
.section-label,
.letter-date {
  margin: 0 0 14px;
  color: var(--seal);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.doc-code {
  color: var(--green);
}

.hero h1 {
  max-width: 9ch;
  margin: 12px 0 0;
  color: #252b29;
  font-size: clamp(3.35rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.stamp-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-action,
.stamp-button {
  color: #fffaf2;
  background: var(--seal);
  box-shadow: 0 14px 26px rgba(181, 46, 59, 0.22);
}

.secondary-action {
  color: var(--green);
  background: rgba(255, 250, 242, 0.7);
  border-color: rgba(54, 86, 76, 0.25);
}

.primary-action:hover,
.secondary-action:hover,
.stamp-button:hover {
  transform: translateY(-2px);
}

.status-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 20px 54px rgba(55, 40, 35, 0.1);
}

.status-stamp {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #fffaf2;
  background: var(--seal);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  transform: rotate(-8deg);
}

.status-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.status-panel dl div {
  min-height: 76px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(247, 241, 232, 0.72);
  border: 1px solid rgba(54, 86, 76, 0.13);
}

.status-panel dt {
  color: var(--muted);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-panel dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.hero-art {
  margin: 0;
  position: relative;
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 580;
  object-fit: cover;
  border: 1px solid rgba(54, 86, 76, 0.18);
  border-radius: 8px;
}

.hero-art figcaption {
  margin-top: 10px;
  color: var(--green);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.report-section,
.impact-section,
.promise-band,
.rectify-section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.report-section {
  padding: 78px 0 66px;
  border-top: 1px solid var(--line);
}

.report-section h2,
.impact-section h2,
.promise-band h2,
.rectify-section h2 {
  max-width: 800px;
  margin: 0;
  color: #252b29;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.13;
  letter-spacing: 0;
}

.report-section p,
.rectify-section p {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.95;
}

.impact-section,
.promise-band {
  padding: 74px 0 82px;
}

.impact-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.impact-card,
.promise-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid rgba(54, 86, 76, 0.2);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 20px 40px rgba(55, 40, 35, 0.07);
}

.impact-value,
.promise-mark {
  display: inline-flex;
  min-width: 54px;
  height: 44px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fffaf2;
  background: var(--green);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
}

.impact-card h3,
.promise-card h3 {
  margin: 28px 0 12px;
  color: var(--seal-dark);
  font-size: 1.42rem;
}

.impact-card p,
.promise-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.root-cause {
  padding-bottom: 76px;
}

.cause-list {
  max-width: 860px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: cause;
}

.cause-list li {
  counter-increment: cause;
  position: relative;
  margin-top: 14px;
  padding: 18px 20px 18px 68px;
  border: 1px solid rgba(54, 86, 76, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 250, 242, 0.76);
  line-height: 1.8;
}

.cause-list li::before {
  content: counter(cause);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fffaf2;
  background: var(--seal);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 900;
}

.cause-list strong {
  color: var(--ink);
}

.rectify-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 64px;
  padding: 34px;
  border: 2px dashed rgba(181, 46, 59, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(242, 225, 212, 0.82));
}

.stamp-button {
  min-width: 172px;
  transform: rotate(-3deg);
}

.stamp-button.is-stamped {
  background: var(--green);
  box-shadow: 0 14px 26px rgba(54, 86, 76, 0.2);
}

.letter-dialog {
  width: min(680px, calc(100% - 34px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.letter-dialog::backdrop {
  background: rgba(38, 35, 34, 0.46);
  backdrop-filter: blur(6px);
}

.letter-paper {
  position: relative;
  padding: clamp(28px, 6vw, 52px);
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid rgba(181, 46, 59, 0.22);
  border-radius: 8px;
  box-shadow: 0 32px 90px rgba(38, 35, 34, 0.34);
}

.letter-paper::after {
  content: "邓鹏涛\\A确认";
  white-space: pre;
  position: absolute;
  right: 38px;
  bottom: 34px;
  width: 104px;
  height: 104px;
  border: 4px solid rgba(181, 46, 59, 0.6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(181, 46, 59, 0.72);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  transform: rotate(-14deg);
}

.letter-paper h2 {
  margin: 0 0 22px;
  color: var(--seal);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
}

.letter-paper p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.95;
}

.signature {
  margin-top: 28px;
  padding-right: 118px;
  color: var(--ink) !important;
  text-align: right;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(54, 86, 76, 0.22);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(247, 241, 232, 0.86);
  font-size: 1.6rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero h1 {
    max-width: 8.6ch;
  }

  .impact-grid,
  .promise-grid,
  .rectify-section {
    grid-template-columns: 1fr;
  }

  .stamp-button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .hero,
  .report-section,
  .impact-section,
  .promise-band,
  .rectify-section {
    width: min(100% - 28px, 1040px);
  }

  .memo-cover::after {
    width: 88px;
    height: 88px;
    font-size: 1rem;
    opacity: 0.72;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .stamp-button {
    width: 100%;
  }

  .status-panel dl {
    grid-template-columns: 1fr;
  }

  .report-section {
    padding-top: 54px;
  }

  .signature {
    padding-right: 0;
  }

  .letter-paper::after {
    display: none;
  }
}
