:root {
  --paper: #f7f1e4;
  --paper-2: #fffaf1;
  --ink: #171715;
  --ink-soft: #2d2c29;
  --muted: #777167;
  --line: rgba(23, 23, 21, 0.16);
  --line-dark: rgba(255, 250, 241, 0.18);
  --red: #e63b46;
  --red-dark: #bd2833;
  --steel: #496b73;
  --olive: #72784f;
  --white: #ffffff;
  --font-display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", monospace;
}

@font-face {
  font-family: "Alimama ShuHeiTi";
  src: url("https://acc-1258344699.cos.accelerate.myqcloud.com/web/website/assets/AlimamaShuHeiTi-Bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Alimama FangYuanTi VF";
  src: url("https://acc-1258344699.cos.accelerate.myqcloud.com/web/website/assets/AlimamaFangYuanTiVF-Thin.woff2") format("woff2");
  font-display: swap;
}

html[data-theme="workbuddy"] {
  --paper: #ffffff;
  --paper-2: #f8f9fa;
  --ink: #191a23;
  --ink-soft: #333333;
  --muted: #666666;
  --line: rgba(25, 26, 35, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --red: #28b894;
  --red-dark: #22a683;
  --steel: #4c4f6b;
  --olive: #858699;
  --white: #ffffff;
  --font-display: "Alimama ShuHeiTi", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-sans: "Alimama FangYuanTi VF", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--red);
  color: var(--white);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 241, 228, 0.94);
  backdrop-filter: blur(16px);
}

html[data-theme="workbuddy"] .site-header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

html[data-theme="workbuddy"] .brand-mark {
  border-radius: 10px;
}

.brand-lockup {
  display: grid;
  gap: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-domain,
.eyebrow,
.meta-line,
.article-meta,
.media-label,
.signal-row dd,
.signal-row dt {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-domain {
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.theme-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, 34px);
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.64);
  padding: 3px;
}

