.page-home {
  background:
    radial-gradient(110% 78% at 88% -6%, rgba(42, 85, 200, 0.55), rgba(11, 30, 75, 0) 58%),
    linear-gradient(180deg, var(--royal-deep) 0%, #091838 48%, var(--royal-deep) 100%);
  color: var(--warm-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--warm-white);
  margin: 0 0 12px;
}

.page-home .royal-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--champagne);
}

.page-home .royal-container {
  position: relative;
}

.page-home .royal-breadcrumb {
  padding: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  padding: clamp(20px, 4vw, 40px) 0 clamp(28px, 5vw, 52px);
}

.page-home .home-hero__frame {
  position: relative;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  background: linear-gradient(158deg, rgba(22, 53, 127, 0.92) 0%, rgba(11, 30, 75, 0.97) 62%);
  padding: clamp(22px, 3.6vw, 46px);
  display: grid;
  gap: clamp(26px, 3.4vw, 44px);
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--champagne) 0 1px, transparent 1px 26px);
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero__crest {
  margin: 0 0 16px;
  width: clamp(112px, 20vw, 176px);
  border: 1px solid var(--line-soft);
  background: rgba(11, 30, 75, 0.6);
  padding: 6px;
  line-height: 0;
}

.page-home .home-hero__crest img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.page-home .home-hero__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(2.35rem, 7.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--warm-white);
}

.page-home .home-hero__title span {
  color: var(--champagne-light);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: rgba(246, 242, 234, 0.86);
}

.page-home .home-hero__right {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-home .home-hero__panel {
  border: 2px solid var(--champagne);
  background: rgba(11, 30, 75, 0.75);
  box-shadow: 6px 6px 0 rgba(140, 106, 47, 0.45);
  padding: 20px 20px 22px;
}

.page-home .home-hero__panel-label {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--champagne);
}

.page-home .home-hero__version {
  margin: 0;
  font-family: var(--font-num);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--champagne-light);
  letter-spacing: -0.02em;
}

.page-home .home-hero__panel-meta {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-hero__cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.page-home .home-hero__index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .home-hero__index li {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hero__index a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  color: var(--warm-white);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-home .home-hero__index a:hover,
.page-home .home-hero__index a:focus-visible {
  color: var(--amber);
  padding-left: 6px;
}

.page-home .home-hero__idx-num {
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- 章节刻度 ---------- */

.page-home .home-ticks {
  display: flex;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-ticks::-webkit-scrollbar {
  display: none;
}

.page-home .home-ticks li {
  flex: 0 0 auto;
}

.page-home .home-ticks a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px 13px 0;
  margin-right: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.22s ease;
}

.page-home .home-ticks a span {
  font-family: var(--font-num);
  font-size: 11px;
  opacity: 0.75;
}

.page-home .home-ticks a::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.24s ease;
}

.page-home .home-ticks a.is-active {
  color: var(--champagne-light);
}

.page-home .home-ticks a.is-active::after {
  width: 30px;
}

/* ---------- 通用章节 ---------- */

.page-home .home-section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.page-home .home-section__head {
  margin-bottom: clamp(20px, 3vw, 32px);
  max-width: 62ch;
}

.page-home .home-section__head .royal-muted {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- 常用入口 ---------- */

.page-home .home-entries__banner {
  margin: 0 0 clamp(20px, 3vw, 30px);
  border: 2px solid var(--line-soft);
  background: rgba(22, 53, 127, 0.4);
  line-height: 0;
  overflow: hidden;
}

.page-home .home-entries__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 560;
  object-fit: cover;
}

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

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hard);
}

.page-home .home-entry__anchor {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--champagne-light);
  letter-spacing: -0.01em;
}

.page-home .home-entry__anchor small {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 4px;
}

.page-home .home-entry .royal-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- 版本索引 ---------- */

