.page-home {
  --home-grid-size: 44px;
  --home-scan-duration: 6.5s;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .container {
  width: min(100% - 40px, var(--content-max));
  margin-inline: auto;
}

/* ===== HERO ===== */
.page-home .home-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 96px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 82% 12%, rgba(123, 44, 191, 0.16), transparent 62%),
    linear-gradient(135deg, var(--bg) 0%, var(--panel) 100%);
}

.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--home-grid-size) var(--home-grid-size);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse at 32% 42%, rgba(0, 0, 0, 0.9), transparent 72%);
  mask-image: radial-gradient(ellipse at 32% 42%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.page-home .home-hero__scan {
  position: absolute;
  top: 0;
  left: -30%;
  width: 42%;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: home-scan var(--home-scan-duration) ease-in-out infinite;
}

@keyframes home-scan {
  0%, 8% {
    left: -30%;
    opacity: 0;
  }
  14% {
    opacity: 0.9;
  }
  48% {
    left: 112%;
    opacity: 0.55;
  }
  54%, 100% {
    left: 112%;
    opacity: 0;
  }
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.page-home .home-hero__main {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

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

.page-home .home-hero__kicker {
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  max-width: 18ch;
}

.page-home .home-hero__title-brand {
  display: block;
  color: var(--text);
}

.page-home .home-hero__title-pipe {
  color: var(--gold);
  margin-right: 12px;
}

.page-home .home-hero__title-tag {
  display: block;
  color: var(--gold-light);
  font-weight: 700;
}

.page-home .home-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dim);
  max-width: 46ch;
  margin: 0 0 28px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

.page-home .home-hero__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

.page-home .home-hero__cta:hover::after,
.page-home .home-hero__cta:focus-visible::after {
  animation: home-cta-shine 0.7s ease;
}

@keyframes home-cta-shine {
  from {
    left: -60%;
  }
  to {
    left: 140%;
  }
}

.page-home .home-hero__cta-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.page-home .home-hero__cta:hover .home-hero__cta-arrow {
  transform: translateX(4px);
}

.page-home .home-hero__ghost {
  border-color: var(--line-strong);
  color: var(--text-secondary, var(--dim));
}

.page-home .home-hero__path {
  position: absolute;
  bottom: -46px;
  left: 4px;
  width: 260px;
  height: 78px;
  pointer-events: none;
}

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

.page-home .home-hero__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-panel);
  transform: rotate(0.6deg);
}

.page-home .home-hero__coords {
  position: absolute;
  right: 6px;
  bottom: -30px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: var(--dim);
  text-align: right;
  pointer-events: none;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ===== 通用分区 ===== */
.page-home .home-download,
.page-home .home-mobile,
.page-home .home-search {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-index {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-home .home-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

.page-home .home-lead {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 54ch;
}

/* ===== 01 下载 ===== */
.page-home .home-download__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.page-home .home-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-steps__item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.page-home .home-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}

.page-home .home-steps__body strong {
  display: block;
  font-weight: 650;
  margin-bottom: 4px;
  color: var(--text);
}

.page-home .home-steps__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--dim);
  line-height: 1.6;
}

.page-home .home-download__meta {
  margin-bottom: 26px;
}

.page-home .home-download__meta-label {
  color: var(--dim);
  margin-bottom: 10px;
  display: block;
}

.page-home .home-download__platforms {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-home .home-download__platforms .pill {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.page-home .home-download__cta {
  min-width: 200px;
}

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

.page-home .home-download__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.page-home .home-download__note {
  display: block;
  text-align: right;
  margin-top: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

/* ===== 02 小屏 ===== */
.page-home .home-mobile {
  background:
    radial-gradient(900px 360px at 88% 16%, rgba(123, 44, 191, 0.15), transparent 60%),
    linear-gradient(180deg, transparent, rgba(15, 37, 71, 0.55));
}

.page-home .home-mobile__grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
}

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

.page-home .home-mobile__tabs {
  width: 100%;
}

.page-home .home-mobile__tablist {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px;
  width: fit-content;
  max-width: 100%;
}

.page-home .home-mobile__tablist .tab-button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font: 600 0.88rem / 1.4 var(--font-body);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .home-mobile__tablist .tab-button[aria-selected="true"] {
  background: var(--gold);
  color: var(--bg);
}

.page-home .home-mobile__tablist .tab-button:hover,
.page-home .home-mobile__tablist .tab-button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}

.page-home .home-mobile__phone {
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-panel);
  max-width: 340px;
  margin-inline: auto;
}

