/*
 * Landing：与阅读壳共用 main.css token 与 wiki-shell.css 顶栏。
 * 只放首页特有的章节样式；卡片、quiz、书函复用 wiki-content.css 的组件。
 */

.wiki-landing {
  display: block;
}

/* 阅读页是双层顶栏，首页只有 64px 单层顶栏；首页锚点按真实高度预留。 */
html.wiki-landing-root {
  scroll-padding-top: 64px;
}

.landing-shell {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.landing-square {
  width: 7px;
  height: 7px;
  background: var(--watcha);
  border-radius: 2px;
  flex: none;
}

/* ============ Hero ============ */
.landing-hero {
  padding: 52px 0 72px;
  overflow: hidden;
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 48px;
  align-items: center;
}

.landing-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  color: var(--mut);
}

.landing-eyebrow i {
  flex: none;
  width: 34px;
  height: 1px;
  background: var(--line-2);
}

.landing-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--watcha-deep);
  letter-spacing: 0.14em;
}

.landing-live b {
  width: 6px;
  height: 6px;
  background: var(--watcha);
  border-radius: 50%;
  animation: blink 1.6s infinite;
}

.landing-quote {
  margin: 34px 0 10px;
  font-family: var(--font-gara);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--red);
  letter-spacing: 0.04em;
}

.landing-quote__upright {
  font-style: normal;
}

.landing-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.9rem, 6.6vw, 5rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}

.landing-power {
  position: relative;
  display: inline-block;
  color: var(--red);
}

.landing-power svg {
  position: absolute;
  left: -4%;
  bottom: -0.18em;
  width: 108%;
  height: 0.28em;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.75;
}

.landing-star {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.42em;
  color: var(--watcha);
  vertical-align: super;
}

.landing-lead {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: var(--t-lead);
  line-height: var(--lh-lead);
  color: var(--ink-2);
}

.landing-lead strong {
  color: var(--ink);
  font-weight: 700;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: var(--t-ui);
  font-weight: 500;
  transition: 0.25s;
  border: 1px solid transparent;
}

.landing-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-btn--red {
  background: var(--red);
  color: #fdf9f0;
}

.landing-btn--red:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}

.landing-btn--outline {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.landing-btn--outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.landing-btn--primary {
  background: var(--ink);
  color: var(--paper-2);
}

.landing-btn--primary:hover {
  background: var(--watcha-deep);
  transform: translateY(-2px);
}

.landing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 44px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.landing-stats dt {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  color: var(--mut);
}

.landing-stats dd {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}

.landing-stats dd small {
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: var(--t-ui);
  font-weight: 400;
  color: var(--mut);
}

.landing-stats dd.landing-stats__date {
  font-size: var(--t-h2);
  line-height: var(--lh-title);
}

/* Hero 右侧题字：方案一，竖排四列，二、四列下沉 */
.landing-hero__aside {
  position: relative;
  justify-self: end;
  padding: 44px 36px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow:
    0 0 0 6px var(--paper-2),
    0 0 0 7px var(--line-2);
  text-align: center;
}

.landing-hero__quote-columns {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
}

.landing-hero__quote-column {
  font-family: var(--font-serif);
  font-weight: 700;
  /* 方案一题字的文化性展示例外：桌面 19px，移动端回到 T4 17px。 */
  font-size: 19px;
  letter-spacing: 0.14em;
  line-height: var(--lh-comp);
  color: var(--ink);
  margin: 0;
  writing-mode: vertical-rl;
  max-height: 280px;
}

.landing-hero__quote-column--accent {
  margin-top: 56px;
  color: var(--red);
}

.landing-hero__aside small {
  display: block;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.24em;
  color: var(--mut);
}

.landing-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 14px auto 0;
  background: var(--red);
  color: #f8f3e8;
  border-radius: 6px;
  transform: rotate(-4deg);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-mono);
  line-height: 1.15;
}

.landing-seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(248, 243, 232, 0.5);
  border-radius: 4px;
}

.landing-vertical-rule {
  display: none;
}

/* ============ 跑马题记 ============ */
.landing-ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
}