.page-home .home-versions__layout {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .home-versions__dial {
  margin: 0 auto;
  max-width: 260px;
  border: 2px solid var(--line-soft);
  background: rgba(22, 53, 127, 0.35);
  line-height: 0;
}

.page-home .home-versions__dial img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-home .home-versions__body .royal-muted {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 22px;
}

.page-home .home-verlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-verrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 18px;
  padding: 16px 18px;
  border: 2px solid var(--line-soft);
  background: rgba(22, 53, 127, 0.42);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.page-home .home-verrow:hover,
.page-home .home-verrow:focus-visible {
  border-color: var(--amber);
  background: rgba(22, 53, 127, 0.7);
  transform: translateY(-2px);
}

.page-home .home-verrow__num {
  font-family: var(--font-num);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--champagne-light);
  min-width: 3ch;
}

.page-home .home-verrow__desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(246, 242, 234, 0.82);
}

.page-home .home-verrow__go {
  font-size: 16px;
  color: var(--champagne);
  transition: color 0.22s ease, transform 0.22s ease;
}

.page-home .home-verrow:hover .home-verrow__go {
  color: var(--amber);
  transform: translateX(3px);
}

/* ---------- V4 栏目 ---------- */

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

.page-home .home-v4__item {
  position: relative;
  padding: 24px 20px 20px;
  border-top: 3px solid var(--champagne);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.page-home .home-v4__item:hover {
  border-top-color: var(--amber);
  transform: translateY(-3px);
}

.page-home .home-v4__no {
  display: block;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--slate);
  margin-bottom: 10px;
}

.page-home .home-v4__item .royal-card__text {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .home-v4__item .royal-card__meta {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

/* ---------- 收藏与多终端 ---------- */

.page-home .home-sync__frame {
  display: grid;
  gap: clamp(22px, 4vw, 40px);
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--gold-deep);
  box-shadow: var(--shadow-hard-ink);
}

.page-home .home-sync__frame h2 {
  color: var(--ink);
}

.page-home .home-sync__frame .royal-eyebrow {
  color: var(--gold-deep);
}

.page-home .home-sync__lead {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-sync__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-sync__list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-left: 3px solid var(--champagne);
  background: rgba(11, 30, 75, 0.05);
}

.page-home .home-sync__list strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.page-home .home-sync__list span {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-ink);
}

/* ---------- 更新脚注 ---------- */

.page-home .home-log {
  padding: clamp(30px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
}

.page-home .home-log__texture {
  margin: 0;
  border: 2px solid var(--line-soft);
  overflow: hidden;
  line-height: 0;
}

.page-home .home-log__texture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 400;
  object-fit: cover;
  opacity: 0.85;
}

.page-home .home-log__bar {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  border: 2px solid var(--line-soft);
  border-top: none;
  background: rgba(22, 53, 127, 0.36);
}

.page-home .home-log__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(246, 242, 234, 0.85);
}

.page-home .home-log__link {
  justify-self: start;
  text-decoration: none;
}

/* ---------- 响应式 ---------- */

@media (min-width: 640px) {
  .page-home .home-entries__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-log__bar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__frame {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    align-items: start;
  }

  .page-home .home-hero__right {
    border-left: 1px solid var(--line-soft);
    padding-left: clamp(22px, 3vw, 36px);
  }

  .page-home .home-versions__layout {
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .home-versions__dial {
    max-width: 100%;
  }

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

  .page-home .home-sync__frame {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

@media (min-width: 1080px) {
  .page-home .home-entries__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .home-v4__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-home .home-verrow {
    grid-template-columns: auto 1fr;
  }

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

  .page-home .home-hero__frame {
    box-shadow: 4px 4px 0 rgba(140, 106, 47, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-verrow,
  .page-home .home-v4__item,
  .page-home .home-hero__index a,
  .page-home .home-ticks a::after {
    transition: none;
  }

  .page-home .home-entry:hover,
  .page-home .home-verrow:hover,
  .page-home .home-v4__item:hover {
    transform: none;
  }
}
