:root {
  --ink: #191816;
  --muted: #6f6860;
  --paper: #fbf7ef;
  --shell: #fffdf8;
  --line: #e6daca;
  --red: #fb3f5f;
  --cyan: #20c7cc;
  --blue: #275de7;
  --green: #2f9b6a;
  --shadow: 0 24px 70px rgba(29, 24, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid rgba(230, 218, 202, 0.85);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: static;
}

.brand,
.top-nav,
.hero-actions,
.hero-stats,
.site-footer,
.final-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--cyan));
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(251, 63, 95, 0.2);
}

.top-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.top-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink);
  border-bottom: 2px solid var(--red);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 78px) clamp(42px, 6vw, 82px);
  background:
    linear-gradient(90deg, rgba(32, 199, 204, 0.12), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #f4ecdf 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.hero h1,
.section h2,
.final-cta h2,
.article-body h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(40px, 6vw, 76px);
}

.hero-text {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 16px 30px rgba(25, 24, 22, 0.16);
}

.button.primary:hover {
  background: #000;
}

.button.ghost,
.button.secondary {
  background: rgba(255, 255, 255, 0.74);
}

.button.light {
  color: var(--ink);
  background: #fff;
  border-color: #fff;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 16px;
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 130px;
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.54);
}

.hero-stats strong {
  display: block;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 78px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: 30px;
}

.section-heading.narrow {
  display: block;
  max-width: 820px;
}

.section h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.intro-grid,
.package-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.package,
.article-grid article,
.timeline li {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-grid article {
  padding: 28px;
}

.intro-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.intro-grid h3,
.package h3,
.article-grid h3,
.timeline h3 {
  margin: 8px 0 8px;
  line-height: 1.25;
}

.intro-grid p,
.package p,
.timeline p,
.article-grid span,
.method-copy p,
.final-cta p,
.article-body p {
  color: var(--muted);
}

.diagnosis {
  background: #151515;
  color: #fff;
}

.diagnosis .eyebrow {
  color: #7ee5d6;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.check-item {
  min-height: 142px;
  padding: 22px;
  background: #151515;
}

.check-item b {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 18px;
}

.check-item span {
  color: rgba(255, 255, 255, 0.72);
}

.method {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 104px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 24px 26px 24px 32px;
  overflow: hidden;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--cyan), var(--red));
}

.timeline span,
.tag,
.article-grid p {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.packages {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
    var(--paper);
}

.package {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
}

.package.featured {
  color: #fff;
  background: linear-gradient(145deg, #202020, #34302c);
  border-color: #34302c;
}

.package.featured p,
.package.featured li {
  color: rgba(255, 255, 255, 0.76);
}

.package ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.package li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 950;
}

.package .button {
  margin-top: auto;
}

.article-grid article {
  padding: 26px;
}

.article-grid a:hover {
  color: var(--red);
}

.final-cta {
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 78px) clamp(54px, 7vw, 86px);
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(32, 199, 204, 0.22), transparent 42%),
    #1a1a1a;
  border-radius: 8px;
}

.final-cta .eyebrow {
  color: #7ee5d6;
}

.final-cta p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 78px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  color: var(--ink);
}

.article-page {
  padding: clamp(34px, 6vw, 72px) 18px clamp(60px, 8vw, 100px);
}

.article-body {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-body h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.article-body .lead {
  margin-top: 20px;
  font-size: 19px;
}

.article-body h2 {
  margin: 36px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding: 22px;
  background: #f4eadb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-cta p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.redirect-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(251, 63, 95, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(32, 199, 204, 0.18), transparent 40%),
    var(--paper);
}

.redirect-panel {
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 54px);
  text-align: center;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.redirect-panel h1 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.2;
}

.redirect-panel p {
  margin: 0 0 24px;
  color: var(--muted);
}

.loader {
  display: inline-block;
  width: 46px;
  height: 46px;
  border: 4px solid #eadcca;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .method,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-grid,
  .package-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

  .method-copy {
    position: static;
  }
}

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

  .top-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats div {
    width: 100%;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .article-cta {
    align-items: stretch;
    flex-direction: column;
  }

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