/* ===== 首页：拼贴首屏 × 排障日志 ===== */

.page-home {
  display: block;
}

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

.page-home .hero {
  position: relative;
  padding: 1.75rem 0 3rem;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(53, 224, 138, .10), transparent 62%),
    radial-gradient(820px 460px at -8% 22%, rgba(46, 147, 168, .14), transparent 60%);
}

.page-home .hero__context {
  margin: 0 0 1.25rem;
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .hero__collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-home .hero__block {
  position: relative;
  padding: 1.5rem 1.35rem;
  background: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(6, 16, 31, .72);
}

.page-home .hero__block--lead {
  background: linear-gradient(158deg, #16305A 0%, var(--night) 46%, #0C1E38 100%);
  border-color: rgba(53, 224, 138, .42);
}

.page-home .hero__block-label {
  margin: 0 0 .7rem;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}

.page-home .hero__title {
  margin: .9rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.18;
  color: var(--paper);
}

.page-home .hero__lede {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.9;
  color: #C9D6E8;
}

.page-home .hero__facts {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.page-home .hero__facts li {
  font-family: var(--font-body);
  font-size: .76rem;
  line-height: 1.5;
  color: var(--mint);
  background: rgba(53, 224, 138, .07);
  border: 1px solid rgba(53, 224, 138, .38);
  border-radius: var(--radius);
  padding: .3rem .6rem;
}

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

/* 首屏图片块 */

.page-home .hero__shot {
  margin: 0;
  position: relative;
}

.page-home .hero__shot .figure__frame {
  aspect-ratio: 16 / 10;
  border: 2px solid var(--line-strong);
  box-shadow: 8px 8px 0 rgba(6, 16, 31, .8);
  transform: rotate(-.9deg);
  overflow: hidden;
}

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

.page-home .hero__shot .figure__cap {
  margin-top: .85rem;
  font-family: var(--font-body);
  font-size: .76rem;
  color: var(--mist);
}

/* 首屏检索块 */

.page-home .hero__block--search {
  background: #0A1730;
  border-color: rgba(53, 224, 138, .34);
}

.page-home .hero__search {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .85rem;
  background: var(--ink);
  border: 2px solid rgba(53, 224, 138, .45);
  border-radius: var(--radius);
}

.page-home .hero__search .term-search__icon {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--green);
}

.page-home .hero__search .term-search__input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: .25rem 0;
}

.page-home .hero__search .term-search__input::placeholder {
  color: rgba(143, 163, 191, .75);
}

.page-home .hero__search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 224, 138, .18);
}

.page-home .hero__search-hint {
  margin: .85rem 0 0;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .hero__search-hint strong {
  color: var(--green);
  font-weight: 600;
}

/* 首屏状态条 */

.page-home .hero__block--status {
  padding: 0;
  background: rgba(19, 41, 75, .62);
  border-color: var(--line-soft);
  box-shadow: none;
}

.page-home .statusline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .statusline li {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .95rem 1.15rem;
  border-left: 2px solid rgba(53, 224, 138, .45);
  border-top: 1px solid var(--line-soft);
}

.page-home .statusline li:first-child {
  border-top: 0;
}

.page-home .statusline__key {
  font-family: var(--font-label);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .statusline__val {
  font-family: var(--font-body);
  font-size: .84rem;
  line-height: 1.7;
  color: var(--paper);
}

/* ---------- 三步排查线 ---------- */

.page-home .steps__line {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}

.page-home .steps__node {
  position: relative;
  padding: 1.4rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(19, 41, 75, .95), rgba(11, 27, 51, .95));
  border: 2px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 rgba(6, 16, 31, .6);
}

.page-home .steps__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--green);
  margin-bottom: .55rem;
}

.page-home .steps__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--paper);
}

.page-home .steps__body {
  margin: .7rem 0 0;
  font-family: var(--font-body);
  font-size: .84rem;
  line-height: 1.85;
  color: #B6C6DC;
}

.page-home .steps__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: .9rem 0 0;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .steps__time {
  margin: .6rem 0 0;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}

.page-home .steps__figure {
  margin: 1.1rem 0 0;
}

.page-home .steps__figure .figure__frame {
  aspect-ratio: 8 / 5;
  border: 2px solid var(--line);
  overflow: hidden;
}

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

.page-home .steps__figure .figure__cap {
  margin-top: .6rem;
  font-family: var(--font-body);
  font-size: .72rem;
  color: var(--mist);
}

/* ---------- 错误代码速查 ---------- */

.page-home .codes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.page-home .codes__aside {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

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

.page-home .codes__figure .figure__frame {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line-strong);
  box-shadow: 8px 8px 0 rgba(6, 16, 31, .78);
  transform: rotate(-1.2deg);
  overflow: hidden;
}

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

.page-home .codes__figure .figure__cap {
  margin-top: .85rem;
  font-family: var(--font-body);
  font-size: .74rem;
  color: var(--mist);
}

.page-home .codes__note {
  margin: 0;
  padding-left: .9rem;
  border-left: 2px solid var(--red);
  font-family: var(--font-body);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .section__head--left {
  text-align: left;
  margin-bottom: 1.25rem;
}

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

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

.page-home .codes__detail {
  display: block;
}

.page-home .codes__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .8rem;
  padding: .9rem .2rem;
  cursor: pointer;
  list-style: none;
  border-left: 3px solid transparent;
  transition: border-color .18s ease, background-color .18s ease;
}

