/* ===== 首页：杂志目录式总入口 ===== */
.page-home {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.page-home a {
  text-decoration: none;
}

.page-home [data-reveal] {
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}

.page-home [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- 三栏不对称骨架 ---- */
.page-home .home-rails {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.page-home .home-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
}

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

@media (min-width: 1180px) {
  .page-home .home-rails {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 200px;
    column-gap: clamp(1.5rem, 2.6vw, 3rem);
    align-items: start;
  }

  .page-home .home-flow {
    grid-column: 2;
  }

  .page-home .home-rail {
    display: block;
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }

  .page-home .home-rail--left {
    grid-column: 1;
  }

  .page-home .home-rail--right {
    grid-column: 3;
  }
}

/* ---- 左右轨道 ---- */
.page-home .home-rail__title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: var(--hair);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.page-home .home-rail__link {
  display: block;
  padding: 0.42rem 0.6rem;
  border-left: 2px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--graphite);
  transition: color 0.26s var(--ease), border-color 0.26s var(--ease), background-color 0.26s var(--ease);
}

.page-home .home-rail__link:hover {
  border-left-color: var(--celadon);
  color: var(--ink-deep);
  background: rgba(127, 179, 163, 0.12);
}

.page-home .home-rail__link.is-active {
  border-left-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

/* ---- 首屏刊头 ---- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.34);
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(39, 83, 107, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 83, 107, 0.3) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.15rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--paper);
}

.page-home .home-hero__inner {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

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

.page-home .home-hero__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--celadon);
}

.page-home .home-hero__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-stretch: condensed;
  font-size: clamp(2.4rem, 7.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.page-home .home-hero__lede {
  max-width: 34rem;
  margin: clamp(1rem, 2.2vw, 1.5rem) auto 0;
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  line-height: 1.9;
  color: rgba(244, 241, 234, 0.78);
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--hair);
  filter: saturate(0.86);
}

/* 编号索引条 */
.page-home .home-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(39, 83, 107, 0.6);
  background: rgba(39, 83, 107, 0.6);
}

.page-home .home-index__link {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  height: 100%;
  padding: 0.95rem 1rem 1.1rem;
  background: var(--ink-2);
  color: var(--paper);
  transition: transform 0.26s var(--ease), background-color 0.26s var(--ease);
}

.page-home .home-index__link:hover {
  transform: translateY(-2px);
  background: #16394a;
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .home-index__label {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .home-index__note {
  font-size: 0.79rem;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.6);
}

@media (min-width: 760px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: center;
  }

  .page-home .home-hero__mast {
    grid-column: 1;
  }

  .page-home .home-hero__visual {
    grid-column: 2;
  }

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

@media (min-width: 480px) and (max-width: 759px) {
  .page-home .home-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- 章节容器 ---- */
.page-home .home-sec {
  position: relative;
  padding: clamp(1.5rem, 3.6vw, 2.9rem);
  border: var(--hair-ink);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(11, 28, 44, 0.05), 0 16px 30px -28px rgba(11, 28, 44, 0.55);
}

.page-home .home-sec--muted {
  background: var(--paper-2);
}

.page-home .home-sec--night {
  border-color: rgba(39, 83, 107, 0.62);
  background: var(--ink-2);
  color: var(--paper);
}

.page-home .home-sec__head {
  max-width: 46rem;
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}

.page-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

.page-home .section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.9vw, 2.1rem);
  line-height: 1.28;
  color: var(--ink-deep);
}

.page-home .section-lede {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
}

.page-home .home-sec--night .section-title {
  color: var(--paper);
}

.page-home .home-sec--night .section-lede {
  color: rgba(244, 241, 234, 0.66);
}

.page-home .home-sec__cta {
  margin: clamp(1.25rem, 2.6vw, 1.8rem) 0 0;
}

/* ---- 图框基础 ---- */
.page-home .figure-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-lines__figure img {
  aspect-ratio: 3 / 2;
}

.page-home .home-record__figure img {
  aspect-ratio: 16 / 9;
}

.page-home .home-service__figure img {
  aspect-ratio: 10 / 7;
}

/* ---- 01 产品线 ---- */
.page-home .home-lines__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.page-home .home-lines__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: var(--hair-ink);
  background: rgba(11, 28, 44, 0.1);
}

.page-home .home-line {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.1rem 0.9rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid transparent;
  background: var(--paper);
  transition: border-color 0.26s var(--ease), background-color 0.26s var(--ease);
}

.page-home .home-line:hover {
  border-left-color: var(--gold);
  background: #fbf9f4;
}

.page-home .home-line__num {
  grid-row: 1 / span 2;
  padding-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .home-line__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-deep);
}

