:root {
  color-scheme: dark;
  --bg: #0b0d0c;
  --panel: #141715;
  --panel-soft: #191d1a;
  --ink: #f2f0e9;
  --muted: #a9aaa2;
  --line: rgba(242, 240, 233, 0.14);
  --line-strong: rgba(242, 240, 233, 0.25);
  --accent: #e8ff72;
  --accent-strong: #d9f54b;
  --accent-ink: #172000;
  --danger: #ffccb3;
  --max: 1180px;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 4%, rgba(232, 255, 114, 0.08), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.brand-mark svg {
  width: 17px;
  height: 17px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(46px, 8vw, 100px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 88px 0 78px;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 27px;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 32px;
  font-size: clamp(3.25rem, 7.8vw, 7.2rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

h1 em {
  color: var(--accent);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: transparent;
  color: var(--accent);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.text-link {
  color: var(--muted);
  font-size: 0.84rem;
  text-underline-offset: 5px;
}

.hero-visual {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--panel);
  background-size: 48px 48px;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 35%, rgba(232, 255, 114, 0.09));
  content: "";
  pointer-events: none;
}

.visual-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
}

.visual-chart {
  position: absolute;
  top: 74px;
  right: 0;
  left: 0;
  width: 100%;
  height: 230px;
}

.visual-chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.5s ease-out both;
}

.visual-chart .area {
  fill: url("#fade");
}

.visual-quote {
  position: absolute;
  right: 27px;
  bottom: 88px;
  left: 27px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.35;
}

.visual-quote span {
  color: var(--accent);
}

.visual-meta {
  position: absolute;
  right: 27px;
  bottom: 24px;
  left: 27px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

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

.section.intro-section {
  padding-top: 95px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 8vw, 108px);
  align-items: start;
}

h2 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(2.35rem, 4.4vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h2 em {
  color: var(--accent);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.framework-card {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-number {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.82rem;
}

.framework-card h3 {
  margin: 64px 0 16px;
  font-size: 1.12rem;
  font-weight: 600;
}

.framework-card p,
.content-card p,
.strategy-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 56px;
}

.review-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 25%, rgba(9, 11, 10, 0.97) 88%),
    url("../images/es-small-pullback-review.png") center / cover no-repeat;
  text-decoration: none;
}

.review-card::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  transition: border-color 180ms ease;
}

.review-card:hover::after {
  border-color: var(--accent);
}

.review-card > * {
  position: relative;
  z-index: 1;
}

.review-card .tag {
  align-self: flex-start;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 13, 12, 0.72);
  color: var(--accent);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.review-card h3 {
  max-width: 600px;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.review-card p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.side-stack {
  display: grid;
  gap: 22px;
}

.content-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-card h3 {
  margin: 18px 0 12px;
  font-size: 1.18rem;
  font-weight: 600;
}

.content-card a {
  display: inline-block;
  margin-top: 20px;
  color: var(--accent);
  font-size: 0.8rem;
  text-underline-offset: 5px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 54px;
}

.strategy-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--panel), #101210);
  text-decoration: none;
}

.strategy-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(232, 255, 114, 0.12), transparent 68%);
  content: "";
}

.strategy-card h3 {
  max-width: 460px;
  margin: 72px 0 16px;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.strategy-card .arrow {
  position: absolute;
  right: 32px;
  bottom: 28px;
  color: var(--accent);
  font-size: 1.3rem;
}

.risk-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 204, 179, 0.22);
  background: rgba(255, 204, 179, 0.045);
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.7;
}

.risk-note strong {
  color: var(--ink);
  font-weight: 600;
}

.page-hero {
  padding: 104px 0 78px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 26px;
}

.page-hero h1 {
  max-width: 950px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6.8vw, 6.4rem);
}

.page-hero .lead {
  max-width: 760px;
}

.page-main {
  padding: 82px 0 100px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.article-body {
  max-width: 850px;
}

.article-body h2 {
  margin: 72px 0 24px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 44px 0 16px;
  font-size: 1.28rem;
  font-weight: 600;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
}

.article-body strong {
  color: var(--ink);
}

.aside-card {
  position: sticky;
  top: 22px;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.aside-card h3 {
  margin-bottom: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.aside-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.aside-card li {
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.chart-figure {
  margin: 42px 0 72px;
}

.chart-figure a {
  display: block;
  border: 1px solid var(--line);
}

.chart-figure img {
  width: 100%;
  height: auto;
}

.chart-figure figcaption {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.callout {
  margin: 34px 0;
  padding: 24px 25px;
  border-left: 2px solid var(--accent);
  background: var(--panel);
}

.callout p:last-child {
  margin-bottom: 0;
}

.compare-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.compare-card,
.step-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.compare-card h3,
.step-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.compare-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card .card-number {
  display: block;
  margin-bottom: 36px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.tool-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.tool-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
}

.tool-card > p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.76rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #0f1110;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.result-panel {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(232, 255, 114, 0.25);
  background: rgba(232, 255, 114, 0.055);
}

.result-main {
  color: var(--accent);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-family: var(--serif);
}

.result-detail {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.check-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.check-item input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.social-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 62px 0;
  border-top: 1px solid var(--line);
}

.social-section h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.social-section p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-link {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.site-footer {
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.8;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 46px;
}

.footer-brand {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 13px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.footer-risk {
  margin: 0;
}

.page-disclaimer {
  margin-top: 58px;
  padding: 24px;
  border: 1px solid rgba(255, 204, 179, 0.22);
  background: rgba(255, 204, 179, 0.045);
  color: var(--danger);
  font-size: 0.8rem;
  line-height: 1.8;
}

.page-disclaimer strong {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .visual-chart .line {
    animation: none;
    stroke-dashoffset: 0;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 22px 0;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

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

  .hero-visual {
    min-height: 430px;
  }

  .section-head,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

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

  .strategy-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

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

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

  .aside-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 32px, var(--max));
  }

  .brand {
    font-size: 0.78rem;
  }

  .main-nav {
    font-size: 0.73rem;
  }

  .hero {
    padding: 56px 0 62px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.1rem);
  }

  .hero-visual {
    min-height: 370px;
    padding: 20px;
  }

  .visual-quote,
  .visual-meta {
    right: 20px;
    left: 20px;
  }

  .section,
  .page-main {
    padding: 76px 0;
  }

  .page-hero {
    padding: 74px 0 60px;
  }

  .framework-grid,
  .compare-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .framework-card {
    min-height: 230px;
  }

  .framework-card h3 {
    margin-top: 38px;
  }

  .strategy-card {
    min-height: 330px;
    padding: 26px;
  }

  .review-card {
    min-height: 380px;
    padding: 23px;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