.page-home .codes__row::-webkit-details-marker {
  display: none;
}

.page-home .codes__row:hover,
.page-home .codes__row:focus-visible {
  border-left-color: var(--green);
  background: rgba(53, 224, 138, .05);
}

.page-home .codes__row::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1;
  color: var(--green);
}

.page-home .codes__detail[open] .codes__row::after {
  content: "－";
}

.page-home .codes__code {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--red);
  border-bottom: 3px solid var(--red);
  padding-bottom: .12rem;
}

.page-home .codes__cat {
  font-family: var(--font-label);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mist);
  border-radius: var(--radius);
  padding: .18rem .48rem;
}

.page-home .codes__cat--net { background: var(--cyan); color: var(--paper); }
.page-home .codes__cat--account { background: var(--green); }
.page-home .codes__cat--cache { background: var(--amber); }
.page-home .codes__cat--perm { background: var(--mint); }
.page-home .codes__cat--version { background: var(--mist); }

.page-home .codes__gloss {
  flex: 1 1 12rem;
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .codes__body {
  margin: .1rem .2rem .95rem;
  padding-left: .95rem;
  border-left: 2px solid rgba(53, 224, 138, .35);
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.85;
  color: var(--mist);
}

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

.page-home .codes__link {
  display: inline-block;
  margin-top: .55rem;
  font-family: var(--font-label);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .codes__link:hover {
  color: var(--green);
}

.page-home .codes__empty {
  margin: 1.25rem 0 0;
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--amber);
}

/* ---------- 资料与案例（纸面节奏切换） ---------- */

.page-home .archive {
  background: var(--paper);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  color: var(--ink);
}

.page-home .archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.page-home .archive__eyebrow {
  margin: 0 0 .6rem;
  font-family: var(--font-label);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #157A46;
}

.page-home .archive__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.24;
  color: var(--ink);
}

.page-home .archive__lede {
  margin: .95rem 0 0;
  max-width: 54ch;
  font-family: var(--font-body);
  font-size: .86rem;
  line-height: 1.9;
  color: #3C5470;
}

.page-home .archive__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-home .archive__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .85rem;
  padding: .75rem 0;
  border-bottom: 1px dashed rgba(6, 16, 31, .22);
}

.page-home .archive__k {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
}

.page-home .archive__v {
  flex: 1 1 14rem;
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.75;
  color: #3C5470;
}

.page-home .archive__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.6rem;
}

.page-home .archive .btn {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.page-home .archive .btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

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

.page-home .archive__figure .figure__frame {
  aspect-ratio: 16 / 9;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(6, 16, 31, .85);
  transform: rotate(1.1deg);
  overflow: hidden;
}

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

.page-home .archive__figure .figure__cap {
  margin-top: .9rem;
  font-family: var(--font-body);
  font-size: .74rem;
  color: #3C5470;
}

/* ---------- 收藏与反馈 ---------- */

.page-home .feedback__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-top: .5rem;
}

.page-home .feedback__card {
  padding: 1.6rem 1.4rem;
}

.page-home .feedback__title {
  margin: 0 0 .85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}

.page-home .feedback__body {
  margin: 0;
  font-family: var(--font-body);
  font-size: .84rem;
  line-height: 1.9;
  color: #2B3F58;
}

.page-home .feedback__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.page-home .feedback__list li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: .55rem;
  font-family: var(--font-body);
  font-size: .8rem;
  line-height: 1.75;
  color: #2B3F58;
}

.page-home .feedback__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 2px;
  background: var(--ink);
}

.page-home .feedback__card .btn {
  margin-top: 1.2rem;
}

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

@media (min-width: 700px) {

  .page-home .hero {
    padding: 2.25rem 0 3.5rem;
  }

  .page-home .hero__block {
    padding: 1.75rem 1.6rem;
  }

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

  .page-home .statusline li {
    border-top: 0;
  }

  .page-home .statusline li:nth-child(n+3) {
    border-top: 1px solid var(--line-soft);
  }

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

@media (min-width: 940px) {

  .page-home .hero__collage {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }

  .page-home .hero__block--lead {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
  }

  .page-home .hero__shot {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
  }

  .page-home .hero__block--search {
    grid-column: 7 / 13;
    grid-row: 2 / 3;
  }

  .page-home .hero__block--status {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
  }

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

  .page-home .statusline li {
    border-top: 0;
  }

  .page-home .steps__line {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
  }

  .page-home .steps__line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 12px;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--cyan) 62%, rgba(143, 163, 191, .22));
  }

  .page-home .steps__node {
    padding-top: 1.9rem;
  }

  .page-home .codes__grid {
    grid-template-columns: 5fr 8fr;
    gap: 2.75rem;
    align-items: start;
  }

  .page-home .archive__grid {
    grid-template-columns: 6fr 7fr;
    gap: 3rem;
    align-items: center;
  }
}

@media (min-width: 1180px) {

  .page-home .hero__block--lead {
    padding: 2rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-home .hero__shot .figure__frame,
  .page-home .codes__figure .figure__frame,
  .page-home .archive__figure .figure__frame {
    transform: none;
  }

  .page-home .codes__row {
    transition: none;
  }
}