.landing-ticker__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: landingTicker 30s linear infinite;
}

.landing-ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-family: var(--font-serif);
  font-size: var(--t-comp);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  white-space: nowrap;
}

.landing-ticker__track span i {
  font-style: normal;
  color: var(--watcha);
  font-size: var(--t-mono);
}

@keyframes landingTicker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============ 章节骨架 ============ */
.landing-section {
  padding: 96px 0 24px;
}

.landing-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.22em;
  color: var(--mut);
}

/* 原章节标题锚点避开 64px 固定顶栏，并额外留出一点呼吸空间。 */
.landing-section-head:is(#courses, #classic) {
  scroll-margin-top: 16px;
}

.landing-section-label b {
  color: var(--red);
  font-weight: 500;
}

.landing-section-label i {
  flex: none;
  width: 34px;
  height: 1px;
  background: var(--line-2);
}

.landing-section-head {
  position: relative;
  margin-top: 26px;
  max-width: 640px;
}

.landing-section-number {
  position: absolute;
  right: 0;
  top: -0.35em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(4.5rem, 9vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}

.landing-section-head h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: var(--lh-title);
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}

.landing-section-head p {
  margin: 16px 0 0;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink-2);
  max-width: 540px;
}

/* ============ VOL.01 三句心法 ============ */
.landing-method__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.landing-method__grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 28px 26px 24px;
  transition: 0.3s;
}

.landing-method__grid article:hover {
  transform: translateY(-3px);
  border-color: var(--watcha-line);
}

.landing-method__grid article > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.landing-method__grid article > div span {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h2);
  color: var(--red);
}

.landing-method__grid article > div small {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.2em;
  color: var(--mut);
}

.landing-method__grid h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h3);
  color: var(--ink);
  margin: 14px 0 10px;
}

.landing-method__grid article > p {
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
  color: var(--ink-2);
  margin: 0;
}

.landing-method__grid footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.06em;
  color: var(--mut);
}

.landing-method__grid footer b {
  color: var(--watcha-deep);
  font-weight: 500;
}

/* ============ 猹友案例 ============ */
.landing-story {
  margin-top: 96px;
  background: var(--ink-surface);
  color: var(--ink-surface-text);
  padding: 72px 0;
}

.landing-story__quote-mark {
  display: block;
  width: 32px;
  height: 48px;
  overflow: visible;
  color: var(--red-soft);
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

.landing-story blockquote {
  margin: 18px 0 0;
  max-width: 760px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: var(--lh-lead);
  letter-spacing: 0.02em;
}

.landing-story blockquote u {
  text-decoration: none;
  color: #8ddb6b;
  border-bottom: 1.5px solid var(--watcha);
  padding-bottom: 2px;
}

.landing-story p {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  color: rgba(234, 228, 214, 0.55);
}

.landing-story strong {
  display: block;
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: var(--t-cardtitle);
  letter-spacing: 0.06em;
  color: var(--ink-surface-text);
}

/* ============ VOL.02 藏经阁 ============ */
.landing-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  padding: 30px 34px;
}

.landing-featured__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.landing-featured__main .landing-btn {
  margin-top: auto;
}

.landing-featured__side {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 44px;
}

.landing-featured__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(191, 58, 38, 0.35);
  border-radius: 999px;
  background: rgba(191, 58, 38, 0.07);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.landing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  color: var(--watcha-deep);
  margin: 0;
}

.landing-status span {
  width: 6px;
  height: 6px;
  background: var(--watcha);
  border-radius: 50%;
  animation: blink 1.6s infinite;
}

.landing-featured h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin: 12px 0 8px;
}

.landing-featured blockquote {
  margin: 0 0 14px;
  font-family: var(--font-gara);
  font-style: italic;
  font-weight: 600;
  font-size: var(--t-cardtitle);
  color: var(--red);
  letter-spacing: 0.03em;
}

.landing-featured > div > p,
.landing-featured__main > p {
  margin: 0 0 22px;
  max-width: 480px;
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
  color: var(--ink-2);
}

