/* ===== 首页专属样式，全部限定在 .page-home 作用域内 ===== */

.page-home {
  --season: var(--ochre);
  --season-soft: rgba(180, 71, 47, .12);
  --season-deep: var(--ochre-deep);
  display: block;
  position: relative;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .01em;
}

.page-home .home-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.page-home .season-spring {
  --season: var(--barley);
  --season-soft: rgba(127, 176, 105, .18);
  --season-deep: #4A7539;
}

.page-home .season-summer {
  --season: var(--glacier);
  --season-soft: rgba(47, 127, 158, .15);
  --season-deep: #1E5770;
}

.page-home .season-autumn {
  --season: var(--ochre);
  --season-soft: rgba(180, 71, 47, .13);
  --season-deep: #8B3520;
}

.page-home .season-winter {
  --season: var(--indigo);
  --season-soft: rgba(27, 42, 73, .13);
  --season-deep: #101C33;
}

/* ---------- 页面上下文 ---------- */
.page-home .home-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--ink-50);
}

.page-home .home-crumb-sep {
  color: var(--line-strong);
}

/* ---------- 首屏 ---------- */
.page-home .home-open {
  padding-top: 28px;
}

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

.page-home .home-open-note {
  order: 2;
}

.page-home .home-wheel {
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(
    var(--barley) 0 25%,
    var(--glacier) 25% 50%,
    var(--ochre) 50% 75%,
    var(--indigo) 75% 100%
  );
}

.page-home .home-wheel::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--paper);
}

.page-home .home-note-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ochre);
}

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

.page-home .home-note-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.page-home .home-note-list span {
  color: var(--ink-50);
  letter-spacing: .04em;
}

.page-home .home-note-list b {
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .home-open-body h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 8.4vw, 82px);
  line-height: 1.05;
  letter-spacing: -.01em;
}

.page-home .home-lede {
  margin: 0;
  max-width: var(--max-read);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-70);
}

.page-home .home-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .home-path {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .02em;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  border-color: var(--ochre);
  color: var(--ochre);
}

.page-home .home-path--primary {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--snow);
  font-weight: 700;
}

.page-home .home-path--primary:hover,
.page-home .home-path--primary:focus-visible {
  background: var(--ochre-deep);
  border-color: var(--ochre-deep);
  color: var(--snow);
}

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

.page-home .home-plate img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.page-home .home-plate-cap {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-50);
}

/* ---------- 章节节奏 ---------- */
.page-home .home-sec {
  padding-block: 56px;
}

.page-home .home-sec-head {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.page-home .home-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ochre);
}

.page-home .home-sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 5.2vw, 50px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.page-home .home-sec-head p {
  margin: 0;
  max-width: var(--max-read);
  font-size: 16px;
  color: var(--ink-70);
}

/* ---------- 两步路径 ---------- */
.page-home .home-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .home-step {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.page-home .home-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 54px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  opacity: .5;
}

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

.page-home .home-step-btn {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.page-home .home-step-btn:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.page-home .home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--ochre);
  color: var(--snow);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.page-home .home-step-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -.005em;
}

/* ---------- 展开组件 ---------- */
.page-home .disclosure-panel {
  overflow: hidden;
}

.page-home .disclosure-body {
  padding: 0 4px 24px 54px;
  max-width: var(--max-read);
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-70);
}

.page-home .disclosure-icon {
  position: relative;
  justify-self: end;
  width: 16px;
  height: 16px;
}

.page-home .disclosure-icon::before,
.page-home .disclosure-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-50);
  transition: transform .18s ease, opacity .18s ease;
}

.page-home .disclosure-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.page-home .disclosure-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.page-home [data-disclosure-toggle][aria-expanded="true"] .disclosure-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

/* ---------- 今日更新 ---------- */
.page-home .home-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.page-home .home-feed-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-feed-when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-50);
}

.page-home .home-feed-title {
  font-size: 16px;
  line-height: 1.65;
}

.page-home .home-feed-tag {
  justify-self: start;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--season-soft);
  color: var(--season-deep);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  white-space: nowrap;
}

.page-home .home-feed-tag--plain {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink-50);
}

/* ---------- 四时导览 ---------- */
.page-home .home-ruler {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0 0 8px;
  overflow-x: auto;
}

.page-home .home-ruler-node {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.page-home .home-ruler-node em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-50);
}

.page-home .home-ruler-node:hover,
.page-home .home-ruler-node:focus-visible {
  background: var(--season-soft);
  border-color: var(--season);
  color: var(--season-deep);
}

.page-home .home-season {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-block: 36px;
  border-top: 1px solid var(--line-strong);
}

.page-home .home-season-rail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .home-season-rail::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--season);
  opacity: .45;
}

