/* ============================================================
   首页 page-home
   ============================================================ */

.page-home {
  --home-band: clamp(52px, 7vw, 96px);
  --home-gap: clamp(20px, 3vw, 36px);
}

.page-home .section {
  padding-block: var(--home-band);
}

.page-home .section--tight {
  padding-block: clamp(34px, 5vw, 64px);
}

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

/* ---------- 小节标题 ---------- */
.page-home .home-head {
  margin-bottom: var(--home-gap);
}

.page-home .home-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 3.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 10px 0 12px;
}

.page-home .home-head__sub {
  margin: 0;
  max-width: 34em;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.84;
}

@media (min-width: 900px) {
  .page-home .home-head {
    padding-left: 22px;
  }
  .page-home .home-head > .eyebrow,
  .page-home .home-head > .home-head__title {
    margin-left: -22px;
  }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(28px, 4.5vw, 56px) clamp(46px, 6vw, 84px);
  overflow: hidden;
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
}

.page-home .home-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 6.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 12px 0 18px;
}

.page-home .home-hero__title em {
  font-style: normal;
  background-image: linear-gradient(transparent 64%, rgba(245, 166, 35, 0.55) 64%);
}

.page-home .home-hero__lede {
  margin: 0;
  max-width: 33em;
  font-size: clamp(15.5px, 1.5vw, 17px);
  line-height: 1.9;
  color: var(--ink);
  opacity: 0.88;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.page-home .home-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px dashed var(--line-strong);
}

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

.page-home .home-hero__fact dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 6px;
}

.page-home .home-hero__fact dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.3;
  color: var(--ink);
}

.page-home .home-hero__fact-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--mute);
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__visual::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  width: 92px;
  height: 92px;
  background-image: radial-gradient(var(--moss) 1.4px, transparent 1.5px);
  background-size: 9px 9px;
  opacity: 0.5;
  pointer-events: none;
}

.page-home .home-hero__caption {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mute);
}

/* ---------- 旧版窗口 ---------- */
.page-home .win {
  position: relative;
  z-index: 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(22, 48, 42, 0.1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .page-home .win {
    box-shadow: 16px 16px 0 rgba(22, 48, 42, 0.1);
  }
}

.page-home .win__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line-strong);
}

.page-home .win__dots {
  display: flex;
  gap: 5px;
  flex: none;
}

.page-home .win__dots i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-2);
}

.page-home .win__dots i:first-child {
  background: var(--seal);
}

.page-home .win__dots i:nth-child(2) {
  background: var(--orange);
}

.page-home .win__addr {
  flex: 1 1 auto;
  min-width: 0;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .win__body {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--night);
  overflow: hidden;
}

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

.page-home .win__body::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(11, 26, 22, 0.16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.page-home .win__cursor {
  position: absolute;
  left: 42%;
  top: 34%;
  width: 9px;
  height: 12px;
  background: var(--seal);
  box-shadow: 9px 9px 0 -3px var(--seal);
  z-index: 2;
  animation: home-pixel-jitter 4.2s steps(1, end) infinite;
}

@keyframes home-pixel-jitter {
  0%, 88%, 100% { transform: translate(0, 0); }
  90% { transform: translate(2px, 0); }
  94% { transform: translate(0, 2px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .win__cursor {
    animation: none;
  }
}

.page-home .win__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

.page-home .win__track {
  flex: 1 1 auto;
  height: 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-2);
  overflow: hidden;
}

.page-home .win__track > span {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--orange);
}

/* ---------- 入口位置 ---------- */
.page-home .home-entry__grid {
  display: grid;
  gap: clamp(24px, 3.5vw, 44px);
}

@media (min-width: 860px) {
  .page-home .home-entry__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.page-home .home-entry__figure {
  margin: 0 auto;
  max-width: 280px;
  width: 100%;
}

.page-home .home-entry__img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 8px 8px 0 rgba(22, 48, 42, 0.1);
}

.page-home .home-entry__cap {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

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

.page-home .home-entry__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .home-entry__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border: 1.5px solid var(--ink);
}

/* ---------- 标签页 ---------- */
.page-home .tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.page-home .tab {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.page-home .tab:hover {
  border-color: var(--ink);
}

.page-home .tab[aria-selected="true"] {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--night);
}

.page-home .tab:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.page-home .tabpanel[hidden] {
  display: none;
}

/* ---------- 时间线 ---------- */
.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}