.landing-featured ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.landing-featured ol li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-comp);
  color: var(--ink-2);
}

.landing-featured ol li .landing-featured__index {
  font-family: var(--font-gara);
  font-style: italic;
  font-size: var(--t-ui);
  color: var(--red);
  flex: none;
}

.landing-featured a.is-navigation-locked,
.landing-path-card a.is-navigation-locked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mut);
  cursor: not-allowed;
}

.landing-featured a.is-navigation-locked:hover,
.landing-path-card a.is-navigation-locked:hover {
  color: var(--mut);
  border-bottom-color: transparent;
}

.landing-featured ol li a {
  transition: 0.2s;
}

.landing-featured ol li a:hover {
  color: var(--watcha-deep);
}

.landing-featured__more {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  color: var(--mut);
}

.landing-featured dl {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 16px 0 0;
}

.landing-featured dt {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  color: var(--mut);
}

.landing-featured dd {
  margin: 4px 0 0;
  font-size: var(--t-comp);
  font-weight: 700;
  color: var(--ink);
}

.landing-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.landing-course {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 24px 24px 20px;
  transition: 0.3s;
  color: inherit;
}

a.landing-course:hover {
  transform: translateY(-3px);
  border-color: var(--watcha-line);
}

.landing-course__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-course__top small {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  color: var(--mut);
}

.landing-course > p {
  margin: 16px 0 4px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--red);
}

.landing-course h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h3);
  color: var(--ink);
  margin: 6px 0 8px;
}

.landing-course__description {
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
  color: var(--ink-2);
}

.landing-course ol {
  margin: 16px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.landing-course ol li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: var(--t-ui);
  color: var(--ink-2);
}

.landing-course ol li span {
  font-family: var(--font-gara);
  font-style: italic;
  font-size: var(--t-ui);
  color: var(--red);
  flex: none;
}

.landing-course footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.landing-course footer span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  color: var(--mut);
}

.landing-course footer b {
  font-size: var(--t-ui);
  font-weight: 700;
  color: var(--watcha-deep);
}

.landing-course--upcoming {
  border-style: dashed;
  background: transparent;
}

.landing-course--upcoming footer b {
  color: var(--mut);
  font-weight: 500;
}

/* ============ VOL.03 吃瓜榜 ============ */
.landing-recommendations__list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.landing-recommendation {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.4fr) auto minmax(0, 1fr) 24px;
  align-items: center;
  gap: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  transition: 0.2s;
}

.landing-recommendation:hover {
  background: var(--card);
}

.landing-recommendation__rank {
  font-family: var(--font-gara);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--red);
}

.landing-recommendation__main {
  min-width: 0;
}

.landing-recommendation__main strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-cardtitle);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-recommendation__main small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--mut);
}

.landing-recommendation__level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--watcha-line);
  border-radius: 999px;
  background: var(--watcha-soft);
  color: var(--watcha-deep);
  font-size: var(--t-mono);
  font-weight: 700;
  white-space: nowrap;
}

.landing-recommendation__level i {
  width: 5px;
  height: 5px;
  background: var(--watcha);
  border-radius: 50%;
}

.landing-recommendation__meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.04em;
  color: var(--mut);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-recommendation__arrow {
  color: var(--mut);
  transition: 0.2s;
}

.landing-recommendation:hover .landing-recommendation__arrow {
  color: var(--watcha-deep);
  transform: translateX(4px);
}

/* ============ VOL.04 修炼路径 ============ */
.landing-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.landing-path-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 24px;
}

.landing-path-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-path-card > header small {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  color: var(--mut);
}

.landing-path-card h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h3);
  color: var(--ink);
  margin: 16px 0 8px;
}

.landing-path-card > p {
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
  color: var(--ink-2);
  margin: 0;
}

.landing-path-card ol {
  margin: 18px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.landing-path-card ol li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: var(--t-ui);
  color: var(--ink-2);
}

.landing-path-card ol li i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--watcha-deep);
  font-family: var(--font-serif);
  font-size: var(--t-mono);
  font-weight: 700;
  flex: none;
}