.page-home .home-line__desc {
  margin: 0.12rem 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-tagcount {
  list-style: none;
  margin: clamp(1.25rem, 2.5vw, 1.7rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .home-tagcount__n {
  margin-right: 0.4rem;
  font-size: 1.05rem;
  color: var(--gold);
}

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

/* ---- 02 使用记录时间线 ---- */
.page-home .home-timeline {
  list-style: none;
  margin: 0 0 clamp(1.25rem, 2.6vw, 1.8rem);
  padding: 0;
}

.page-home .home-timeline__item {
  position: relative;
  margin-left: 0.7rem;
  padding: 0 0 1.3rem 2.3rem;
  border-left: 1px solid rgba(39, 83, 107, 0.4);
}

.page-home .home-timeline__item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.page-home .home-timeline__item::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: -4.5px;
  width: 8px;
  height: 8px;
  background: var(--ink-deep);
  border: 1px solid var(--gold);
}

.page-home .home-timeline__num {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-timeline__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-deep);
}

.page-home .home-timeline__desc {
  margin: 0.2rem 0 0;
  font-size: 0.87rem;
  line-height: 1.78;
  color: var(--muted);
}

@media (min-width: 720px) {
  .page-home .home-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1.25rem;
  }

  .page-home .home-timeline__item {
    margin-left: 0;
    padding: 1.4rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(39, 83, 107, 0.4);
  }

  .page-home .home-timeline__item::before {
    top: -4.5px;
    left: 0;
  }

  .page-home .home-timeline__item:last-child {
    border-top-color: rgba(39, 83, 107, 0.4);
  }
}

/* ---- 03 服务专区 ---- */
.page-home .home-service__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.9rem);
}

.page-home .home-service__figure {
  border: var(--hair);
}

.page-home .home-windows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border: 1px solid rgba(39, 83, 107, 0.62);
  background: rgba(39, 83, 107, 0.62);
}

.page-home .home-window {
  padding: 0.9rem 1rem 1.05rem;
  background: var(--ink-deep);
}

.page-home .home-window__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.18em;
  color: var(--celadon);
}

.page-home .home-window__name {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-head);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .home-window__desc {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.6);
}

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

@media (min-width: 860px) {
  .page-home .home-service__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

/* ---- 04 两版对照 ---- */
.page-home .home-compare__scroll {
  overflow-x: auto;
  border: var(--hair-ink);
  background: var(--paper);
}

.page-home .home-compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.87rem;
  line-height: 1.75;
}

.page-home .home-compare__caption {
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--paper-2);
}

.page-home .home-compare th {
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.page-home .home-compare thead th {
  background: var(--wine);
}

.page-home .home-compare thead th:nth-child(3) {
  background: var(--indigo);
}

.page-home .home-compare tbody th {
  color: var(--ink-deep);
  background: rgba(228, 222, 210, 0.55);
  border-top: var(--hair-ink);
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
}

.page-home .home-compare td {
  padding: 0.7rem 0.9rem;
  border-top: var(--hair-ink);
  color: var(--graphite);
  background: var(--paper);
}

/* ---- 备案与服务信息条 ---- */
.page-home .home-footnote {
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.15rem, 3.4vw, 2.6rem);
  border: 1px solid rgba(39, 83, 107, 0.62);
  border-top: 3px solid var(--gold);
  background: var(--ink-deep);
  color: var(--paper);
}

.page-home .home-footnote__band {
  display: grid;
  gap: 0.6rem;
  padding-bottom: clamp(1rem, 2vw, 1.4rem);
  border-bottom: 1px dashed rgba(127, 179, 163, 0.4);
}

.page-home .home-footnote__legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--celadon);
}

.page-home .home-footnote__hours {
  margin: 0;
  max-width: 44rem;
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(244, 241, 234, 0.66);
}

.page-home .home-footnote__list {
  list-style: none;
  margin: clamp(1rem, 2vw, 1.4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem 2rem;
}

.page-home .home-footnote__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
}

.page-home .home-footnote__key {
  min-width: 4.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-footnote__val {
  font-size: 0.88rem;
  color: rgba(244, 241, 234, 0.86);
  word-break: break-word;
}

.page-home .home-footnote__links {
  margin: clamp(1.1rem, 2.2vw, 1.5rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(244, 241, 234, 0.4);
}

.page-home .home-footnote__links a {
  color: var(--celadon);
  border-bottom: 1px solid transparent;
  transition: border-color 0.26s var(--ease), color 0.26s var(--ease);
}

.page-home .home-footnote__links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (min-width: 760px) {
  .page-home .home-footnote__band {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.6rem 1.6rem;
  }

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

  .page-home .home-footnote__item {
    flex-direction: column;
    gap: 0.15rem;
  }
}
</main>