.page-home .home-season-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--season-soft);
  color: var(--season-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.page-home .home-season-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--season-deep);
}

.page-home .home-season-text {
  margin: 0 0 20px;
  max-width: var(--max-read);
  font-size: 16px;
  color: var(--ink-70);
}

.page-home .home-season-items {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.page-home .home-season-items li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--season-deep);
}

.page-home .home-item-note {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-70);
}

.page-home .home-season-fig {
  margin: 0;
}

.page-home .home-season-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.page-home .home-season--spring .home-season-fig {
  max-width: 520px;
  margin-left: auto;
}

.page-home .home-season--summer .home-season-fig {
  max-width: 520px;
  margin-right: auto;
}

.page-home .home-season-cap {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-50);
}

/* ---------- 常驻入口 ---------- */
.page-home .home-dock-panel {
  padding: 32px 20px;
  border-radius: var(--radius-l);
  background: var(--indigo);
  color: var(--snow);
}

.page-home .home-dock-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--snow);
}

.page-home .home-dock-head p {
  margin: 0;
  max-width: var(--max-read);
  font-size: 16px;
  color: rgba(255, 255, 255, .78);
}

.page-home .home-dock-grid {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.page-home .home-dock-card {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.page-home .home-dock-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--snow);
}

.page-home .home-dock-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .78);
}

.page-home .home-dock-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(228, 179, 99, .45);
  color: var(--gold);
  text-decoration: none;
  font-size: 15px;
  transition: color .18s ease, border-color .18s ease;
}

.page-home .home-dock-link:hover,
.page-home .home-dock-link:focus-visible {
  color: var(--snow);
  border-bottom-color: var(--snow);
}

.page-home .home-dock-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.page-home .home-copy-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--snow);
  color: var(--indigo);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.page-home .home-copy-btn:hover {
  background: var(--gold);
}

.page-home .home-copy-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page-home .home-dock-hint {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .74);
}

/* ---------- 快答 ---------- */
.page-home .home-quick-list {
  border-top: 1px solid var(--line-strong);
}

.page-home .home-quick-item {
  border-bottom: 1px solid var(--line);
}

.page-home .home-quick-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.page-home .home-quick-btn > span:first-child {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.page-home .home-quick-btn:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

.page-home .home-quick-item .disclosure-body {
  padding: 0 4px 26px;
}

.page-home .home-quick-more {
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--ink-70);
}

.page-home .home-quick-more a {
  color: var(--ochre);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 窄屏适配 ---------- */
@media (max-width: 420px) {
  .page-home .home-open-body h1 {
    font-size: 34px;
  }

  .page-home .home-path {
    padding: 0 18px;
    font-size: 14px;
  }

  .page-home .home-dock-panel {
    padding: 26px 16px;
  }

  .page-home .home-step-btn {
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    gap: 12px;
  }

  .page-home .home-step-num {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .page-home .home-step::before {
    left: 19px;
  }

  .page-home .disclosure-body {
    padding-left: 42px;
  }
}

@media (min-width: 620px) {
  .page-home .home-season-items li {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }

  .page-home .home-feed-row {
    grid-template-columns: 92px minmax(0, 1fr) 124px;
    align-items: baseline;
    gap: 24px;
  }

  .page-home .home-feed-title {
    font-size: 17px;
  }
}

@media (min-width: 900px) {
  .page-home .home-wrap {
    padding-inline: 32px;
  }

  .page-home .home-open {
    padding-top: 40px;
  }

  .page-home .home-open-grid {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }

  .page-home .home-open-note {
    order: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

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

  .page-home .home-plate {
    margin-top: 64px;
  }

  .page-home .home-plate img {
    border-radius: var(--radius-l);
  }

  .page-home .home-sec {
    padding-block: 96px;
  }

  .page-home .home-sec-head {
    margin-bottom: 48px;
    max-width: 780px;
  }

  .page-home .home-step-btn {
    gap: 24px;
    padding: 24px 4px;
  }

  .page-home .home-step-name {
    font-size: 22px;
  }

  .page-home .disclosure-body {
    padding-left: 62px;
  }

  .page-home .home-season {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 40px;
    padding-block: 56px;
  }

  .page-home .home-season-rail {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-home .home-season-rail::after {
    display: none;
  }

  .page-home .home-dock-panel {
    padding: 56px 48px;
  }

  .page-home .home-dock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
  }

  .page-home .home-dock-copy {
    margin-top: 44px;
    padding-top: 32px;
  }
}

@media (min-width: 1100px) {
  .page-home .home-open-grid {
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-path,
  .page-home .home-copy-btn,
  .page-home .home-ruler-node,
  .page-home .home-dock-link,
  .page-home .disclosure-icon::before,
  .page-home .disclosure-icon::after {
    transition: none;
  }
}
