.page-home {
  --home-gutter: 20px;
  --home-shot-pad: 8px;
  overflow-x: clip;
}

/* ---------- 通用区块 ---------- */
.page-home .blk {
  position: relative;
  padding: 60px 0;
}

.page-home .blk + .blk {
  border-top: 1px solid var(--line);
}

.page-home .lib__lead,
.page-home .faq__lead {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .shot {
  position: relative;
  margin: 0;
  padding: var(--home-shot-pad);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .shot img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1px;
}

.page-home .shot figcaption {
  margin-top: 10px;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--dim);
}

.page-home .shot--cut::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 2px;
  background: var(--amber);
  transform: rotate(-45deg);
  transform-origin: right center;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: 28px 0 56px;
  background:
    radial-gradient(1000px 480px at 80% -14%, rgba(138, 91, 255, .22), transparent 64%),
    radial-gradient(720px 400px at 4% 6%, rgba(53, 242, 224, .13), transparent 68%);
}

.page-home .hero__inner {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "visual"
    "steps";
}

.page-home .hero__copy {
  grid-area: copy;
  min-width: 0;
}

.page-home .hero__visual {
  grid-area: visual;
  position: relative;
  min-width: 0;
  padding-bottom: 18px;
}

.page-home .steps {
  grid-area: steps;
}

.page-home .hero__crumb {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--dim);
}

.page-home .hero__crumb span {
  margin-right: 7px;
  color: var(--cyan);
}

.page-home .hero__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 7.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--text);
}

.page-home .hero__title-mark {
  position: relative;
  color: var(--cyan);
}

.page-home .hero__title-mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 4px;
  bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 70%, transparent);
}

.page-home .hero__lead {
  max-width: 50ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .hero__cta {
  position: relative;
  overflow: hidden;
}

.page-home .hero__cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: left .5s var(--ease), opacity .3s var(--ease);
}

.page-home .hero__cta:hover::after,
.page-home .hero__cta:focus-visible::after {
  left: 115%;
  opacity: 1;
}

.page-home .hero__frame {
  position: relative;
  margin: 0;
  padding: 10px;
  background: linear-gradient(170deg, rgba(19, 28, 77, .95), rgba(5, 10, 36, .7));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .hero__frame::before,
.page-home .hero__frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--cyan);
  opacity: .72;
  pointer-events: none;
}

.page-home .hero__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .hero__frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

.page-home .hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}

.page-home .hero__tag {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 0;
  max-width: 250px;
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  background: rgba(11, 19, 56, .96);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}

.page-home .hero__tag-k {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--amber);
}

/* ---------- 四步 ---------- */
.page-home .steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .steps__item {
  position: relative;
  padding: 16px 16px 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .22s var(--ease), background .22s var(--ease);
}

.page-home .steps__item:hover {
  border-color: rgba(53, 242, 224, .55);
  background: var(--bg-3);
}

.page-home .steps__num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-home .steps__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .steps__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 双端入口 ---------- */
.page-home .dual__inner {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .dual__p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .dual__hint {
  margin: 22px 0 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  background: rgba(255, 166, 61, .08);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius);
}

.page-home .dual__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 24px;
}

.page-home .dual__textlink {
  font-size: 14px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 224, .35);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .dual__textlink:hover {
  color: var(--text);
  border-color: var(--violet);
}

/* ---------- 检索 ---------- */
.page-home .lib__body {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 30px;
}

.page-home .finder__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .finder__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.page-home .finder__tab {
  cursor: pointer;
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.page-home .finder__tab:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.page-home #fc-1:checked ~ .finder__tabs label[for="fc-1"],
.page-home #fc-2:checked ~ .finder__tabs label[for="fc-2"],
.page-home #fc-3:checked ~ .finder__tabs label[for="fc-3"],
.page-home #fc-4:checked ~ .finder__tabs label[for="fc-4"] {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .finder__panel {
  display: none;
  padding: 20px 20px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet);
  border-radius: var(--radius);
}

.page-home #fc-1:checked ~ .finder__panels .finder__panel--1,
.page-home #fc-2:checked ~ .finder__panels .finder__panel--2,
.page-home #fc-3:checked ~ .finder__panels .finder__panel--3,
.page-home #fc-4:checked ~ .finder__panels .finder__panel--4 {
  display: block;
}

.page-home .finder__k {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .finder__panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.page-home .finder__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 224, .35);
  padding-bottom: 2px;
}

.page-home .finder__link:hover {
  color: var(--text);
  border-color: var(--violet);
}

/* ---------- 攻略导出 ---------- */
.page-home .notes__inner {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
}

.page-home .notes__p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .notes__facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .notes__facts li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.page-home .notes__k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--amber);
}

.page-home .notes__facts li > span:last-child {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .notes__copy .btn {
  margin-top: 26px;
}

/* ---------- 高频问题 ---------- */
.page-home .faq__list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.page-home .faq__item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .22s var(--ease);
}

.page-home .faq__item[open] {
  border-color: rgba(53, 242, 224, .5);
}

.page-home .faq__q {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 18px 56px 18px 20px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text);
  transition: color .2s var(--ease);
}

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

.page-home .faq__q::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 19px;
  line-height: 1;
  color: var(--amber);
}

.page-home .faq__item[open] .faq__q::after {
  content: "–";
  color: var(--cyan);
}

.page-home .faq__q:hover {
  color: var(--cyan);
}

.page-home .faq__a {
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.page-home .faq__a p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

.page-home .faq__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 242, 224, .35);
}

.page-home .faq__more:hover {
  color: var(--text);
  border-color: var(--violet);
}

.page-home .faq__item[open] .faq__a {
  animation: home-fade .24s var(--ease);
}

@keyframes home-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 断点：平板 ---------- */
@media (min-width: 720px) {
  .page-home .blk {
    padding: 76px 0;
  }

  .page-home .hero {
    padding: 40px 0 72px;
  }

  .page-home .hero__inner {
    gap: 36px;
  }

  .page-home .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .dual__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
  }

  .page-home .lib__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .notes__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 46px;
    align-items: center;
  }
}

/* ---------- 断点：桌面三栏首屏 ---------- */
@media (min-width: 1080px) {
  .page-home .hero__inner {
    grid-template-columns: 208px minmax(0, 1fr) 330px;
    grid-template-areas: "steps copy visual";
    column-gap: 42px;
    align-items: start;
  }

  .page-home .hero__visual {
    padding-bottom: 0;
  }

  .page-home .steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 6px;
  }

  .page-home .steps__item {
    padding: 0 0 26px 18px;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .page-home .steps__item:hover {
    background: none;
  }

  .page-home .steps__item::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 16px;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }

  .page-home .steps__item:last-child::before {
    content: none;
  }

  .page-home .steps__item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    background: var(--bg);
    transition: background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  }

  .page-home .steps__item:hover::after {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(255, 166, 61, .16);
  }

  .page-home .steps__num {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .page-home .steps__title {
    font-size: 15px;
  }

  .page-home .steps__desc {
    font-size: 12.5px;
  }

  .page-home .hero__tag {
    left: -14px;
  }
}

/* ---------- 断点：大屏 ---------- */
@media (min-width: 1280px) {
  .page-home .hero__inner {
    grid-template-columns: 224px minmax(0, 1fr) 360px;
    column-gap: 52px;
  }

  .page-home .blk {
    padding: 96px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero__cta::after,
  .page-home .faq__item[open] .faq__a {
    animation: none;
    transition: none;
  }
}
