.page-home {
  --home-slash: 8deg;
  --home-shadow: 10px 10px 0 rgba(0, 229, 255, 0.16);
  background: var(--ink);
  color: var(--white);
  overflow-x: clip;
  font-family: var(--font-body);
}

.page-home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-home .home-h2 {
  margin: 14px 0 20px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.012em;
}

.page-home .home-section__lead {
  max-width: 58ch;
  margin: 0;
  color: var(--mute);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
}

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

.page-home.fy-js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

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

/* 首屏：画册封面 */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(118px, 18vw, 210px) 0 clamp(52px, 8vw, 96px);
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 10% 100%);
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.52;
}

.home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 26, 47, 0.94) 42%, rgba(10, 26, 47, 0.28) 74%, rgba(10, 26, 47, 0.72) 100%),
    linear-gradient(0deg, var(--ink) 2%, transparent 48%);
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 30%;
  left: -12%;
  width: 128%;
  height: 2px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, var(--cyan) 28%, var(--orange) 62%, transparent);
  transform: rotate(calc(var(--home-slash) * -1));
  opacity: 0.55;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12%;
  width: 42vw;
  height: 9px;
  z-index: -1;
  background: repeating-linear-gradient(90deg, var(--orange) 0 26px, transparent 26px 46px);
  transform: rotate(calc(var(--home-slash) * -1));
  opacity: 0.7;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: end;
}

.home-hero__title {
  margin: 10px 0 24px;
  font-size: clamp(52px, 13.5vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.home-hero__title span {
  color: var(--cyan);
  text-shadow: 0 0 34px rgba(0, 229, 255, 0.32);
}

.home-hero__lead {
  max-width: 46ch;
  color: var(--white);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
}

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

.home-update {
  max-width: 440px;
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  cursor: default;
}

.home-update__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-update__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 255, 60, 0.16);
}

.home-update__note {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.65;
  transition: max-height 0.28s var(--ease), opacity 0.28s var(--ease), margin 0.28s var(--ease);
}

.home-update:hover .home-update__note,
.home-update:focus-within .home-update__note {
  max-height: 90px;
  margin-top: 10px;
  opacity: 1;
}

.home-hero__index {
  align-self: end;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(16, 42, 69, 0.46);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.home-hero__index:hover {
  transform: translate(-2px, -2px);
  border-color: rgba(0, 229, 255, 0.55);
}

.home-hero__index-label {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.home-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-index__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}

.home-index__link .fy-mono {
  color: var(--cyan);
  font-size: 12px;
}

.home-index__link:hover,
.home-index__link:focus-visible {
  color: var(--ink);
  background: var(--cyan);
  transform: translateX(4px);
  outline: none;
}

.home-index__link:hover .fy-mono,
.home-index__link:focus-visible .fy-mono {
  color: var(--ink);
}

/* 时间轴 */
.home-timeline {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}

.home-timeline__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 5vw, 48px);
  align-items: end;
}

.home-timeline__visual {
  position: relative;
  margin: 0;
}

.home-timeline__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.05);
}

.home-timeline__track {
  display: flex;
  gap: 16px;
  margin-top: clamp(30px, 5vw, 46px);
  padding: 12px var(--gutter) 38px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--cyan) var(--steel);
  scrollbar-width: thin;
}

.home-timeline__track:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.home-timeline__track::-webkit-scrollbar {
  height: 6px;
}

.home-timeline__track::-webkit-scrollbar-track {
  background: var(--steel);
}

.home-timeline__track::-webkit-scrollbar-thumb {
  background: var(--cyan);
}

.home-slot {
  position: relative;
  flex: 0 0 auto;
  width: min(82vw, 420px);
  padding: clamp(22px, 3.6vw, 32px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--steel);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.home-slot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 4px;
  background: var(--orange);
}

.home-slot--week::before {
  background: var(--cyan);
}

.home-slot--last::before {
  background: var(--lime);
}

.home-slot:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--home-shadow);
}

.home-slot__idx {
  margin: 0 0 18px;
  color: var(--mute);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.home-slot__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.home-slot__text {
  margin: 0 0 22px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.75;
}

.home-slot__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), gap 0.18s var(--ease);
}

.home-slot__link:hover,
.home-slot__link:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
  gap: 16px;
  outline: none;
}

/* 双通道 */
.home-channels {
  background:
    linear-gradient(calc(var(--home-slash) * -1), transparent 49.8%, rgba(46, 74, 102, 0.55) 49.8%, rgba(46, 74, 102, 0.55) 50.2%, transparent 50.2%),
    var(--ink);
}

.home-channels__head {
  max-width: 780px;
}

.home-channels__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 38px);
  margin-top: clamp(34px, 5vw, 52px);
  align-items: start;
}

.home-channel {
  position: relative;
}

.home-channel__media {
  overflow: hidden;
  border: 1px solid var(--line);
}

.home-channel__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(1.18);
  transition: transform 0.4s var(--ease);
}

.home-channel--mobile:hover .home-channel__media img {
  transform: scale(1.035);
}