.page-home .timeline__item {
  position: relative;
  padding: 0 0 24px 26px;
}

.page-home .timeline__item:last-child {
  padding-bottom: 0;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 2px;
}

.page-home .timeline__title {
  margin: 0 0 6px;
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.page-home .timeline__text {
  margin: 0;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.85;
}

.page-home .timeline__meta {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* ---------- 索引行 ---------- */
.page-home .link-list,
.page-home .state-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .link-row,
.page-home .state-row {
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .link-row:first-child,
.page-home .state-row:first-child {
  border-top: 1px dashed var(--line);
}

.page-home .link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
}

.page-home .link-row__title {
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .link-row__tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  white-space: nowrap;
}

.page-home .link-row__desc {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.8;
  color: var(--ink);
  opacity: 0.82;
}

.page-home .state-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 12px;
}

.page-home .state-row__name {
  display: block;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.page-home .state-row__name em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--mute);
}

.page-home .state-row__val {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--moss);
  color: var(--night);
  white-space: nowrap;
}

/* ---------- 检索 ---------- */
.page-home .search-grid {
  display: grid;
  gap: clamp(24px, 3.5vw, 40px);
}

@media (min-width: 900px) {
  .page-home .search-grid {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.page-home .filter-mock {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.page-home .filter-mock__row + .filter-mock__row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
}

.page-home .filter-mock__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.page-home .filter-mock__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .filter-tag {
  font-size: 12.5px;
  line-height: 1;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-0.7deg);
}

.page-home .filter-tag:nth-child(even) {
  transform: rotate(0.9deg);
}

.page-home .filter-tag--on {
  background: var(--orange);
  border-color: var(--ink);
  color: var(--night);
  transform: rotate(0deg);
}

.page-home .filter-rail {
  display: block;
  height: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-2);
  overflow: hidden;
}

.page-home .filter-rail__fill {
  display: block;
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--orange), var(--seal));
}

.page-home .filter-mock__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
}

.page-home .search-grid__note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mute);
}

.page-home .search-grid__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-home .search-grid__figure {
  margin: 0;
}

.page-home .search-grid__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 rgba(22, 48, 42, 0.08);
}

/* ---------- 前 7 天 ---------- */
.page-home .week7 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .week7__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px 0;
  border-top: 1px dashed var(--line-strong);
}

.page-home .week7__item:last-child {
  border-bottom: 1px dashed var(--line-strong);
}

.page-home .week7__num {
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

.page-home .week7__title {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .week7__text {
  margin: 0;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.85;
}

.page-home .week7__foot {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

/* ---------- 苹果收藏三种方式 ---------- */
.page-home .ways {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

@media (min-width: 780px) {
  .page-home .ways {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .page-home .ways__item:nth-child(2) {
    margin-top: 24px;
  }
  .page-home .ways__item:nth-child(3) {
    margin-top: 48px;
  }
}

.page-home .ways__item {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.page-home .ways__num {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}

.page-home .ways__title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .ways__text {
  margin: 0;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.85;
}

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

@media (min-width: 780px) {
  .page-home .ways__foot {
    margin-top: 76px;
  }
}

/* ---------- 快问快答 ---------- */
.page-home .folds {
  border-top: 1px dashed var(--line-strong);
}

.page-home .fold__head {
  width: 100%;
  padding: 18px 0;
  text-align: left;
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
}

.page-home .faq__more {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mute);
}

/* ---------- 安徽地区横幅 ---------- */
.page-home .home-region {
  position: relative;
  overflow: hidden;
}

.page-home .home-region::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--orange) 0 12px, var(--moss) 12px 24px, var(--blue) 24px 36px, var(--seal) 36px 48px);
  opacity: 0.8;
}

.page-home .home-region__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

@media (min-width: 900px) {
  .page-home .home-region__grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.page-home .home-region .eyebrow {
  color: var(--orange);
}

.page-home .home-region__title {
  margin: 10px 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-region__text-p {
  margin: 0 0 24px;
  max-width: 32em;
  line-height: 1.9;
  color: var(--on-dark);
}

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

.page-home .home-region__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  filter: saturate(0.85) contrast(1.05);
}