.landing-path-card ol li a {
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.landing-path-card ol li a:hover {
  color: var(--watcha-deep);
  border-bottom-color: var(--watcha);
}

.landing-path-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.landing-path-card footer span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  color: var(--mut);
}

.landing-path-card footer a,
.landing-path-card footer b {
  font-size: var(--t-ui);
  font-weight: 700;
  color: var(--watcha-deep);
}

.landing-path-card footer a:hover {
  text-decoration: underline;
}

.landing-path-card--planned {
  border-style: dashed;
  background: transparent;
}

.landing-path-card--planned footer {
  justify-content: flex-end;
}

.landing-path-card--planned footer b {
  color: var(--mut);
  font-weight: 500;
}

/* ============ VOL.05 镇阁之文 ============ */
.landing-classic .classic {
  margin-top: 44px;
  max-width: 760px;
  margin-inline: auto;
}

/* ============ VOL.06 切磋一下 ============ */
.landing-quiz-section .quiz {
  margin-top: 44px;
  max-width: 860px;
}

/* ============ 收尾 CTA ============ */
.landing-closing {
  margin-top: 110px;
  background: var(--ink-surface);
  color: var(--ink-surface-text);
  padding: 88px 0;
}

.landing-closing__inner > p:first-child {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.24em;
  color: #8ddb6b;
  margin: 0;
}

.landing-closing__inner h2 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: var(--lh-title);
  margin: 18px 0 0;
  color: var(--ink-surface-text);
}

.landing-closing__inner h2 span {
  color: var(--red-soft);
}

.landing-closing__inner > p:not(:first-child) {
  margin: 18px 0 0;
  max-width: 560px;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: rgba(234, 228, 214, 0.65);
}

.landing-closing__inner > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.landing-closing__inner > div > span {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  color: rgba(234, 228, 214, 0.5);
}

/* ============ 页脚 ============ */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  overflow: hidden;
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 32px;
}

.landing-footer__brand strong {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h3);
  color: var(--ink);
}

.landing-footer__brand strong em {
  font-family: var(--font-gara);
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}

.landing-footer__brand p {
  margin: 12px 0 0;
  max-width: 340px;
  font-size: var(--t-comp);
  line-height: var(--lh-comp);
  color: var(--ink-2);
}

.landing-footer__brand > span {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  color: var(--mut);
}

.landing-footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.landing-footer nav b {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.2em;
  color: var(--mut);
  font-weight: 500;
  margin-bottom: 4px;
}

.landing-footer nav a {
  font-size: var(--t-ui);
  color: var(--ink-2);
  transition: 0.2s;
}

.landing-footer nav a:hover {
  color: var(--watcha-deep);
}

.landing-footer__mark {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(6rem, 18vw, 13rem);
  line-height: 0.85;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  user-select: none;
  pointer-events: none;
}

.landing-footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  color: var(--mut);
}

/* ============ 进场动画（默认可读，仅观察器就绪后的屏外元素待入场） ============ */
.landing-reveal.is-pending {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-reveal.is-pending[data-delay='1'] {
  transition-delay: 0.08s;
}

.landing-reveal.is-pending[data-delay='2'] {
  transition-delay: 0.16s;
}

.landing-reveal.is-pending[data-delay='3'] {
  transition-delay: 0.24s;
}

.landing-reveal.is-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal.is-pending {
    opacity: 1;
    transform: none;
  }

  .landing-ticker__track {
    animation: none;
  }
}

