.page-home {
  --home-gold: #c9a54a;
  --home-cinnabar: #c3272b;
  --home-ink: #1a1a1a;
  --home-parchment: #f2ead9;
  --home-mist: #e5dfd3;
  --home-celadon: #7ba3a1;
  --home-brown: #3e2b1e;
  --home-white: #ffffff;
  --home-pale-gold: #e8d5a8;
  --home-radius-lg: 16px;
  --home-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--home-parchment);
  color: var(--home-ink);
}

/* ---- 首屏 ---- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--home-brown);
  color: var(--home-white);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  display: block;
}

.page-home .home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.78) 40%, rgba(62, 43, 30, 0.65) 100%);
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-home .home-hero .breadcrumb {
  margin-bottom: 32px;
}

.page-home .home-hero .breadcrumb-list {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.7);
}

.page-home .home-hero .breadcrumb-item a {
  color: var(--home-pale-gold);
  text-decoration: none;
}

.page-home .home-hero .breadcrumb-item a:hover {
  color: #ffffff;
}

.page-home .home-hero__content {
  max-width: 760px;
  margin-bottom: 40px;
}

.page-home .home-hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--home-gold);
  margin: 0 0 16px;
}

.page-home .home-hero__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--home-white);
}

.page-home .home-hero__lead {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--home-transition);
}

.page-home .btn-primary {
  background: var(--home-cinnabar);
  color: var(--home-white);
  border: 1px solid var(--home-cinnabar);
}

.page-home .btn-primary:hover {
  background: #a01f22;
  transform: translateY(-2px);
}

.page-home .btn-ghost {
  background: transparent;
  color: var(--home-white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.page-home .btn-ghost:hover {
  border-color: var(--home-gold);
  color: var(--home-gold);
  transform: translateY(-2px);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--home-radius-lg);
  backdrop-filter: blur(6px);
  padding: 24px;
  transition: var(--home-transition);
}

.page-home .home-hero-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(201, 165, 74, 0.5);
}

.page-home .home-hero-card--latest {
  border-top: 3px solid var(--home-cinnabar);
}

.page-home .home-hero-card__label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 10px 0 6px;
}

.page-home .home-hero-card__version {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--home-white);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.page-home .home-hero-card__code {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-gold);
  margin: 0 0 14px;
}

.page-home .home-hero-card__text {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
}

.page-home .home-hero-card__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-pale-gold);
  text-decoration: none;
  display: inline-block;
}

.page-home .home-hero-card__link:hover {
  color: var(--home-gold);
}

/* ---- 通用板式 ---- */
.page-home .page-shell {
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 44px 20px;
}

.page-home .section-title-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .section-title-row .section-caption {
  font-family: var(--font-monospace);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--home-cinnabar);
  margin: 0 0 8px;
}

.page-home .section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}

.page-home .section-title-mark {
  width: 64px;
  height: 3px;
  background: var(--home-gold);
  margin-top: 4px;
}

.page-home .section-intro-sentence {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--home-ink-soft);
  max-width: 420px;
  margin: 0;
}

.page-home .section-caption {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--home-cinnabar);
  margin: 0 0 8px;
  text-transform: uppercase;
}

/* ---- 三大板块 ---- */
.page-home .home-sections {
  background: var(--home-parchment);
}

.page-home .home-tabs__nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(26, 26, 26, 0.12);
  margin-bottom: 28px;
  overflow-x: auto;
}

.page-home .home-tabs__btn {
  border: none;
  background: transparent;
  padding: 12px 22px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--home-ink-soft);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--home-transition);
  white-space: nowrap;
}

.page-home .home-tabs__btn:hover {
  color: var(--home-cinnabar);
}

.page-home .home-tabs__btn.is-active {
  color: var(--home-cinnabar);
  border-bottom-color: var(--home-cinnabar);
}

.page-home .home-tabs__panel {
  display: none;
}

.page-home .home-tabs__panel.is-active {
  display: block;
}

.page-home .board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .board-card {
  background: var(--home-white);
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: var(--home-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  border-bottom: 3px solid transparent;
  transition: var(--home-transition);
}

.page-home .board-card.card-elevate:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-bottom-color: var(--home-gold);
}

.page-home .board-card__num {
  font-family: var(--font-monospace);
  font-size: 14px;
  color: var(--home-celadon);
  margin: 0 0 16px;
  letter-spacing: 0.05em;
}

.page-home .board-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.page-home .board-card__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--home-ink-soft);
  margin: 0 0 16px;
}

.page-home .board-card__meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--home-celadon);
  margin: 0 0 8px;
}

.page-home .board-card__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--home-cinnabar);
  text-decoration: none;
}

.page-home .board-card__link:hover {
  text-decoration: underline;
}

/* ---- 棋谱时间轴 ---- */
.page-home .home-timeline {
  background: var(--home-mist);
  border-top: 1px solid rgba(201, 165, 74, 0.35);
  border-bottom: 1px solid rgba(201, 165, 74, 0.35);
  position: relative;
}

.page-home .home-timeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%, transparent 75%, rgba(26, 26, 26, 0.03) 75%), linear-gradient(45deg, rgba(26, 26, 26, 0.03) 25%, transparent 25%, transparent 75%, rgba(26, 26, 26, 0.03) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
}

.page-home .home-timeline .page-shell {
  position: relative;
}

.page-home .home-timeline__layout {
  margin-top: 28px;
}

.page-home .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 20px;
}

.page-home .timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--home-gold), rgba(201, 165, 74, 0.2));
}

.page-home .timeline-item:last-child::before {
  display: none;
}

.page-home .timeline-item__node {
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
}

.page-home .timeline-item__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--home-gold);
  border: 3px solid var(--home-mist);
  box-shadow: 0 0 0 2px var(--home-gold);
}

