.hopeflow-project-page {
  padding-top: clamp(2.4rem, 4vw, 6.4rem);
}

.hopeflow-project-page .post-content {
  max-width: none;
  color: inherit;
}

/* 不再包一层深绿壳：直接铺在站点底色上。
   正文/分割线走站点 token；酸橙只作品牌强调（标签、实心按钮）。 */
.hopeflow-case {
  --hf-ink: var(--t-bright);
  --hf-muted: var(--t-medium);
  --hf-panel: var(--base-tint);
  --hf-line: rgba(var(--base-opp-rgb), 0.14);
  --hf-accent: #7eb800;
  --hf-accent-fill: #baff00;
  --hf-on-accent: #0a0c08;
  --hf-space-2: 0.8rem;
  --hf-space-3: 1.2rem;
  --hf-space-4: 1.6rem;
  --hf-space-6: 2.4rem;
  --hf-space-8: 3.2rem;
  --hf-space-12: 4.8rem;
  --hf-space-16: 6.4rem;
  --hf-space-24: 9.6rem;
  background: transparent;
  color: var(--hf-ink);
  font-family: "Manrope", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hopeflow-case *,
.hopeflow-case *::before,
.hopeflow-case *::after {
  box-sizing: border-box;
}

/* 默认链接继承正文色；CTA 必须自己声明颜色，否则会被这条盖掉。 */
.hopeflow-case a:not(.hopeflow-cta) {
  color: inherit;
}

.hopeflow-hero,
.hopeflow-chapter,
.hopeflow-pain,
.hopeflow-workflows,
.hopeflow-system,
.hopeflow-delivery,
.hopeflow-business,
.hopeflow-closing {
  padding-inline: clamp(2rem, 5vw, 8rem);
}

.hopeflow-hero {
  padding-top: clamp(2.8rem, 4vw, 5.6rem);
  padding-bottom: clamp(4rem, 6vw, 8rem);
}

.hopeflow-breadcrumbs,
.hopeflow-kicker,
.hopeflow-index,
.hopeflow-note,
.hopeflow-figure figcaption,
.hopeflow-pain__featured > span {
  font: 500 1.15rem/1.4 "JetBrains Mono", "Cascadia Code", monospace;
  letter-spacing: 0.06em;
}

.hopeflow-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hf-space-2);
  margin: 0;
  color: var(--hf-muted);
}

.hopeflow-breadcrumbs a {
  transition: color 0.3s ease;
}

.hopeflow-breadcrumbs a:hover,
.hopeflow-breadcrumbs a:focus-visible {
  color: var(--hf-accent);
}

.hopeflow-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(28rem, 0.65fr);
  gap: clamp(3.2rem, 6vw, 10rem);
  align-items: end;
  margin-top: clamp(6rem, 9vw, 13rem);
}

.hopeflow-kicker,
.hopeflow-index {
  margin: 0 0 var(--hf-space-6);
  color: var(--hf-accent);
}

.hopeflow-hero h1,
.hopeflow-section-heading h2,
.hopeflow-chapter h2,
.hopeflow-principle p:last-child,
.hopeflow-delivery h2,
.hopeflow-business h2,
.hopeflow-closing h2,
.hopeflow-workflow h3 {
  margin: 0;
  color: var(--hf-ink);
  text-wrap: balance;
}

.hopeflow-hero h1 {
  font-size: clamp(4.2rem, 6.4vw, 9.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hopeflow-hero h1,
.hopeflow-hero h1 span {
  color: var(--hf-ink);
}

.hopeflow-hero h1 span {
  display: block;
}

.hopeflow-hero__lead,
.hopeflow-chapter__copy p,
.hopeflow-section-heading > p,
.hopeflow-section-heading--split > p,
.hopeflow-workflow__copy > p:not(.hopeflow-index, .hopeflow-note),
.hopeflow-delivery__copy > p:not(.hopeflow-index),
.hopeflow-business__copy > p:not(.hopeflow-index),
.hopeflow-closing__copy > p:not(.hopeflow-index),
.hopeflow-pain__featured p {
  color: var(--hf-muted);
  font-size: clamp(1.6rem, 1.3vw, 2rem);
  line-height: 1.72;
  text-wrap: pretty;
}

.hopeflow-hero__lead {
  max-width: 48rem;
  margin: 0;
}

.hopeflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.8rem;
}

.hopeflow-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hf-space-8);
  min-width: min(100%, 20rem);
  padding: 1.35rem 1.6rem;
  border: 1px solid var(--hf-line);
  border-radius: 1.1rem;
  background: transparent;
  color: var(--hf-ink);
  font: 600 1.35rem/1.3 "Manrope", "PingFang SC", sans-serif;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, filter 0.25s ease;
}

.hopeflow-cta:hover,
.hopeflow-cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--hf-accent);
  color: var(--hf-accent);
  background: transparent;
}