/* ============ Hero 右侧：藏经阁书架（Levi 式 CSS 3D） ============ */
/* 机制照 leviv/bookshelf：.shelf-book 是 flex 行容器 [spine][cover]，width 过渡让位。 */
.landing-hero__shelf {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-shelf-stage {
  position: relative;
  padding-top: 10px;
}

.landing-bookshelf {
  display: flex;
  width: 115%;
  align-items: flex-end;
  gap: 7px;
  margin-inline: 0;
  padding: 0 8px 0 22px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.landing-bookshelf::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.shelf-book {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex: none;
  width: var(--w);
  perspective: 1000px;
  transition: width 0.5s ease;
  will-change: width;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.shelf-book.active {
  width: calc(var(--w) + var(--cw));
  z-index: 3;
}

.shelf-spine {
  position: relative;
  flex: none;
  width: var(--w);
  height: var(--h);
  transform-origin: right center;
  transform: rotateY(0deg);
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 3px;
  border-radius: 3px 0 0 3px;
  background:
    linear-gradient(180deg, transparent 13px, rgba(0, 0, 0, 0.16) 14px, rgba(255, 255, 255, 0.2) 16px, transparent 19px),
    linear-gradient(180deg, transparent calc(100% - 19px), rgba(0, 0, 0, 0.16) calc(100% - 16px), rgba(255, 255, 255, 0.2) calc(100% - 14px), transparent calc(100% - 13px)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 22%, rgba(255, 255, 255, 0.13) 46%, rgba(255, 255, 255, 0) 72%, rgba(0, 0, 0, 0.26)),
    var(--spine-bg);
  color: var(--book-ink, #2b2a24);
  filter: brightness(0.96) contrast(1.04);
  box-shadow:
    2px 3px 8px rgba(60, 50, 30, 0.3),
    inset 2px 0 3px rgba(255, 255, 255, 0.28),
    inset -3px 0 6px rgba(0, 0, 0, 0.18);
}

.shelf-book:not(.active):hover .shelf-spine {
  transform: translateY(-5px);
}

.shelf-book.active .shelf-spine {
  transform: rotateY(-60deg);
}

.shelf-spine::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--frame, rgba(0, 0, 0, 0.14));
  border-radius: 2px;
  pointer-events: none;
}

.shelf-spine__title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(100% - 16px);
}

.shelf-cover {
  position: relative;
  flex: none;
  width: var(--cw);
  height: var(--h);
  transform-origin: left center;
  transform: rotateY(88.8deg);
  opacity: 0;
  transition:
    transform 0.5s ease,
    opacity 0.4s ease;
  transform-style: preserve-3d;
  display: block;
  text-align: center;
  padding: 22px 16px 18px;
  border-radius: 0 7px 7px 0;
  background: var(--cover-bg);
  color: var(--cover-ink, #2b2a24);
  filter: brightness(0.96) contrast(1.04);
  box-shadow:
    inset 4px 0 8px rgba(0, 0, 0, 0.22),
    3px 4px 12px rgba(60, 50, 30, 0.3);
}

.shelf-book.active .shelf-cover {
  transform: rotateY(30deg);
  opacity: 1;
}

.shelf-cover::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--cover-frame, rgba(0, 0, 0, 0.14));
  border-radius: 2px;
  pointer-events: none;
}

.shelf-cover__dent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 2px,
    rgba(255, 255, 255, 0.4) 3px,
    rgba(255, 255, 255, 0.18) 5px,
    transparent 7px,
    transparent 9px,
    rgba(0, 0, 0, 0.12) 10px,
    transparent 13px
  );
}

