/* ==========================================================================
   坐标首页 · page-home
   ========================================================================== */

.page-home {
  --home-notch: 18px;
  --home-notch-sm: 14px;
  --home-grid: rgba(29, 74, 122, 0.45);
  --home-hair: rgba(29, 74, 122, 0.55);
  --home-hair-soft: rgba(29, 74, 122, 0.24);
  --deep-cyan: #067a91;
  display: block;
}

.page-home .home-head {
  max-width: 62ch;
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .home-head h2 {
  margin: clamp(10px, 1.6vw, 16px) 0 0;
}

.page-home .home-head__note {
  margin: 14px 0 0;
  max-width: 44em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-light-dim);
}

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

.page-home .home-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-space));
  padding-top: calc(var(--header-space) + clamp(20px, 3.4vw, 42px));
  padding-bottom: 0;
  background-color: var(--ink-900);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--home-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(130% 105% at 6% 0%, #000 16%, transparent 78%);
          mask-image: radial-gradient(130% 105% at 6% 0%, #000 16%, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero > .container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(28px, 4vw, 52px);
}

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.55em;
  margin: 0 0 clamp(16px, 2.6vw, 28px);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-dark-dim);
}

.page-home .home-context .sep {
  color: var(--rule);
}

.page-home .home-context .ctx-version {
  color: var(--signal);
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.page-home .home-hero__lead {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  background:
    radial-gradient(95% 72% at 102% -4%, rgba(0, 229, 255, 0.13), transparent 62%),
    linear-gradient(162deg, var(--ink-800) 0%, var(--ink-900) 92%);
  border: 1px solid var(--rule-soft);
  clip-path: polygon(0 0, calc(100% - var(--home-notch)) 0, 100% var(--home-notch), 100% 100%, 0 100%);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-hero__lead::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--home-notch) * 1.4142);
  height: 1px;
  background: var(--rule-soft);
  transform-origin: 100% 50%;
  transform: rotate(-45deg);
  pointer-events: none;
}

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

.page-home .home-hero__title {
  margin: clamp(10px, 1.6vw, 18px) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(31px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.015em;
  color: var(--fog);
}

.page-home .home-hero__lede {
  margin: clamp(14px, 2vw, 20px) 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.78;
  color: var(--text-dark);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 32px);
}

.page-home .home-hero__tiles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
  align-content: start;
}

.page-home .home-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--rule-soft);
  clip-path: polygon(0 0, calc(100% - var(--home-notch)) 0, 100% var(--home-notch), 100% 100%, 0 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-home .home-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--home-notch) * 1.4142);
  height: 1px;
  background: var(--rule-soft);
  transform-origin: 100% 50%;
  transform: rotate(-45deg);
  pointer-events: none;
}

.page-home .home-tile:hover,
.page-home .home-tile:focus-visible {
  border-color: rgba(0, 229, 255, 0.6);
  transform: translateY(-2px);
}

.page-home .home-shot {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink-700);
}

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

.page-home .home-shot--wide {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--rule-soft);
}

.page-home .home-shot--strip {
  aspect-ratio: 3 / 1;
  border-bottom: 1px solid var(--rule-soft);
}

.page-home .home-tile__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 22px);
}

.page-home .home-tile__num {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .home-tile .panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--fog);
}

.page-home .home-tile .panel-note {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dark-dim);
}

.page-home .home-tile .brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-scale {
  height: 38px;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, var(--cyan) 0 1px, transparent 1px 70px);
  background-size: 100% 9px, 100% 20px;
  background-position: left bottom, left bottom;
  opacity: 0.85;
}

@media (min-width: 960px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }
  .page-home .home-shot--wide {
    aspect-ratio: auto;
    height: clamp(170px, 17vw, 226px);
  }
  .page-home .home-shot--strip {
    aspect-ratio: auto;
    height: clamp(96px, 9vw, 122px);
  }
  .page-home .home-hero__lead {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   三入口
   -------------------------------------------------------------------------- */

.page-home .home-entry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 780px) {
  .page-home .home-entry__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .entry-card:nth-child(2) {
    margin-top: 22px;
  }
  .page-home .entry-card:nth-child(3) {
    margin-top: 44px;
  }
}

.page-home .entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 30px);
  background: #ffffff;
  border: 1px solid var(--home-hair-soft);
  border-top: 0;
  text-decoration: none;
  color: var(--text-light);
  clip-path: polygon(0 0, calc(100% - var(--home-notch-sm)) 0, 100% var(--home-notch-sm), 100% 100%, 0 100%);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), filter 0.2s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--cyan);
}