.page-home .home-mobile__desktop {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-rows: 10px 10px 1fr;
  gap: 10px;
  box-shadow: var(--shadow-panel);
  min-height: 220px;
}

.page-home .home-mobile__desktop-label {
  color: var(--dim);
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.page-home .home-mobile__desktop-bar {
  display: block;
  height: 10px;
  background: var(--line-strong);
  border-radius: 5px;
}

.page-home .home-mobile__desktop-bar:nth-child(2) {
  width: 78%;
}

.page-home .home-mobile__desktop-bar:nth-child(3) {
  width: 48%;
}

.page-home .home-mobile__desktop-body {
  position: relative;
  background: var(--line);
  border-radius: 10px;
  min-height: 90px;
  margin-top: 6px;
}

.page-home .home-mobile__desktop-side {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 62px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  opacity: 0.6;
}

.page-home .home-mobile__desktop-copy {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 46ch;
}

.page-home .home-mobile__content {
  align-self: center;
}

.page-home .home-mobile__points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-mobile__points li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.65;
  font-size: 0.98rem;
}

.page-home .home-mobile__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 3px rgba(242, 169, 0, 0.18),
    0 0 10px rgba(242, 169, 0, 0.45);
}

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

/* ===== 03 站内检索 ===== */
.page-home .home-search {
  background:
    radial-gradient(760px 300px at 82% 86%, rgba(242, 169, 0, 0.08), transparent 60%);
}

.page-home .home-search__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.page-home .home-search__content {
  align-self: center;
}

.page-home .home-search__scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.page-home .home-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .home-search__item:hover,
.page-home .home-search__item:focus-within {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.page-home .home-search__item span {
  color: var(--gold);
  font-size: 0.78rem;
}

.page-home .home-search__item p {
  margin: 0;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text);
}

.page-home .home-search__fact {
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 0 0 24px;
  max-width: 52ch;
}

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

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

.page-home .home-search__media {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
}

.page-home .home-search__note {
  display: block;
  text-align: right;
  margin-top: 12px;
  color: var(--dim);
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}

/* ===== 品牌概况引导 ===== */
.page-home .home-profile {
  padding: 72px 0 96px;
}

.page-home .home-profile__panel {
  background:
    linear-gradient(135deg, rgba(15, 37, 71, 0.94), rgba(11, 29, 58, 0.72)),
    radial-gradient(600px 240px at 80% 20%, rgba(242, 169, 0, 0.06), transparent 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

.page-home .home-profile__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-home .home-profile__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-profile__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.page-home .home-profile__stat .mono-label {
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.page-home .home-profile__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.page-home .home-profile__cta p {
  margin: 0;
  color: var(--dim);
  line-height: 1.75;
  font-size: 0.95rem;
  max-width: 52ch;
}

/* ===== 共用媒体帧 ===== */
.page-home .media-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--panel);
}

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

/* ===== 桌面端适配 ===== */
@media (min-width: 768px) {
  .page-home .home-hero {
    padding: 130px 0 56px;
    min-height: 720px;
  }

  .page-home .home-hero__main {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }

  .page-home .home-hero__title {
    font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  }

  .page-home .home-hero__subtitle {
    font-size: 1.06rem;
  }

  .page-home .home-hero__path {
    bottom: -36px;
    left: 0;
    width: 300px;
    height: 90px;
  }

  .page-home .home-download__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: 1fr 1fr;
    gap: 68px;
    align-items: center;
  }

  .page-home .home-mobile__visual {
    order: 0;
  }

  .page-home .home-mobile__content {
    order: 1;
  }

  .page-home .home-search__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
  }

  .page-home .home-search__content {
    order: 0;
  }

  .page-home .home-search__visual {
    order: 1;
  }

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

  .page-home .home-profile__panel {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 40px 44px;
  }

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

  .page-home .home-profile__cta {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 0;
    padding-left: 36px;
    align-items: flex-end;
    text-align: right;
  }

  .page-home .home-profile__cta p {
    text-align: right;
  }
}

@media (min-width: 1100px) {
  .page-home .container {
    width: min(100% - 64px, var(--content-max));
  }

  .page-home .home-download,
  .page-home .home-mobile,
  .page-home .home-search {
    padding: 104px 0;
  }

  .page-home .home-mobile__visual {
    display: flex;
    justify-content: center;
  }

  .page-home .home-mobile__tabs {
    max-width: 480px;
  }
}

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

  .page-home .home-hero__cta::after {
    animation: none !important;
    display: none;
  }

  .page-home .home-steps__item,
  .page-home .home-search__item {
    transition: none;
  }
}

.page-home {
  --text-secondary: currentColor;
}