.shelf-cover__pages {
  position: absolute;
  top: 1px;
  right: 0;
  width: 10px;
  height: calc(100% - 2px);
  transform: rotateY(90deg);
  transform-origin: right center;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(90deg, #f6f0e2 0 2px, #e0d8c2 2px 3px);
}

.shelf-cover__brand {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 2.5px;
  opacity: 0.6;
  white-space: nowrap;
}

.shelf-cover__title {
  display: block;
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.shelf-cover__cat {
  display: block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.75;
  white-space: nowrap;
}

.shelf-tex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  filter: url(#paperTex);
  border-radius: inherit;
  z-index: 2;
}

.shelf-spine > *,
.shelf-cover > * {
  position: relative;
  z-index: 3;
}

.shelf-book::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -4px;
  height: 8px;
  border-radius: 50%;
  background: rgba(40, 32, 18, 0.28);
  filter: blur(4px);
  z-index: 2;
  transition: 0.5s ease;
}

.shelf-book.active::after {
  left: 4%;
  right: 4%;
  background: rgba(40, 32, 18, 0.32);
}

/* 配色 */
.shelf-book--trae {
  --spine-bg: linear-gradient(100deg, #e9e9f5, #fff 31%, #f5f5ff);
  --book-ink: #5b52e5;
  --frame: rgba(79, 67, 226, 0.22);
  --cover-bg: url('/wiki-assets/landing/traework-book-cover-v1.webp') center / cover no-repeat;
  --cover-ink: #5b52e5;
  --cover-frame: rgba(79, 67, 226, 0.2);
}

.shelf-book--hero {
  --spine-bg: linear-gradient(100deg, #4538d6, #5244e8 30%, #4b3fe3);
  --book-ink: #eeecff;
  --frame: rgba(255, 255, 255, 0.32);
  --cover-bg: linear-gradient(100deg, #4538d6, #5849ec 35%, #4f42e6);
  --cover-ink: #eeecff;
  --cover-frame: rgba(255, 255, 255, 0.3);
}

.shelf-book--gold {
  --spine-bg: linear-gradient(100deg, #211d16, #2e2820 30%, #26211a);
  --book-ink: #d9b978;
  --frame: rgba(217, 185, 120, 0.35);
  --cover-bg: url('/wiki-assets/landing/ai-pm-book-cover-v1.webp') center / cover no-repeat;
  --cover-ink: #d9b978;
  --cover-frame: rgba(217, 185, 120, 0.32);
}

.shelf-book--pine {
  --spine-bg: linear-gradient(100deg, #2e4034, #3c5245 30%, #35493d);
  --book-ink: #dfe8d4;
  --frame: rgba(255, 255, 255, 0.28);
  --cover-bg: url('/wiki-assets/landing/fde-book-cover-v1.webp') center / cover no-repeat;
  --cover-ink: #dfe8d4;
  --cover-frame: rgba(255, 255, 255, 0.26);
}

.shelf-book--navy {
  --spine-bg: linear-gradient(100deg, #2e3d54, #3c5069 30%, #34465f);
  --book-ink: #dfe7f0;
  --frame: rgba(255, 255, 255, 0.26);
  --cover-bg: url('/wiki-assets/landing/ai-game-book-cover-v1.webp') center / cover no-repeat;
  --cover-ink: #dfe7f0;
  --cover-frame: rgba(255, 255, 255, 0.24);
}

.shelf-book--cream {
  --spine-bg: linear-gradient(100deg, #eee6d0, #f6f0df 30%, #f1ead6);
  --book-ink: #2b2a24;
  --cover-bg: url('/wiki-assets/landing/comic-drama-book-cover-v1.webp') center / cover no-repeat;
  --cover-ink: #2b2a24;
}

/* 浅层托板 */
.landing-shelf-board {
  position: relative;
  z-index: 1;
  height: 10px;
  margin: 0 -6px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9ddc4 0%, #dccdaa 55%, #cbb98f 100%);
  box-shadow:
    0 2px 5px rgba(60, 45, 25, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.landing-shelf-stage .landing-bookshelf {
  margin-bottom: -2px;
}

/* 书架详情卡 */
.shelf-detail[hidden] {
  display: none;
}

.shelf-detail {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 20px -14px rgba(70, 58, 35, 0.2);
  animation: shelfDetailIn 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.shelf-detail--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 118px;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  color: var(--mut);
}

.shelf-detail--empty svg {
  width: 22px;
  height: 22px;
  stroke: var(--mut);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.65;
}

.shelf-detail--empty p {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  margin: 0;
}

@keyframes shelfDetailIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.shelf-detail__mini {
  position: relative;
  width: 72px;
  height: 90px;
  border-radius: 3px 6px 6px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mini-bg);
  color: var(--mini-ink, #2b2a24);
  box-shadow:
    2px 3px 8px rgba(60, 50, 30, 0.22),
    inset 2px 0 3px rgba(0, 0, 0, 0.1);
}

.shelf-detail__mini::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--mini-frame, rgba(0, 0, 0, 0.14));
  border-radius: 2px;
}

.shelf-detail__mini .m-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
}

.shelf-detail__main {
  min-width: 0;
}

.shelf-detail__main h3 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--t-h3);
  color: var(--ink);
  margin: 0;
}

.shelf-detail__desc {
  font-size: var(--t-ui);
  line-height: 1.75;
  color: var(--ink-2);
  margin: 5px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.shelf-detail__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fdf9f0;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  transition: 0.25s;
  white-space: nowrap;
}

.shelf-detail__cta:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.shelf-detail__cta--soon {
  background: var(--card);
  color: var(--mut);
  border: 1px solid var(--line-2);
  cursor: default;
}

.shelf-detail__cta--soon:hover {
  transform: none;
  background: var(--card);
}

.shelf-detail__cta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero 底部：新劝学 */
.landing-hero__classic {
  margin-top: 44px;
  padding: 24px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  text-align: left;
}

.landing-hero__classic p {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  letter-spacing: 0.08em;
  color: var(--ink-2);
  line-height: 2;
  margin: 0;
}

.landing-hero__classic em {
  font-style: normal;
  color: var(--red);
  font-weight: 900;
}

.landing-hero__classic .hc-seal {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--mut);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.landing-hero__classic .hc-seal i {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #f8f3e8;
  border-radius: 5px;
  transform: rotate(-4deg);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  padding-top: 1px;
}

/* ============ 响应式 ============ */
@media (max-width: 1020px) {
  .landing-hero__grid {
    grid-template-columns: 1fr;
  }

  .landing-hero__aside {
    justify-self: start;
  }

  .landing-method__grid,
  .landing-courses__grid,
  .landing-paths__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .landing-featured__side {
    border-left: none;
    padding-left: 0;
  }

  .landing-recommendation {
    grid-template-columns: 40px minmax(0, 1fr) auto 20px;
  }

  .landing-recommendation__meta {
    display: none;
  }

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

@media (max-width: 760px) {
  /*
   * 藏经阁是首页的核心选择区。小屏滚动卡片时保留紧凑章节上下文，
   * 吸附在 64px 顶栏下方，并铺满视口宽度以遮住后方内容。
   */
  .landing-courses .landing-section-head {
    position: sticky;
    top: 64px;
    z-index: 24;
    max-width: none;
    margin-inline: calc((100vw - 100%) / -2);
    padding: 12px calc((100vw - 100%) / 2) 14px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .landing-courses .landing-section-head h2 {
    position: relative;
    z-index: 1;
    font-size: var(--t-h2);
    line-height: var(--lh-title);
  }

  .landing-courses .landing-section-head h2 br {
    display: none;
  }

  .landing-courses .landing-section-head p {
    position: relative;
    z-index: 1;
    max-width: none;
    margin-top: 6px;
    font-size: var(--t-ui);
    line-height: var(--lh-ui);
  }

  .landing-courses .landing-section-number {
    top: 8px;
    right: calc((100vw - 100%) / 2);
    font-size: 64px;
    opacity: 0.55;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 42px 0 48px;
  }

  .landing-hero__aside {
    width: min(100%, 272px);
    justify-self: center;
    padding: 30px 18px;
  }

  .landing-hero__quote-columns {
    flex-direction: row-reverse;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
  }

  .landing-hero__quote-column {
    writing-mode: vertical-rl;
    max-height: 240px;
    font-size: var(--t-lead);
    line-height: var(--lh-comp);
  }

  .landing-hero__quote-column--accent {
    margin-top: 44px;
    margin-left: 0;
  }

  .landing-section {
    padding: 68px 0 12px;
  }

  .landing-story {
    margin-top: 68px;
    padding: 56px 0;
  }

  .landing-method__grid,
  .landing-courses__grid,
  .landing-paths__grid {
    grid-template-columns: 1fr;
  }

  .landing-stats {
    gap: 22px;
  }

  .landing-stats dd {
    font-size: 24px;
  }

  .landing-recommendation {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
  }

  .landing-recommendation__level {
    display: none;
  }

  .landing-closing {
    margin-top: 76px;
    padding: 64px 0;
  }
}