.home-channel__body {
  margin: -34px 0 0 18px;
  padding: clamp(22px, 4vw, 36px);
  position: relative;
  border: 1px solid var(--line);
  background: rgba(16, 42, 69, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}

.home-channel--mobile:hover .home-channel__body {
  transform: translate(2px, -3px);
  border-color: rgba(0, 229, 255, 0.55);
}

.home-channel__title {
  margin: 10px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.home-channel__body p {
  margin: 0 0 20px;
  color: var(--mute);
  font-size: 15px;
  line-height: 1.75;
}

.home-channel--desk {
  padding: 0 0 16px 16px;
}

.home-channel--desk::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 30px;
  z-index: 0;
  border: 1px solid rgba(0, 229, 255, 0.45);
  transition: transform 0.22s var(--ease);
}

.home-channel--desk:hover::after {
  transform: translate(4px, 4px);
}

.home-channel__plate {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4.4vw, 44px);
  background: var(--cream);
  color: var(--brown);
  transition: transform 0.22s var(--ease);
}

.home-channel--desk:hover .home-channel__plate {
  transform: translate(-3px, -3px);
}

.home-channel__plate .fy-tag {
  color: var(--brown);
  border-color: rgba(36, 26, 20, 0.4);
}

.home-channel__plate p {
  margin: 0 0 22px;
  color: #4a3a2e;
  font-size: 15px;
  line-height: 1.75;
}

.home-channel__plate .fy-btn--solid {
  color: var(--white);
}

.home-channel__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 4px 0;
}

.home-channel__stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 2px solid var(--cyan);
  padding-top: 10px;
}

.home-channel__stats .fy-mono {
  color: var(--cyan);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
}

.home-channel__stats small {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.4;
}

/* 复盘路径 */
.home-review {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.home-review__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 58px);
  align-items: center;
}

.home-review__visual {
  position: relative;
  margin: 0;
}

.home-review__visual img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08);
}

.home-steps {
  margin: 30px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.home-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.home-steps__num {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.home-steps h3 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
}

.home-steps p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.7;
}

/* 服务台 */
.home-desk {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.home-desk__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  background: linear-gradient(118deg, var(--steel) 0%, var(--ink-deep) 72%);
}

.home-desk__panel::before {
  content: "";
  position: absolute;
  top: -26px;
  left: -8%;
  width: 116%;
  height: 62px;
  background: repeating-linear-gradient(90deg, rgba(255, 107, 44, 0.22) 0 36px, transparent 36px 68px);
  transform: rotate(calc(var(--home-slash) * -1));
  pointer-events: none;
}

.home-desk__copy {
  position: relative;
  z-index: 1;
}

.home-desk__copy .home-h2 {
  margin-top: 12px;
}

.home-desk__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.home-copy {
  appearance: none;
  padding: 12px 20px;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), transform 0.18s var(--ease);
}

.home-copy:hover,
.home-copy:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  transform: translateY(-2px);
  outline: none;
}

.home-copy[data-copied="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

.home-desk__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.home-desk__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.home-desk__item dt {
  margin-bottom: 6px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.home-desk__item dd {
  margin: 0;
  color: var(--white);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 页脚前索引 */
.home-catalog {
  padding: clamp(56px, 9vw, 110px) 0;
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
}

.home-catalog__list {
  margin: clamp(30px, 4vw, 46px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.home-catalog__list li a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s var(--ease), padding-left 0.2s var(--ease), color 0.2s var(--ease);
}

.home-catalog__idx {
  color: var(--cyan);
  font-size: 12px;
}

.home-catalog__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.home-catalog__desc {
  grid-column: 2;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
}

.home-catalog__list li a:hover,
.home-catalog__list li a:focus-visible {
  padding-left: 16px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--orange);
  outline: none;
}

.home-catalog__list li a:hover .home-catalog__desc,
.home-catalog__list li a:focus-visible .home-catalog__desc {
  color: var(--white);
}

@media (min-width: 720px) {
  .home-desk__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (min-width: 960px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.55fr);
    gap: clamp(32px, 5vw, 72px);
  }

  .home-hero__index {
    margin-bottom: 10px;
  }

  .home-timeline__head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .home-slot {
    width: 400px;
  }

  .home-channels__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(30px, 4vw, 48px);
  }

  .home-channel--desk {
    margin-top: 74px;
  }

  .home-review__grid {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  }

  .home-desk__panel {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: start;
  }

  .home-catalog__list li a {
    grid-template-columns: 64px minmax(150px, 0.34fr) minmax(0, 1fr);
    gap: 6px 20px;
    align-items: center;
    padding: 22px 6px;
  }

  .home-catalog__desc {
    grid-column: 3;
    font-size: 14px;
  }
}

@media (max-width: 479px) {
  .home-hero__cta .fy-btn,
  .home-desk__actions .fy-btn,
  .home-copy {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-channel__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .home-channel__stats div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }
}

@media (hover: none) {
  .home-update__note {
    max-height: 90px;
    margin-top: 10px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

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