/* =========================================================
   page-home — 四季品牌站首页
   ========================================================= */

.page-home {
  --home-flow: clamp(1.25rem, 3.5vw, 2.5rem);
  --home-measure: 40em;
}

/* 季节变量：随所在区块切换 */
.page-home [data-season="spring"] {
  --season: var(--spring);
  --season-accent: var(--spring-accent);
}
.page-home [data-season="summer"] {
  --season: var(--summer);
  --season-accent: var(--summer-accent);
}
.page-home [data-season="autumn"] {
  --season: var(--autumn);
  --season-accent: var(--autumn-accent);
}
.page-home [data-season="winter"] {
  --season: var(--winter);
  --season-accent: var(--summer-accent);
}

/* ---------- 面包屑 ---------- */
.page-home .home-crumb {
  padding-block: 1.25rem 0;
}

/* =========================================================
   首屏
   ========================================================= */
.page-home .home-hero {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  background-image: linear-gradient(180deg, rgba(111, 175, 143, 0.11), rgba(111, 175, 143, 0) 46%);
  background-repeat: no-repeat;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-flow);
}

.page-home .home-hero__main h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.16;
  letter-spacing: -0.012em;
  color: var(--winter);
  margin: 0.6rem 0 1.1rem;
  max-width: 21ch;
}

.page-home .home-hero__main .sk-lede {
  max-width: var(--home-measure);
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* 右侧切换提示卡 */
.page-home .home-switch {
  padding: 1.5rem 1.5rem 1.75rem;
  border-top: 4px solid var(--season);
}

.page-home .home-switch__title {
  font-family: var(--font-serif);
  font-size: 1.4375rem;
  line-height: 1.3;
  color: var(--winter);
  margin: 0.35rem 0 0.55rem;
}

.page-home .home-switch__body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.page-home .home-switch__steps {
  list-style: none;
  counter-reset: hsw;
  margin: 1.15rem 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.page-home .home-switch__steps li {
  counter-increment: hsw;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--ink);
}

.page-home .home-switch__steps li::before {
  content: counter(hsw, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--season);
}

/* 四季分段切换 */
.page-home .home-hero__tabs {
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
}

.page-home .home-seasons__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: var(--line);
}

.page-home .home-seasons__list .sk-tabs__button {
  flex: 1 1 4.5rem;
  min-width: 4.5rem;
  padding: 0.6rem 0.9rem;
  border: var(--line);
  border-bottom-width: 3px;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-seasons__list .sk-tabs__button:nth-child(1) { border-bottom-color: var(--spring); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(2) { border-bottom-color: var(--summer); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(3) { border-bottom-color: var(--autumn); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(4) { border-bottom-color: var(--winter); }

.page-home .home-seasons__list .sk-tabs__button:hover {
  background: var(--frost);
}

.page-home .home-seasons__list .sk-tabs__button[aria-selected="true"] {
  color: var(--paper);
  border-color: transparent;
}
.page-home .home-seasons__list .sk-tabs__button:nth-child(1)[aria-selected="true"] { background: var(--spring); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(2)[aria-selected="true"] { background: var(--summer); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(3)[aria-selected="true"] { background: var(--autumn); }
.page-home .home-seasons__list .sk-tabs__button:nth-child(4)[aria-selected="true"] { background: var(--winter); }

.page-home .home-seasons__panel {
  margin-top: 1.25rem;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 3px solid var(--season);
  color: var(--body);
  font-size: 1rem;
  line-height: 1.8;
  max-width: var(--home-measure);
}

.page-home .home-seasons__panel p {
  margin: 0;
}

.page-home .home-seasons__panel--spring { border-left-color: var(--spring); }
.page-home .home-seasons__panel--summer { border-left-color: var(--summer); }
.page-home .home-seasons__panel--autumn { border-left-color: var(--autumn); }
.page-home .home-seasons__panel--winter { border-left-color: var(--winter); }

/* 首屏照片 */
.page-home .home-hero__figure {
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.page-home .home-hero__figure .sk-figure__frame {
  border: var(--line);
  background: var(--paper);
  padding: 0.75rem;
}

.page-home .home-hero__figure .sk-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-hero__figure .sk-figure__caption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* =========================================================
   四季索引 + 目录地图
   ========================================================= */
.page-home .home-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-flow);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .home-map__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--line);
}

.page-home .home-map__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.3rem 0.5rem 1.3rem 0.15rem;
  border-bottom: var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-map__row:hover,
.page-home .home-map__row:focus-within {
  background: rgba(47, 127, 166, 0.07);
  border-bottom-color: var(--summer);
}

.page-home .home-map__num {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--summer);
  padding-top: 0.3rem;
}

.page-home .home-map__tag {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .home-map__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--winter);
}

.page-home .home-map__text {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--body);
}

.page-home .home-map__link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--summer);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.page-home .home-map__link:hover {
  color: var(--winter);
}

.page-home .home-map__side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .home-map__aside p,
.page-home .home-map__note p {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--body);
}

.page-home .home-map__aside .sk-card__label {
  margin: 0;
}

/* =========================================================
   会员中心三步切换
   ========================================================= */
.page-home .home-switch-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-flow);
}

.page-home .home-switch-sec__path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.page-home .home-switch-sec__path .sk-path__step {
  position: relative;
  padding: 1.25rem 1.25rem 1.35rem 4rem;
  background: var(--paper);
  border: var(--line);
  border-left: 4px solid var(--season);
}

.page-home .home-switch-sec__path .sk-path__num {
  position: absolute;
  left: 1.15rem;
  top: 1.35rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--season);
}