.theme-switcher button {
  min-width: 0;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

html[data-theme="workbuddy"] .theme-switcher {
  border-radius: 8px;
  border-color: rgba(40, 184, 148, 0.26);
  background: #f8f9fa;
}

html[data-theme="workbuddy"] .theme-switcher button {
  border-radius: 5px;
}

html[data-theme="workbuddy"] .theme-switcher button[aria-pressed="true"] {
  background: #28b894;
  color: #ffffff;
}

.main-nav a,
.nav-cta {
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.main-nav a:hover {
  color: var(--red);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ink);
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.1;
}

html[data-theme="workbuddy"] .nav-cta,
html[data-theme="workbuddy"] .button {
  border-radius: 4px;
}

.nav-cta:hover,
.button:hover,
.article-card:hover,
.episode-card:hover,
.story-item:hover,
.resource-card:hover,
.line-entry:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.button.primary:hover {
  background: var(--red-dark);
}

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

html[data-theme="workbuddy"] .button.secondary {
  border-color: #28b894;
  color: #28b894;
}

html[data-theme="workbuddy"] .button.secondary:hover {
  background: rgba(40, 184, 148, 0.08);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  min-height: min(820px, calc(100dvh - 76px));
  padding: clamp(48px, 7vw, 104px) clamp(20px, 4vw, 64px) 56px;
}

html[data-theme="workbuddy"] .hero-shell {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hero-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 900;
  line-height: 0.95;
}

.hero-kicker {
  margin-bottom: 26px;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  line-height: 1.2;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  max-width: 520px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-row div {
  padding: 18px 16px 18px 0;
}

.signal-row dt {
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.signal-row dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.hero-media {
  position: relative;
  display: block;
  background: var(--ink);
  color: var(--white);
  transition: transform 220ms ease;
}

html[data-theme="workbuddy"] .hero-media {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(20, 30, 40, 0.10), 0 2px 6px rgba(20, 30, 40, 0.06);
}

.hero-media:hover {
  transform: translateY(-4px) rotate(0.4deg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.media-label {
  display: block;
  padding: 18px 20px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.ticker-band {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}

html[data-theme="workbuddy"] .ticker-band {
  border-color: #191a23;
}

.ticker-band span {
  padding: 14px 12px;
  border-right: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
}

.section {
  padding: clamp(64px, 8vw, 116px) clamp(20px, 4vw, 64px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.section-heading h2,
.page-hero h1,
.about-hero h1,
.article-header h1 {
  margin-bottom: 0;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.06;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  gap: 32px;
  align-items: end;
  max-width: none;
}

.split-heading > p {
  margin-bottom: 6px;
  color: var(--muted);
}

.dark-section {
  background: var(--ink);
  color: var(--paper-2);
}

html[data-theme="workbuddy"] .dark-section {
  background: #191a23;
}

.dark-section .section-heading p,
.dark-section .feature-panel p,
.dark-section .meta-line {
  color: rgba(255, 250, 241, 0.74);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.feature-row > img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.feature-panel {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-dark);
}

html[data-theme="workbuddy"] .feature-panel {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-panel h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.feature-panel .button {
  justify-self: start;
  margin-top: 16px;
}

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

.layer-grid article,
.article-card,
.resource-card {
  min-height: 240px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

html[data-theme="workbuddy"] .layer-grid article,
html[data-theme="workbuddy"] .article-card,
html[data-theme="workbuddy"] .resource-card,
html[data-theme="workbuddy"] .empty-note,
html[data-theme="workbuddy"] .source-box,
html[data-theme="workbuddy"] .library-card,
html[data-theme="workbuddy"] .episode-card {
  border-color: #e8e8e8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

html[data-theme="workbuddy"] .layer-grid article:hover,
html[data-theme="workbuddy"] .article-card:hover,
html[data-theme="workbuddy"] .resource-card:hover,
html[data-theme="workbuddy"] .library-card:hover,
html[data-theme="workbuddy"] .episode-card:hover {
  border-color: rgba(40, 184, 148, 0.36);
  box-shadow: 0 12px 32px rgba(40, 184, 148, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.layer-grid span,
.story-item span,
.resource-card span,
.line-entry span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.layer-grid h3,
.article-card h2,
.article-card h3,
.story-item h2,
.story-item h3,
.resource-card h2,
.episode-card h2,
.episode-card h3,
.library-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
}

.layer-grid p,
.article-card p,
.story-item p,
.resource-card p,
.episode-card p,
.library-card p,
.empty-note p,
.series-heading p,
.source-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-card {
  display: grid;
  align-content: start;
  min-height: 360px;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 18px;
}

html[data-theme="workbuddy"] .article-card img,
html[data-theme="workbuddy"] .episode-card img,
html[data-theme="workbuddy"] .article-image img,
html[data-theme="workbuddy"] .about-hero img {
  border-radius: 10px;
}

.meta-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.muted-section {
  background: #ebe6d8;
}

html[data-theme="workbuddy"] .muted-section {
  background: #f0f1f5;
}

.story-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.series-stack {
  display: grid;
  gap: clamp(48px, 7vw, 86px);
}

.series-section {
  display: grid;
  gap: 24px;
}

.series-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.series-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.story-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 0.8fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 180ms ease;
}

.story-list.large .story-item {
  grid-template-columns: 180px minmax(0, 1fr);
}

.story-list.large .story-item p {
  grid-column: 2;
  max-width: 760px;
}

.compact-section {
  padding-top: 72px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 72px);
}

.column-title {
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 28px;
}

.line-entry,
.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  transition: transform 180ms ease;
}

.line-entry strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.text-link {
  justify-self: end;
  align-self: center;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 900;
}

.page-hero {
  min-height: 420px;
  padding: clamp(70px, 9vw, 132px) clamp(20px, 4vw, 64px) 72px;
  border-bottom: 1px solid var(--line);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.55;
}

.episode-grid {
  display: grid;
  gap: 20px;
}

.episode-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px;
  transition: transform 180ms ease;
}

.episode-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.timeline-list {
  max-width: 980px;
  border-bottom: 1px solid var(--line);
}

.timeline-item span {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.timeline-item h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-card {
  min-height: 280px;
}

.library-grid {
  display: grid;
  gap: 18px;
}

.library-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  gap: 24px;
  align-items: end;
  min-height: 220px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

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

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row {
  margin-top: 18px;
}

.tag-row span,
.tag-cloud span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  background: rgba(255, 250, 241, 0.58);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

html[data-theme="workbuddy"] .tag-row span,
html[data-theme="workbuddy"] .tag-cloud span {
  border-color: rgba(40, 184, 148, 0.24);
  border-radius: 999px;
  background: rgba(40, 184, 148, 0.08);
  color: #28b894;
}

.tag-cloud {
  margin-bottom: 34px;
}

.empty-note {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(24px, 4vw, 42px);
}

.empty-note h2,
.empty-note h3 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  padding: clamp(60px, 8vw, 112px) clamp(20px, 4vw, 64px);
}

.about-hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-hero p:not(.eyebrow) {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.75;
}

.article-page {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 4vw, 64px);
}

.article-header {
  max-width: 920px;
  margin: 0 auto 44px;
}

.article-header > p:not(.eyebrow) {
  margin-top: 20px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.article-image {
  max-width: 1120px;
  margin: 0 auto 48px;
}

.source-box {
  max-width: 920px;
  margin: -18px auto 42px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 24px;
}

.source-box h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

.source-box .text-link {
  display: inline-flex;
  justify-self: start;
  margin-top: 18px;
}

.article-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.9;
}

.prose h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 25px;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  margin: 34px 0;
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 22px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.55;
}

.prose code {
  background: rgba(230, 59, 70, 0.1);
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

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

.site-footer {
  padding: 64px clamp(20px, 4vw, 64px) 28px;
  background: var(--ink);
  color: var(--paper-2);
}

html[data-theme="workbuddy"] .site-footer {
  background: #191a23;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px minmax(260px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-grid h2 {
  max-width: 660px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-links a,
.footer-contact a {
  color: var(--paper-2);
  font-weight: 800;
}

.footer-contact p {
  margin-bottom: 14px;
  color: rgba(255, 250, 241, 0.7);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: rgba(255, 250, 241, 0.58);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-shell,
  .feature-row,
  .split-heading,
  .about-hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .layer-grid,
  .article-grid,
  .resource-grid,
  .two-column,
  .library-card {
    grid-template-columns: 1fr;
  }

  .story-item,
  .story-list.large .story-item,
  .episode-card,
  .line-entry,
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .story-list.large .story-item p {
    grid-column: auto;
  }

  .text-link {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 14px 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .theme-switcher {
    grid-template-columns: repeat(2, 28px);
    min-height: 32px;
  }

  .theme-switcher button {
    height: 24px;
    font-size: 11px;
  }

  .brand-domain {
    display: none;
  }

  .nav-cta {
    padding-inline: 12px;
    font-size: 13px;
  }

  .hero-shell,
  .section,
  .page-hero,
  .about-hero,
  .article-page,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(64px, 22vw, 92px);
  }

  .signal-row,
  .ticker-band {
    grid-template-columns: 1fr;
  }

  .ticker-band span {
    text-align: left;
  }

  .feature-row > img {
    min-height: 260px;
  }

  .article-card,
  .layer-grid article,
  .resource-card {
    min-height: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/* ───────── Training-brand components (学习圈) ───────── */

.nav-cta.primary {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.nav-cta.primary:hover {
  background: var(--red-dark);
}

.text-inline-link {
  color: var(--red);
  font-weight: 800;
  border-bottom: 1px solid var(--red);
}

/* From → To shift rows */
.shift-grid {
  display: grid;
  gap: 16px;
}

.shift-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.shift-col {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 21px);
  line-height: 1.4;
}

.shift-col.from {
  color: var(--muted);
}

.shift-col.to {
  border-color: var(--red);
  color: var(--ink);
  font-weight: 700;
}

.shift-arrow {
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 28px;
  font-weight: 900;
}

html[data-theme="workbuddy"] .shift-col {
  border-radius: 12px;
}

/* Learning-path numbered steps */
.step-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  color: var(--red);
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.step-tag {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}

.step-desc {
  margin: 0;
  color: var(--muted);
}

/* Offer / fit cards reuse .layer-grid but flow with content count */
.offer-grid {
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

/* Learning-path material list (reuses .line-entry) */
.path-material {
  display: grid;
}

.path-material .line-entry p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 15px;
}

/* Join: plan card + FAQ */
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: clamp(26px, 4vw, 40px);
}

html[data-theme="workbuddy"] .plan-card {
  border-radius: 14px;
  border-color: #e8e8e8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.plan-flag {
  margin: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.plan-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.6em;
  font-weight: 700;
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.plan-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.plan-card .button {
  justify-self: start;
  margin-top: 8px;
}

.plan-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .shift-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shift-arrow {
    justify-self: start;
    transform: rotate(90deg);
  }

  .step-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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