.page-home .entry-card:nth-child(2)::before {
  background: var(--signal);
}

.page-home .entry-card:nth-child(3)::before {
  background: var(--mist);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.85);
  filter: drop-shadow(0 16px 24px rgba(11, 31, 58, 0.16));
}

.page-home .card-num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--deep-cyan);
}

.page-home .entry-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-light);
}

.page-home .entry-card__text {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-light-dim);
}

.page-home .entry-card__link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--deep-cyan);
}

/* --------------------------------------------------------------------------
   坐标化视图
   -------------------------------------------------------------------------- */

.page-home .home-coord__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .home-coord .h-section {
  margin: clamp(10px, 1.6vw, 16px) 0 0;
  color: var(--fog);
}

.page-home .home-coord .lead {
  margin: 16px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
}

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

.page-home .home-coord__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-soft);
}

.page-home .home-coord__fig figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .coord-list {
  list-style: none;
  margin: clamp(20px, 3vw, 30px) 0 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
}

.page-home .coord-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.page-home .coord-key {
  padding-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .coord-role {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fog);
}

.page-home .coord-desc {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dark-dim);
}

@media (min-width: 900px) {
  .page-home .home-coord__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .page-home .home-coord__fig {
    align-self: start;
  }
}

/* --------------------------------------------------------------------------
   导出记录
   -------------------------------------------------------------------------- */

.page-home .home-export__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 44px);
}

.page-home .home-export__intro .home-head__note {
  margin-top: 16px;
}

.page-home .export-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--home-hair-soft);
  background: var(--home-hair-soft);
  align-self: start;
}

.page-home .export-specs > div {
  background: #ffffff;
  padding: 15px 17px;
}

.page-home .export-specs dt {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-light-dim);
}

.page-home .export-specs dd {
  margin: 7px 0 0;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.page-home .home-export__fig {
  margin: clamp(26px, 4vw, 44px) 0 0;
}

.page-home .home-export__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--home-hair-soft);
}

.page-home .home-export__fig figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-light-dim);
}

@media (min-width: 900px) {
  .page-home .home-export__top {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   场景
   -------------------------------------------------------------------------- */

.page-home .home-scene {
  background: linear-gradient(180deg, var(--fog) 0%, #dfe8f3 100%);
}

.page-home .home-scene__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

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

.page-home .scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.6vw, 30px);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(0, 229, 255, 0.1), transparent 60%),
    linear-gradient(168deg, var(--ink-800) 0%, var(--ink-900) 94%);
  border: 1px solid var(--rule-soft);
  clip-path: polygon(0 0, calc(100% - var(--home-notch-sm)) 0, 100% var(--home-notch-sm), 100% 100%, 0 100%);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .scene-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.55);
}

.page-home .scene-tag {
  align-self: flex-start;
  padding: 5px 11px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .scene-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--fog);
}

.page-home .scene-card > p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-dark);
}

.page-home .scene-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 9px;
}

.page-home .scene-points li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dark-dim);
}

.page-home .scene-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--mint);
}

/* --------------------------------------------------------------------------
   下一步
   -------------------------------------------------------------------------- */

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

.page-home .home-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--home-grid) 1px, transparent 1px);
  background-size: 72px 100%;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
          mask-image: linear-gradient(to bottom, #000, transparent 70%);
  pointer-events: none;
}

.page-home .home-next > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-next__inner {
  max-width: 48em;
  border-left: 2px solid var(--cyan);
  padding-left: clamp(18px, 2.6vw, 32px);
}

.page-home .home-next .h-section {
  margin: clamp(10px, 1.6vw, 16px) 0 0;
  color: var(--fog);
}

.page-home .home-next .lead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.82;
  color: var(--text-dark);
}

.page-home .home-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-next__note {
  margin: 16px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.page-home .home-next__aside {
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-dark-dim);
}

.page-home .home-next__aside a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.page-home .home-next__aside a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   窄屏收口
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
  .page-home .export-specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-home .home-next__inner {
    border-left-width: 1px;
  }
  .page-home .home-hero__title {
    letter-spacing: 0.01em;
  }
  .page-home .home-scale {
    height: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card,
  .page-home .home-tile,
  .page-home .home-hero__lead,
  .page-home .scene-card {
    transition: none;
  }
  .page-home .entry-card:hover,
  .page-home .home-tile:hover,
  .page-home .home-hero__lead:hover,
  .page-home .scene-card:hover {
    transform: none;
  }
}