.page-home .home-switch-sec__path .sk-path__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--winter);
}

.page-home .home-switch-sec__path .sk-path__step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
}

.page-home .home-switch-sec__more {
  margin-top: 1.5rem;
  border: var(--line);
  background: var(--paper);
}

.page-home .home-switch-sec__more .sk-disclosure__summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
  color: var(--winter);
  font-weight: 600;
}

.page-home .home-switch-sec__more .sk-disclosure__body {
  padding: 0 1.1rem 1.1rem;
}

.page-home .home-switch-sec__more ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body);
}

.page-home .home-switch-sec__side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.page-home .home-switch-sec__rail {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid var(--rule);
  display: grid;
  gap: 0.9rem;
}

.page-home .home-switch-sec__rail .sk-rail__item {
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
}

.page-home .home-switch-sec__rail .sk-rail__item[data-active="true"] {
  color: var(--winter);
  font-weight: 600;
}

.page-home .home-switch-sec__rail .sk-rail__dot {
  position: absolute;
  left: -1.44rem;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule);
}

.page-home .home-switch-sec__rail .sk-rail__item[data-active="true"] .sk-rail__dot {
  background: var(--autumn);
}

.page-home .home-switch-sec__stats {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 1rem;
}

.page-home .home-switch-sec__stats b {
  display: block;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--autumn);
}

.page-home .home-switch-sec__stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.page-home .home-switch-sec__figure {
  margin: 0;
}

.page-home .home-switch-sec__figure .sk-figure__frame {
  border: var(--line);
  background: var(--paper);
  padding: 0.6rem;
}

.page-home .home-switch-sec__figure .sk-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-home .home-switch-sec__figure .sk-figure__caption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* =========================================================
   一年四个版本节点
   ========================================================= */
.page-home .home-rhythm__line {
  list-style: none;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .home-rhythm__line .sk-timeline__item {
  position: relative;
  padding: 1.5rem 0 1.5rem 2.25rem;
  border-left: 2px solid var(--rule);
}

.page-home .home-rhythm__line .sk-timeline__item:last-child {
  border-left-color: transparent;
}

.page-home .home-rhythm__line .sk-timeline__node {
  position: absolute;
  left: -8px;
  top: 1.85rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--season);
  border: 3px solid var(--frost);
}

.page-home .home-rhythm__line .sk-timeline__year {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  color: var(--season);
}

.page-home .home-rhythm__line h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.4;
  color: var(--winter);
}

.page-home .home-rhythm__line p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
  max-width: var(--home-measure);
}

/* =========================================================
   旧版设备版本说明
   ========================================================= */
.page-home .home-legacy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-flow);
}

.page-home .home-legacy__figure {
  margin: 0;
}

.page-home .home-legacy__figure .sk-figure__frame {
  border: var(--line);
  background: var(--paper);
  padding: 0.7rem;
}

.page-home .home-legacy__figure .sk-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .home-legacy__body p {
  color: var(--body);
  line-height: 1.8;
  max-width: var(--home-measure);
}

.page-home .home-legacy__body .sk-section__title {
  margin: 0.5rem 0 0.9rem;
}

.page-home .home-legacy__list {
  list-style: none;
  margin: 1.35rem 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .home-legacy__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--body);
}

.page-home .home-legacy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--autumn);
}

/* =========================================================
   服务内容
   ========================================================= */
.page-home .home-services__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.page-home .home-services__grid .sk-card {
  background: var(--paper);
  border: var(--line);
  border-top: 3px solid var(--season);
  padding: 1.35rem 1.35rem 1.45rem;
}

.page-home .home-services__grid .sk-card__title {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.42;
  color: var(--winter);
}

.page-home .home-services__grid .sk-card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--body);
}

.page-home .home-services__figure {
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
}

.page-home .home-services__figure .sk-figure__frame {
  border: var(--line);
  background: var(--paper);
  padding: 0.65rem;
}

.page-home .home-services__figure .sk-figure__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-home .home-services__figure .sk-figure__caption {
  margin-top: 0.7rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* =========================================================
   收尾
   ========================================================= */
.page-home .home-close {
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.page-home .home-close__inner {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--frost);
  border: var(--line);
  border-left: 5px solid var(--summer);
}

.page-home .home-close__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.35;
  color: var(--winter);
}

.page-home .home-close__text {
  margin: 0 0 1.5rem;
  max-width: var(--home-measure);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body);
}

.page-home .home-close__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =========================================================
   响应式
   ========================================================= */
@media (min-width: 48rem) {
  .page-home .home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .page-home .home-rhythm__line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .page-home .home-rhythm__line .sk-timeline__item:nth-child(2) {
    border-left-color: transparent;
  }
}

@media (min-width: 60rem) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }

  .page-home .home-hero__side {
    position: sticky;
    top: 5.5rem;
  }

  .page-home .home-map {
    grid-template-columns: minmax(0, 1.6fr) minmax(15rem, 0.75fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .page-home .home-switch-sec__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .page-home .home-switch-sec__side {
    position: sticky;
    top: 5.5rem;
  }

  .page-home .home-legacy__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

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

  .page-home .home-rhythm__line .sk-timeline__item {
    border-left-color: transparent;
    border-top: 2px solid var(--rule);
    padding: 1.5rem 1rem 0 0;
  }

  .page-home .home-rhythm__line .sk-timeline__node {
    left: 0;
    top: -9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-map__row,
  .page-home .home-seasons__list .sk-tabs__button {
    transition: none;
  }
}