.page-home .timeline-item--current .timeline-item__dot {
  background: var(--home-cinnabar);
  box-shadow: 0 0 0 2px var(--home-cinnabar);
}

.page-home .timeline-item__card {
  background: var(--home-white);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid rgba(26, 26, 26, 0.08);
  transition: var(--home-transition);
}

.page-home .timeline-item__card:hover {
  border-color: var(--home-gold);
}

.page-home .timeline-item__range {
  font-family: var(--font-monospace);
  font-size: 13px;
  color: var(--home-celadon);
  margin: 0 0 6px;
}

.page-home .timeline-item__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-home .timeline-item__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--home-ink-soft);
  margin: 0;
}

.page-home .timeline-item__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-cinnabar);
  text-decoration: none;
}

.page-home .timeline-item__link:hover {
  text-decoration: underline;
}

.page-home .timeline-figure {
  margin: 32px 0 0;
  text-align: center;
}

.page-home .timeline-figure__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--home-pale-gold);
  box-shadow: var(--shadow-card);
}

.page-home .timeline-figure__caption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--home-ink-soft);
  margin-top: 8px;
}

/* ---- 手机版查询 ---- */
.page-home .home-mobile {
  background: var(--home-brown);
  color: var(--home-white);
}

.page-home .home-mobile__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.page-home .home-mobile__media {
  text-align: center;
}

.page-home .home-mobile__img {
  max-width: 260px;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--home-pale-gold);
}

.page-home .home-mobile__content {
  padding: 0;
}

.page-home .home-mobile__content .section-caption {
  color: var(--home-gold);
}

.page-home .home-mobile .section-title {
  color: var(--home-white);
}

.page-home .home-mobile .section-title-mark {
  background: var(--home-cinnabar);
}

.page-home .home-mobile__lead {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 16px 0 24px;
}

.page-home .home-mobile__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .home-mobile__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
}

.page-home .home-mobile__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--home-gold);
  color: var(--home-brown);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.page-home .home-mobile__item-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--home-white);
}

.page-home .home-mobile__item-desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.page-home .home-mobile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-mobile__actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---- 最新更新 ---- */
.page-home .home-latest {
  background: var(--home-parchment);
}

.page-home .home-latest__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-latest-card {
  background: var(--home-white);
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: var(--shadow-card);
  transition: var(--home-transition);
  display: flex;
  flex-direction: column;
}

.page-home .home-latest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--home-pale-gold);
}

.page-home .home-latest-card--feature {
  grid-column: 1;
}

.page-home .home-latest-card__media {
  overflow: hidden;
}

.page-home .home-latest-card__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .home-latest-card__body {
  padding: 20px;
  flex: 1;
}

.page-home .home-latest-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 8px;
  line-height: 1.4;
}

.page-home .home-latest-card__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: var(--home-ink-soft);
  margin: 0 0 14px;
}

.page-home .home-latest-card__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-cinnabar);
  text-decoration: none;
  font-weight: 500;
}

.page-home .home-latest-card__link:hover {
  text-decoration: underline;
}

/* ---- 底部 CTA ---- */
.page-home .home-cta {
  background: var(--home-parchment);
  border-top: 1px solid rgba(201, 165, 74, 0.35);
}

.page-home .home-cta__inner {
  background: var(--home-brown);
  border-radius: var(--home-radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--home-white);
}

.page-home .home-cta__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--home-white);
}

.page-home .home-cta__desc {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.page-home .home-cta__link {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--home-pale-gold);
  text-decoration: none;
  margin-left: 4px;
}

.page-home .home-cta__link:hover {
  color: var(--home-gold);
}

/* ---- 标签 ---- */
.page-home .tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .tag-gold {
  background: rgba(201, 165, 74, 0.15);
  color: var(--home-gold);
  border: 1px solid rgba(201, 165, 74, 0.4);
}

.page-home .tag-teal {
  background: rgba(123, 163, 161, 0.15);
  color: var(--home-celadon);
  border: 1px solid rgba(123, 163, 161, 0.4);
}

/* ---- 桌面端 ---- */
@media (min-width: 640px) {
  .page-home .home-hero__title {
    font-size: 44px;
  }

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

  .page-home .home-hero-card--latest {
    grid-row: span 2;
  }

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

  .page-home .timeline-figure {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    padding: 48px 32px 64px;
  }

  .page-home .home-hero__title {
    font-size: 56px;
  }

  .page-home .home-hero__lead {
    font-size: 18px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .section-title-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .page-home .section-intro-sentence {
    padding-top: 8px;
  }

  .page-home .page-shell {
    padding: 64px 32px;
  }

  .page-home .board-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .home-timeline__layout {
    margin-top: 36px;
  }

  .page-home .timeline-item {
    padding-left: 48px;
    margin-bottom: 24px;
  }

  .page-home .timeline-item::before {
    left: 12px;
  }

  .page-home .timeline-item__node {
    left: 0;
    width: 26px;
    height: 26px;
  }

  .page-home .timeline-item__dot {
    width: 16px;
    height: 16px;
  }

  .page-home .timeline-item__card {
    padding: 20px 24px;
    max-width: 680px;
  }

  .page-home .timeline-figure {
    margin: 40px 0 0;
  }

  .page-home .home-mobile__layout {
    grid-template-columns: 400px 1fr;
    gap: 48px;
  }

  .page-home .home-mobile__media {
    position: sticky;
    top: 90px;
  }

  .page-home .home-latest__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .home-latest-card--feature {
    grid-column: span 1;
  }

  .page-home .home-cta__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 40px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
  }
}

.page-home {
  --font-monospace: inherit;
  --home-ink-soft: var(--ink-soft);
}
