:root {
  color-scheme: light;
  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-soft: #fff1e8;
  --text: #231815;
  --muted: #6e5b54;
  --line: rgba(139, 55, 36, 0.16);
  --red: #c62828;
  --red-deep: #8f1e1e;
  --gold: #d89a2b;
  --shadow: 0 24px 70px rgba(111, 39, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(139, 32, 26, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  padding: 40px 0 84px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.lead {
  margin: 24px 0 0;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.18;
  font-weight: 800;
  color: var(--red-deep);
}

.summary {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

.primary-action {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 34px rgba(198, 40, 40, 0.24);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--red-deep);
}

.phone-preview {
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  background: linear-gradient(180deg, #fff 0%, #fff3e6 100%);
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.phone-status span {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: rgba(35, 24, 21, 0.12);
}

.score-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 24px 0;
  padding: 18px;
  border-radius: 20px;
  background: var(--red);
  color: #fff;
}

.score-panel span {
  font-size: 13px;
  opacity: 0.86;
}

.score-panel strong {
  font-size: 30px;
  line-height: 1;
}

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

.envelope {
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.55) 47% 54%, transparent 55%),
    linear-gradient(180deg, #f64d3c 0%, #bf2323 100%);
  box-shadow: inset 0 -10px 0 rgba(112, 20, 19, 0.16), 0 10px 22px rgba(104, 38, 28, 0.14);
  position: relative;
}

.envelope::after {
  content: "";
  position: absolute;
  inset: 34% 26%;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 226, 137, 0.35);
}

.level-two {
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.52) 47% 54%, transparent 55%),
    linear-gradient(180deg, #ef7a35 0%, #b93624 100%);
}

.level-three,
.level-four {
  background:
    linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.5) 47% 54%, transparent 55%),
    linear-gradient(180deg, #f2b949 0%, #c75c22 100%);
}

.empty {
  background: rgba(255, 255, 255, 0.54);
  border: 1px dashed rgba(139, 55, 36, 0.2);
  box-shadow: none;
}

.empty::after {
  content: none;
}

.preview-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 700px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-heading p,
.notice-section p,
.release-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.feature-list article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-list h3 {
  margin: 0;
  font-size: 21px;
}

.feature-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.notice-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-section img {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  box-shadow: 0 18px 46px rgba(111, 39, 26, 0.16);
}

.release-section {
  padding-bottom: 96px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 42px;
    padding-top: 28px;
  }

  .phone-preview {
    justify-self: center;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .notice-section {
    grid-template-columns: 1fr;
  }

  .notice-section img {
    width: 112px;
    height: 112px;
    border-radius: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .actions {
    flex-direction: column;
  }

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