/* 实心 CTA：亮酸橙底 + 近黑字（底色与文字色固定，不随主题翻） */
.hopeflow-cta--solid,
.hopeflow-cta.hopeflow-cta--solid {
  border-color: var(--hf-accent-fill);
  background: var(--hf-accent-fill);
  color: var(--hf-on-accent);
}

.hopeflow-cta--solid:hover,
.hopeflow-cta--solid:focus-visible,
.hopeflow-cta.hopeflow-cta--solid:hover,
.hopeflow-cta.hopeflow-cta--solid:focus-visible {
  border-color: var(--hf-accent-fill);
  background: var(--hf-accent-fill);
  color: var(--hf-on-accent);
  filter: brightness(0.94);
}

.hopeflow-cta:focus-visible {
  outline: 2px solid var(--hf-ink);
  outline-offset: 4px;
}

.hopeflow-cta span {
  color: inherit;
}

.hopeflow-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(4rem, 6vw, 7rem) 0 2.4rem;
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
}

.hopeflow-facts div {
  min-width: 0;
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--hf-line);
}

.hopeflow-facts div:last-child {
  border-right: 0;
}

.hopeflow-facts dt {
  margin: 0;
  color: var(--hf-muted);
  font: 500 1.05rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
}

.hopeflow-facts dd {
  margin: 0.8rem 0 0;
  color: var(--hf-ink);
  font-size: clamp(2rem, 2.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.hopeflow-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hf-line);
  border-radius: clamp(1.2rem, 1.8vw, 2rem);
  background: var(--hf-panel);
}

.hopeflow-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.6s var(--_animbezier, cubic-bezier(0.23, 0.65, 0.74, 1.09));
}

.hopeflow-figure:hover img {
  transform: scale(1.008);
}

.hopeflow-figure figcaption {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.35rem 1.6rem;
  color: var(--hf-muted);
  border-top: 1px solid var(--hf-line);
  letter-spacing: 0.04em;
}

.hopeflow-figure figcaption span {
  color: var(--hf-accent);
  font-weight: 600;
  flex-shrink: 0;
}

.hopeflow-chapter {
  display: grid;
  grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1.15fr) minmax(26rem, 0.55fr);
  gap: clamp(3rem, 5vw, 7rem);
  align-items: start;
  padding-top: clamp(6rem, 10vw, 12rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
  border-top: 1px solid var(--hf-line);
}

.hopeflow-chapter h2,
.hopeflow-section-heading h2,
.hopeflow-delivery h2,
.hopeflow-business h2 {
  font-size: clamp(3.2rem, 4.2vw, 6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hopeflow-chapter__copy p {
  max-width: 58rem;
  margin: 0 0 var(--hf-space-6);
}

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

/* —— Pain —— */
.hopeflow-pain {
  padding-bottom: clamp(5rem, 8vw, 10rem);
}

.hopeflow-pain__lead {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.hopeflow-pain__featured {
  padding: clamp(2.2rem, 3.2vw, 3.6rem);
  border: 1px solid var(--hf-line);
  border-radius: 1.6rem;
  background: var(--hf-panel);
}

.hopeflow-pain__featured > span {
  display: inline-block;
  margin: 0 0 1.8rem;
  color: var(--hf-accent);
}

.hopeflow-pain__featured h3 {
  margin: 0 0 1.2rem;
  color: var(--hf-ink);
  font-size: clamp(2.2rem, 2.8vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hopeflow-pain__featured p {
  margin: 0;
  max-width: 48rem;
}

.hopeflow-pain__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--hf-line);
  border-radius: 1.6rem;
  overflow: hidden;
}

.hopeflow-pain__grid article {
  padding: clamp(1.8rem, 2.6vw, 2.8rem);
  border-right: 1px solid var(--hf-line);
  background: color-mix(in srgb, var(--hf-panel) 70%, transparent);
}

.hopeflow-pain__grid article:last-child {
  border-right: 0;
}

.hopeflow-pain__grid article > span {
  color: var(--hf-accent);
  font: 600 1.1rem/1 "JetBrains Mono", monospace;
}

.hopeflow-pain__grid h3 {
  margin: 1.4rem 0 0.7rem;
  color: var(--hf-ink);
  font-size: clamp(1.7rem, 1.9vw, 2.2rem);
  line-height: 1.2;
}

.hopeflow-pain__grid p {
  margin: 0;
  color: var(--hf-muted);
  font-size: 1.35rem;
  line-height: 1.55;
}

.hopeflow-figure--wide {
  margin-inline: clamp(2rem, 5vw, 8rem);
}

.hopeflow-principle {
  margin-top: clamp(6rem, 10vw, 12rem);
  padding: clamp(5rem, 8vw, 10rem) clamp(2rem, 8vw, 12rem);
  border-top: 1px solid var(--hf-line);
  border-bottom: 1px solid var(--hf-line);
  text-align: center;
}

.hopeflow-principle p:last-child {
  font-size: clamp(3.2rem, 5vw, 7.2rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
